зеркало из https://github.com/mozilla/gecko-dev.git
Bug 839767 - Add focus and highlight to about:home rows. r=sriram,wesj
This commit is contained in:
Родитель
7e2826ed21
Коммит
d6c7400075
|
@ -3,14 +3,10 @@
|
|||
- 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/. -->
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="46dip"
|
||||
android:layout_marginLeft="12dip"
|
||||
android:drawablePadding="12dip"
|
||||
android:textAppearance="@style/AboutHome.TextAppearance.Title"
|
||||
android:background="@drawable/action_bar_button"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="middle"
|
||||
android:duplicateParentState="true"/>
|
||||
<Gecko.TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="@dimen/abouthome_rowitem_height"
|
||||
android:paddingLeft="@dimen/abouthome_rowitem_left_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="12dip"
|
||||
style="@style/AboutHome.RowItem.TextRow"/>
|
||||
|
|
|
@ -5,40 +5,33 @@
|
|||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="47dip"
|
||||
android:layout_height="@dimen/abouthome_rowitem_height"
|
||||
android:gravity="left|center_vertical"
|
||||
android:background="@drawable/action_bar_button"
|
||||
android:duplicateParentState="true">
|
||||
style="@style/AboutHome.RowItem">
|
||||
|
||||
<ImageView android:id="@+id/last_tab_favicon"
|
||||
android:layout_width="32dip"
|
||||
android:layout_height="32dip"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="12dip"
|
||||
android:layout_marginLeft="@dimen/abouthome_rowitem_left_padding"
|
||||
android:src="@drawable/favicon"/>
|
||||
|
||||
<TextView android:id="@+id/last_tab_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/last_tab_favicon"
|
||||
android:layout_marginTop="2dip"
|
||||
android:layout_marginLeft="12dip"
|
||||
android:layout_marginRight="12dip"
|
||||
android:textSize="15sp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/abouthome_section_title"
|
||||
android:duplicateParentState="true"/>
|
||||
<Gecko.TextView android:id="@+id/last_tab_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/last_tab_favicon"
|
||||
android:layout_marginTop="2dip"
|
||||
android:layout_marginLeft="12dip"
|
||||
android:layout_marginRight="12dip"
|
||||
style="@style/AboutHome.LastTabRow.Title"/>
|
||||
|
||||
<TextView android:id="@+id/last_tab_url"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="12dip"
|
||||
android:layout_marginRight="12dip"
|
||||
android:layout_toRightOf="@id/last_tab_favicon"
|
||||
android:layout_below="@id/last_tab_title"
|
||||
android:textSize="12sp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/abouthome_section_subtitle"
|
||||
android:duplicateParentState="true"/>
|
||||
<Gecko.TextView android:id="@+id/last_tab_url"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="12dip"
|
||||
android:layout_marginRight="12dip"
|
||||
android:layout_toRightOf="@id/last_tab_favicon"
|
||||
android:layout_below="@id/last_tab_title"
|
||||
style="@style/AboutHome.LastTabRow.Url"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -3,14 +3,10 @@
|
|||
- 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/. -->
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="46dip"
|
||||
android:paddingLeft="12dip"
|
||||
android:paddingRight="12dip"
|
||||
android:textAppearance="@style/AboutHome.TextAppearance.Title"
|
||||
android:background="@drawable/action_bar_button"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="middle"
|
||||
android:duplicateParentState="true"/>
|
||||
<Gecko.TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="@dimen/abouthome_rowitem_height"
|
||||
android:paddingLeft="@dimen/abouthome_rowitem_left_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingRight="12dip"
|
||||
style="@style/AboutHome.RowItem.TextRow"/>
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
<dimen name="abouthome_gutter_large">0dp</dimen>
|
||||
<dimen name="abouthome_icon_crop">-14dp</dimen>
|
||||
<dimen name="abouthome_icon_radius">2dp</dimen>
|
||||
<dimen name="abouthome_rowitem_height">46dip</dimen>
|
||||
<dimen name="abouthome_rowitem_left_padding">12dip</dimen>
|
||||
<dimen name="abouthome_topsite_pinsize">20dp</dimen>
|
||||
<dimen name="abouthome_topsite_shadow_offset">2dp</dimen>
|
||||
<dimen name="autocomplete_min_width">200dp</dimen>
|
||||
|
|
|
@ -284,6 +284,31 @@
|
|||
<item name="android:textColor">@color/abouthome_section_subtitle</item>
|
||||
</style>
|
||||
|
||||
<style name="AboutHome.RowItem">
|
||||
<item name="android:background">@drawable/action_bar_button</item>
|
||||
<item name="android:focusable">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AboutHome.RowItem.TextRow">
|
||||
<item name="android:textAppearance">@style/AboutHome.TextAppearance.Title</item>
|
||||
<item name="android:ellipsize">middle</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AboutHome.LastTabRow" />
|
||||
|
||||
<style name="AboutHome.LastTabRow.Title">
|
||||
<item name="android:textSize">15sp</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:textColor">@color/abouthome_section_title</item>
|
||||
</style>
|
||||
|
||||
<style name="AboutHome.LastTabRow.Url">
|
||||
<item name="android:textSize">12sp</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:textColor">@color/abouthome_section_subtitle</item>
|
||||
</style>
|
||||
|
||||
<style name="GeckoDialogTitle">
|
||||
<item name="android:textAppearance">@android:style/TextAppearance.DialogWindowTitle</item>
|
||||
</style>
|
||||
|
|
Загрузка…
Ссылка в новой задаче