Bug 838748: Change pressed state of tabs-ui rows. [r=mfinkle]

This commit is contained in:
Sriram Ramasubramanian 2013-02-07 12:48:28 -08:00
parent 1574bc360b
commit 48dd9907ec
5 changed files with 22 additions and 2 deletions

View File

@ -1094,6 +1094,7 @@ MOZ_ANDROID_DRAWABLES += \
mobile/android/base/resources/drawable/spinner.xml \
mobile/android/base/resources/drawable/suggestion_selector.xml \
mobile/android/base/resources/drawable/tab_new_level.xml \
mobile/android/base/resources/drawable/tab_row.xml \
mobile/android/base/resources/drawable/tab_thumbnail.xml \
mobile/android/base/resources/drawable/tabs_button.xml \
mobile/android/base/resources/drawable/tabs_level.xml \

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true"
android:drawable="@color/tab_row_pressed"/>
<item android:state_pressed="true"
android:drawable="@color/tab_row_pressed"/>
<item android:drawable="@android:color/transparent"/>
</selector>

View File

@ -9,7 +9,8 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="6dip"
android:gravity="center">
android:gravity="center"
android:background="@drawable/tab_row">
<RelativeLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@ -11,7 +11,8 @@
android:paddingLeft="12dip"
android:paddingRight="12dip"
android:paddingTop="6dip"
android:paddingBottom="6dip">
android:paddingBottom="6dip"
android:background="@drawable/tab_row">
<LinearLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@ -21,6 +21,7 @@
<color name="abouthome_topsite_shadow">#1000</color>
<color name="tab_indicator_unselected">@android:color/transparent</color>
<color name="tab_indicator_unselected_focused">#34FF9500</color>
<color name="tab_row_pressed">#4D000000</color>
<color name="abouthome_topsite_pin">#55000000</color>
<color name="dialogtitle_textcolor">#ffffff</color>
</resources>