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
Родитель 212c2b682f
Коммит b7bf4420a4
5 изменённых файлов: 22 добавлений и 2 удалений

Просмотреть файл

@ -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 \

Просмотреть файл

@ -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>

Просмотреть файл

@ -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"

Просмотреть файл

@ -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"

Просмотреть файл

@ -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>