diff options
author | Arham Jamal <arhamjamal@gmail.com> | 2012-04-28 05:01:12 +0200 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-07 13:57:35 -0800 |
commit | 1fd4bec1891e40dfe2e04c1ffe0bbd9f4e649cee (patch) | |
tree | c599a877c3b6b2d4a49102d97d8909f4862181c9 /res | |
parent | cfc55f1967f309ab077eded9aa6afa542cd4f00a (diff) | |
download | packages_apps_Browser-1fd4bec1891e40dfe2e04c1ffe0bbd9f4e649cee.zip packages_apps_Browser-1fd4bec1891e40dfe2e04c1ffe0bbd9f4e649cee.tar.gz packages_apps_Browser-1fd4bec1891e40dfe2e04c1ffe0bbd9f4e649cee.tar.bz2 |
Browser: New navbar buttons
Added 2 new buttons to navigation bar:
- New Incognito Tab
- Goto home screen
Signed-off-by: Arham Jamal <arhamjamal@gmail.com>
Change-Id: I4c4b611ccc7fc3de4fa4bc7c855e4481de440a87
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-land/nav_screen.xml | 16 | ||||
-rw-r--r-- | res/layout/nav_screen.xml | 16 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 20 |
3 files changed, 52 insertions, 0 deletions
diff --git a/res/layout-land/nav_screen.xml b/res/layout-land/nav_screen.xml index 97a230a..dc95217 100644 --- a/res/layout-land/nav_screen.xml +++ b/res/layout-land/nav_screen.xml @@ -34,6 +34,22 @@ android:background="@color/primary" android:elevation="8dp"> <ImageButton + android:id="@+id/gotohome" + android:layout_width="wrap_content" + android:layout_height="match_parent" + style="@style/HoloButton" + android:gravity="center_vertical" + android:contentDescription="@string/accessibility_button_homescreen" + android:src="@drawable/ic_home_dark" /> + <ImageButton + android:id="@+id/newincognitotab" + android:layout_width="wrap_content" + android:layout_height="match_parent" + style="@style/HoloButton" + android:gravity="center_vertical" + android:contentDescription="@string/accessibility_button_newincognitotab" + android:src="@drawable/ic_new_incognito_dark" /> + <ImageButton android:id="@+id/newtab" android:layout_width="wrap_content" android:layout_height="match_parent" diff --git a/res/layout/nav_screen.xml b/res/layout/nav_screen.xml index 356bf19..46a86cf 100644 --- a/res/layout/nav_screen.xml +++ b/res/layout/nav_screen.xml @@ -35,6 +35,22 @@ android:background="@color/primary" android:elevation="8dp"> <ImageButton + android:id="@+id/gotohome" + android:layout_width="wrap_content" + android:layout_height="match_parent" + style="@style/HoloButton" + android:gravity="center_vertical" + android:contentDescription="@string/accessibility_button_homescreen" + android:src="@drawable/ic_home_dark" /> + <ImageButton + android:id="@+id/newincognitotab" + android:layout_width="wrap_content" + android:layout_height="match_parent" + style="@style/HoloButton" + android:gravity="center_vertical" + android:contentDescription="@string/accessibility_button_newincognitotab" + android:src="@drawable/ic_new_incognito_dark" /> + <ImageButton android:id="@+id/newtab" android:layout_width="wrap_content" android:layout_height="match_parent" diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml new file mode 100644 index 0000000..63b04e9 --- /dev/null +++ b/res/values/cm_strings.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Content description for home screen button [CHAR LIMIT=NONE] --> + <string name="accessibility_button_homescreen">Home screen</string> +</resources> |