From 19fa922d09043a0c8d0b6b01bdfad6a934572459 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Sat, 26 Sep 2015 12:51:33 -0700 Subject: [PATCH] Add comments to the .xml files. --- app/src/main/AndroidManifest.xml | 5 +++++ app/src/main/res/layout/activity_webview.xml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3f66b340..fb445db0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -10,6 +10,9 @@ android:icon="@mipmap/ic_launcher" android:label="@string/privacy_browser" android:theme="@style/AppTheme" > + + // configChanges orientation and screenSize makes the app not reload when the orientation changes. + // windowSoftInputMode stateAlwaysHidden hides the keyboard when the app starts. + + // android.intent.action.VIEW with the schemes enables processing of web intents. diff --git a/app/src/main/res/layout/activity_webview.xml b/app/src/main/res/layout/activity_webview.xml index 20dbfeb5..3244bb20 100644 --- a/app/src/main/res/layout/activity_webview.xml +++ b/app/src/main/res/layout/activity_webview.xml @@ -28,6 +28,7 @@ android:layout_height="wrap_content" /> + // FrameLayout lets the ProgressBar float on top of the WebView. + // android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage.