Index: libadblockplus-android-webviewapp/res/layout/activity_main.xml |
diff --git a/libadblockplus-android-webviewapp/res/layout/activity_main.xml b/libadblockplus-android-webviewapp/res/layout/activity_main.xml |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2950d60955b8d640a375ff70c0f8b714fa2c5e3f |
--- /dev/null |
+++ b/libadblockplus-android-webviewapp/res/layout/activity_main.xml |
@@ -0,0 +1,75 @@ |
+<?xml version="1.0" encoding="utf-8"?> |
+ |
+<LinearLayout |
+ xmlns:android="http://schemas.android.com/apk/res/android" |
+ android:layout_width="match_parent" |
+ android:layout_height="match_parent" |
+ android:orientation="vertical"> |
+ |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:orientation="horizontal"> |
+ |
+ <EditText |
+ android:id="@+id/main_url" |
+ android:layout_width="0px" |
+ android:layout_weight="1" |
+ android:layout_height="wrap_content" |
+ android:text="http://www.google.com" |
+ android:singleLine="true"/> |
+ |
+ <Button |
+ android:id="@+id/main_ok" |
+ android:layout_width="50dp" |
+ android:layout_height="wrap_content" |
+ android:text="@string/main_ok"/> |
+ |
+ <Button |
+ android:id="@+id/main_back" |
+ android:layout_width="40dp" |
+ android:layout_height="wrap_content" |
+ android:text="@string/main_prev"/> |
+ |
+ <Button |
+ android:id="@+id/main_forward" |
+ android:layout_width="40dp" |
+ android:layout_height="wrap_content" |
+ android:text="@string/main_next"/> |
+ |
+ </LinearLayout> |
+ |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content"> |
+ |
+ <CheckBox |
+ android:id="@+id/main_abp_enabled" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:checked="true" |
+ android:text="@string/main_abp"/> |
+ |
+ <CheckBox |
+ android:id="@+id/main_aa_enabled" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:text="@string/main_aa"/> |
+ |
+ </LinearLayout> |
+ |
+ <ProgressBar |
+ android:id="@+id/main_progress" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ style="?android:attr/progressBarStyleHorizontal" |
+ android:indeterminate="false" |
+ android:indeterminateOnly="false" |
+ android:max="100"/> |
+ |
+ <org.adblockplus.libadblockplus.android.webview.AdblockWebView |
+ android:id="@+id/main_webview" |
+ android:layout_width="match_parent" |
+ android:layout_height="match_parent"/> |
+ |
+</LinearLayout> |