diff options
author | Michael Kolb <kolby@google.com> | 2011-03-07 14:51:55 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-03-07 14:56:24 -0800 |
commit | d0d7261f054d58de273ccffdd7da17ff20bcfe27 (patch) | |
tree | 5ca265e11d203b062f24f91ad001ea000ab5e6bb | |
parent | 00a227596d5a1d5b68943fda80f3680b72601005 (diff) | |
download | packages_apps_browser-d0d7261f054d58de273ccffdd7da17ff20bcfe27.zip packages_apps_browser-d0d7261f054d58de273ccffdd7da17ff20bcfe27.tar.gz packages_apps_browser-d0d7261f054d58de273ccffdd7da17ff20bcfe27.tar.bz2 |
add asset for new tab button
Bug: 3504204
add focused state drawable to teh new tab button
Change-Id: Ifdd86ca0ecec18a9bd1c16315a53e103c614622a
-rw-r--r-- | res/drawable-mdpi/browsertab_add_focused.png | bin | 0 -> 4098 bytes | |||
-rw-r--r-- | res/drawable/add_tab_selector.xml | 24 | ||||
-rw-r--r-- | res/layout/tab_bar.xml | 2 |
3 files changed, 25 insertions, 1 deletions
diff --git a/res/drawable-mdpi/browsertab_add_focused.png b/res/drawable-mdpi/browsertab_add_focused.png Binary files differnew file mode 100644 index 0000000..53fda75 --- /dev/null +++ b/res/drawable-mdpi/browsertab_add_focused.png diff --git a/res/drawable/add_tab_selector.xml b/res/drawable/add_tab_selector.xml new file mode 100644 index 0000000..4898f8f --- /dev/null +++ b/res/drawable/add_tab_selector.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source 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. +--> + +<!-- Custom background for the new tab button --> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_focused="false" + android:drawable="@drawable/browsertab_add" /> + <item android:state_focused="true" + android:drawable="@drawable/browsertab_add_focused" /> +</selector> diff --git a/res/layout/tab_bar.xml b/res/layout/tab_bar.xml index d3683b1..1710218 100644 --- a/res/layout/tab_bar.xml +++ b/res/layout/tab_bar.xml @@ -30,5 +30,5 @@ android:layout_width="wrap_content" android:layout_height="44dip" style="@style/HoloButton" - android:background="@drawable/browsertab_add" /> + android:background="@drawable/add_tab_selector" /> </merge>
\ No newline at end of file |