From: Soren Stoutner <soren@stoutner.com> Date: Sat, 26 Sep 2015 19:51:33 +0000 (-0700) Subject: Add comments to the .xml files. X-Git-Tag: v1.0~50 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=19fa922d09043a0c8d0b6b01bdfad6a934572459;p=PrivacyBrowserAndroid.git Add comments to the .xml files. --- 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. <activity android:name=".Webview" android:configChanges="orientation|screenSize" @@ -19,6 +22,8 @@ <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> + + // android.intent.action.VIEW with the schemes enables processing of web intents. <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" /> 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" /> </LinearLayout> + // FrameLayout lets the ProgressBar float on top of the WebView. <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" @@ -42,6 +43,7 @@ android:focusable="true" android:focusableInTouchMode="true" /> + // android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. <ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarStyleHorizontal"