From: Soren Stoutner Date: Thu, 22 Oct 2015 22:27:37 +0000 (-0700) Subject: Add icons to the menu items. X-Git-Tag: v1.0~43 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=4097fbc3a0a037da87f172b2b0b7e99199c0d3b9;p=PrivacyBrowserAndroid.git Add icons to the menu items. --- diff --git a/app/src/main/java/com/stoutner/privacybrowser/Webview.java b/app/src/main/java/com/stoutner/privacybrowser/Webview.java index ce6fdb88..a783262c 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/Webview.java +++ b/app/src/main/java/com/stoutner/privacybrowser/Webview.java @@ -198,8 +198,6 @@ public class Webview extends AppCompatActivity { public void loadUrlFromTextBox(View view) throws UnsupportedEncodingException { // Get the text from urlTextInput and convert it to a string. - final EditText urlTextBox = (EditText) findViewById(R.id.urlTextBox); - final WebView mainWebView = (WebView) findViewById(R.id.mainWebView); String unformattedUrlString = urlTextBox.getText().toString(); URL unformattedUrl = null; Uri.Builder formattedUri = new Uri.Builder(); diff --git a/app/src/main/res/drawable-hdpi/ic_back.png b/app/src/main/res/drawable-hdpi/ic_back.png new file mode 100644 index 00000000..2e13b17c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_back.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_forward.png b/app/src/main/res/drawable-hdpi/ic_forward.png new file mode 100644 index 00000000..0258cbed Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_forward.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_home_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_home_black_24dp.png new file mode 100644 index 00000000..a1ba11a4 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_home_black_24dp.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_back.png b/app/src/main/res/drawable-mdpi/ic_back.png new file mode 100644 index 00000000..6f6cd200 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_back.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_forward.png b/app/src/main/res/drawable-mdpi/ic_forward.png new file mode 100644 index 00000000..1c249eff Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_forward.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_home_black_24dp.png b/app/src/main/res/drawable-mdpi/ic_home_black_24dp.png new file mode 100644 index 00000000..3995d50f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_home_black_24dp.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_back.png b/app/src/main/res/drawable-xhdpi/ic_back.png new file mode 100644 index 00000000..b9096a74 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_back.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_forward.png b/app/src/main/res/drawable-xhdpi/ic_forward.png new file mode 100644 index 00000000..6e81f733 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_forward.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_home_black_24dp.png b/app/src/main/res/drawable-xhdpi/ic_home_black_24dp.png new file mode 100644 index 00000000..2fb1e5df Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_home_black_24dp.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_back.png b/app/src/main/res/drawable-xxhdpi/ic_back.png new file mode 100644 index 00000000..99615ccc Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_back.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_forward.png b/app/src/main/res/drawable-xxhdpi/ic_forward.png new file mode 100644 index 00000000..fc68e953 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_forward.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_home_black_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_home_black_24dp.png new file mode 100644 index 00000000..fc2bd7ef Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_home_black_24dp.png differ diff --git a/app/src/main/res/menu/menu_webview.xml b/app/src/main/res/menu/menu_webview.xml index 8dcf42d4..2a8923dc 100644 --- a/app/src/main/res/menu/menu_webview.xml +++ b/app/src/main/res/menu/menu_webview.xml @@ -8,17 +8,20 @@ android:id="@+id/home" android:title="@string/home" android:orderInCategory="100" + android:icon="@drawable/ic_home_black_24dp" app:showAsAction="ifRoom" /> diff --git a/build.gradle b/build.gradle index 1b7886d1..c6371d6c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:1.3.0' + classpath 'com.android.tools.build:gradle:1.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files