aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-03-11 14:08:27 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-03-11 14:08:27 +0000
commit2d4b308e393c8b0df64fe95f826d1a5f6ea7895b (patch)
treeda7af0f3edab9e4d46e7fd6f4b1233335107ea3a /app/src/main/res/layout
parent231530c6eb65819f3dd3ff7b015f2a5b41d53a67 (diff)
downloadinfinity-for-reddit-2d4b308e393c8b0df64fe95f826d1a5f6ea7895b.tar
infinity-for-reddit-2d4b308e393c8b0df64fe95f826d1a5f6ea7895b.tar.gz
infinity-for-reddit-2d4b308e393c8b0df64fe95f826d1a5f6ea7895b.tar.bz2
infinity-for-reddit-2d4b308e393c8b0df64fe95f826d1a5f6ea7895b.tar.lz
infinity-for-reddit-2d4b308e393c8b0df64fe95f826d1a5f6ea7895b.tar.xz
infinity-for-reddit-2d4b308e393c8b0df64fe95f826d1a5f6ea7895b.tar.zst
infinity-for-reddit-2d4b308e393c8b0df64fe95f826d1a5f6ea7895b.zip
Add a WebView for those who do not have Chrome installed.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_login.xml3
-rw-r--r--app/src/main/res/layout/activity_web_view.xml32
2 files changed, 33 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml
index 2452a367..4c4d3e9f 100644
--- a/app/src/main/res/layout/activity_login.xml
+++ b/app/src/main/res/layout/activity_login.xml
@@ -42,8 +42,7 @@
<ml.docilealligator.infinityforreddit.customviews.LollipopBugFixedWebView
android:id="@+id/webview_login_activity"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+ android:layout_height="match_parent" />
</LinearLayout>
diff --git a/app/src/main/res/layout/activity_web_view.xml b/app/src/main/res/layout/activity_web_view.xml
new file mode 100644
index 00000000..36fd3f06
--- /dev/null
+++ b/app/src/main/res/layout/activity_web_view.xml
@@ -0,0 +1,32 @@
+<?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"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/coordinator_layout_web_view_activity"
+ tools:context=".activities.WebViewActivity">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_layout_web_view_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:theme="@style/AppTheme.AppBarOverlay">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar_web_view_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="?attr/actionBarSize"
+ app:popupTheme="@style/AppTheme.PopupOverlay"
+ app:navigationIcon="?attr/homeAsUpIndicator" />
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <ml.docilealligator.infinityforreddit.customviews.LollipopBugFixedWebView
+ android:id="@+id/web_view_web_view_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file