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"
<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" />
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"
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"