Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-webviewapp/res/layout/activity_main.xml

Issue 29361445: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Patch Set: Created Nov. 1, 2016, 12:14 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..714394a3b8e6c12f2fb1d702c266a6290aee0a29
--- /dev/null
+++ b/libadblockplus-android-webviewapp/res/layout/activity_main.xml
@@ -0,0 +1,62 @@
+<?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">
+
+ <EditText
+ android:id="@+id/main_url"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="http://www.google.com"
diegocarloslima 2016/11/08 16:30:57 I'm personally not a big fan of hardcoding strings
anton 2016/11/09 12:30:43 It just for testing purposing, agree to remove it.
+ android:inputType="textUri"
+ android:singleLine="true"/>
diegocarloslima 2016/11/08 16:30:58 singleLine is deprecated, it's better to use maxLi
anton 2016/11/09 12:30:42 I've seen IDE suggestion to replace it but it prov
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <Button
+ android:id="@+id/main_ok"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/main_ok"/>
+
+ <Button
+ android:id="@+id/main_back"
+ android:layout_width="50dp"
+ android:layout_height="wrap_content"
+ android:text="@string/main_prev"/>
+
+ <Button
+ android:id="@+id/main_forward"
+ android:layout_width="50dp"
+ android:layout_height="wrap_content"
+ android:text="@string/main_next"/>
+
+ <Button
+ android:id="@+id/main_settings"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/main_settings"/>
+
+ </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>

Powered by Google App Engine
This is Rietveld