This commit is contained in:
lunaticbum
2024-11-12 14:25:30 +09:00
parent 256a13b7df
commit 4b51b9807a
137 changed files with 10303 additions and 6630 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<application>
<provider
android:name=".helpers.FileProvider4WebView"
android:name="kr.lunaticbum.awesomewebview.helpers.FileProvider4WebView"
android:authorities="${applicationId}.awesome_web_view.file_provider"
android:exported="false"
android:grantUriPermissions="true">
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.enums;
package kr.lunaticbum.awesomewebview.enums;
/**
* Created by Leonardo on 11/14/15.
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
import android.text.TextUtils;
import android.util.Base64;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
import android.content.Context;
import android.graphics.Bitmap;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
import android.graphics.Color;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
/**
* Created by wuzongheng on 2018/2/18.
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
import androidx.annotation.Keep;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
import java.io.BufferedInputStream;
import java.io.File;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
import java.io.File;
import java.io.FileInputStream;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
import android.content.Context;
import android.content.pm.PackageManager;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
import android.content.Context;
import android.graphics.Typeface;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.helpers;
package kr.lunaticbum.awesomewebview.helpers;
import java.net.MalformedURLException;
import java.net.URL;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.jsInterface;
package kr.lunaticbum.awesomewebview.jsInterface;
import android.webkit.JavascriptInterface;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.jsInterface;
package kr.lunaticbum.awesomewebview.jsInterface;
import android.text.TextUtils;
import android.util.Pair;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.jsInterface;
package kr.lunaticbum.awesomewebview.jsInterface;
import android.annotation.SuppressLint;
import android.os.Handler;
@@ -7,7 +7,7 @@ import android.util.Log;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import com.wuadam.awesomewebview.views.VideoEnabledWebChromeClient;
import kr.lunaticbum.awesomewebview.views.VideoEnabledWebChromeClient;
public class VideoJsHelper {
private VideoEnabledWebChromeClient videoEnabledWebChromeClient;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.listeners;
package kr.lunaticbum.awesomewebview.listeners;
import android.content.BroadcastReceiver;
import android.content.Context;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.listeners;
package kr.lunaticbum.awesomewebview.listeners;
/**
* Created by TheFinestArtist on 1/26/16.
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.objects;
package kr.lunaticbum.awesomewebview.objects;
import androidx.annotation.StringRes;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.views;
package kr.lunaticbum.awesomewebview.views;
import android.content.Context;
import android.content.res.TypedArray;
@@ -13,7 +13,7 @@ import androidx.core.content.ContextCompat;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import com.wuadam.awesomewebview.R;
import kr.lunaticbum.awesomewebview.R;
/**
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.views;
package kr.lunaticbum.awesomewebview.views;
import android.media.MediaPlayer;
import android.view.SurfaceView;
@@ -1,4 +1,4 @@
package com.wuadam.awesomewebview.views;
package kr.lunaticbum.awesomewebview.views;
import android.annotation.SuppressLint;
import android.content.Context;
@@ -6,7 +6,7 @@ import android.util.AttributeSet;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import com.wuadam.awesomewebview.jsInterface.VideoJsHelper;
import kr.lunaticbum.awesomewebview.jsInterface.VideoJsHelper;
import java.util.Map;
@@ -1,75 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/coordinatorLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/finestWhite">
<layout>
<data>
<FrameLayout
android:id="@+id/webLayout"
</data>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/coordinatorLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/toolbarHeight" />
android:background="@color/finestWhite">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevation="0dp">
<FrameLayout
android:id="@+id/webLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/toolbarHeight" />
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:padding="0dp"
app:contentInsetEnd="0dp"
app:contentInsetLeft="0dp"
app:contentInsetRight="0dp"
app:contentInsetStart="0dp">
app:elevation="0dp">
<include layout="@layout/toolbar_content" />
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.AppBarLayout>
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:padding="0dp"
app:contentInsetEnd="0dp"
app:contentInsetLeft="0dp"
app:contentInsetRight="0dp"
app:contentInsetStart="0dp">
<View
android:id="@+id/gradient"
android:layout_width="match_parent"
android:layout_height="@dimen/defaultDividerHeight"
android:layout_marginTop="@dimen/toolbarHeight"
android:background="@color/finestBlack10" />
<include layout="@layout/toolbar_content" />
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.AppBarLayout>
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="@dimen/defaultProgressBarHeight"
android:layout_marginTop="@dimen/toolbarHeight"
android:indeterminate="false"
android:progressDrawable="@drawable/progress_drawable" />
<View
android:id="@+id/gradient"
android:layout_width="match_parent"
android:layout_height="@dimen/defaultDividerHeight"
android:layout_marginTop="@dimen/toolbarHeight"
android:background="@color/finestBlack10" />
<include layout="@layout/menus" />
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="@dimen/defaultProgressBarHeight"
android:layout_marginTop="@dimen/toolbarHeight"
android:indeterminate="false"
android:progressDrawable="@drawable/progress_drawable" />
<!-- View where the video will be shown when video goes fullscreen -->
<RelativeLayout
android:id="@+id/videoLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
android:visibility="invisible">
<include layout="@layout/menus" />
<!-- View that will be shown while the fullscreen video loads. For example you could include
a "Loading..." message. However, in this particular example this view is actually defined in
view_loading_video.xml and inflated programmatically in ExampleActivity.java. The reason for
this is to keep the main layout (this file) cleaner. -->
<!-- <View
android:id="@+id/videoLoading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="invisible" /> -->
<!-- View where the video will be shown when video goes fullscreen -->
<RelativeLayout
android:id="@+id/videoLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
android:visibility="invisible">
</RelativeLayout>
<!-- View that will be shown while the fullscreen video loads. For example you could include
a "Loading..." message. However, in this particular example this view is actually defined in
view_loading_video.xml and inflated programmatically in ExampleActivity.java. The reason for
this is to keep the main layout (this file) cleaner. -->
<!-- <View
android:id="@+id/videoLoading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="invisible" /> -->
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</RelativeLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout>
+2 -2
View File
@@ -10,7 +10,7 @@
android:orientation="vertical"
android:visibility="gone">
<com.wuadam.awesomewebview.views.ShadowLayout
<kr.lunaticbum.awesomewebview.views.ShadowLayout
android:id="@+id/shadowLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -141,5 +141,5 @@
</LinearLayout>
</LinearLayout>
</com.wuadam.awesomewebview.views.ShadowLayout>
</kr.lunaticbum.awesomewebview.views.ShadowLayout>
</RelativeLayout>