Refine progressBar height. Create onReceivedError toast.
[PrivacyBrowser.git] / app / src / main / res / layout / app_bar.xml
index ece3f5d9efbb85bb5c981c0d7b759c8f5b22c384..a66e99f4ccf44c37eb149794f07fceef0c719282 100644 (file)
@@ -11,8 +11,9 @@
         android:id="@+id/addressBarLinearLayout"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:id="@+id/addressBarLinearLayout"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:orientation="horizontal">
+        android:orientation="horizontal" >
 
 
+        <!-- Set the program icon as the initial favoriteIcon. -->
         <ImageView
             android:id="@+id/favoriteIcon"
             android:src="@drawable/ic_language_black_24dp"
         <ImageView
             android:id="@+id/favoriteIcon"
             android:src="@drawable/ic_language_black_24dp"
     </LinearLayout>
 
     <!-- android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. -->
     </LinearLayout>
 
     <!-- android:max changes the maximum ProgressBar value from 10000 to 100 to match progress percentage. -->
+    <!-- android:layout_height="2dp" works best for API 23 "Marshmallow", but "3dp" is required for visibility on API <= 22. -->
     <ProgressBar
         android:id="@+id/progressBar"
         style="?android:attr/progressBarStyleHorizontal"
         android:layout_width="fill_parent"
     <ProgressBar
         android:id="@+id/progressBar"
         style="?android:attr/progressBarStyleHorizontal"
         android:layout_width="fill_parent"
-        android:layout_height="7dp"
+        android:layout_height="3dp"
         android:layout_gravity="bottom"
         android:max="100"
         android:progressTint="#FF0097FF"
         android:layout_gravity="bottom"
         android:max="100"
         android:progressTint="#FF0097FF"