Bug 1342968 - Remove unused TabsLayout xml style attributes. r=sebastian

All TabsLayouts are RecyclerViews now.
* Orientation on a RecyclerView is set on the LayoutManager, not the
  RecyclerView;
* android:listSelector doesn't apply to RecyclerView;
* android:choiceMode doesn't apply to RecyclerView.

This patch also fixes bug 1337699 when it removes the old
android:scrollbars="horizontal" in values-land/styles.xml from back when the
tabs tray scrolled horizontally in landscape mode.

MozReview-Commit-ID: 97el99fSi5o

--HG--
extra : rebase_source : 6d5c41be3b217abbd5524f1901193cdca0fc939c
This commit is contained in:
Tom Klein 2017-02-27 10:20:36 -06:00
Родитель 1d2b73bf54
Коммит 2fb6ccd932
6 изменённых файлов: 1 добавлений и 21 удалений

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

@ -19,7 +19,6 @@
style="@style/TabsLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:choiceMode="singleChoice"
gecko:tabs="tabs_private"/>
</merge>

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

@ -85,7 +85,6 @@
style="@style/TabsLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:choiceMode="singleChoice"
android:visibility="gone"
gecko:tabs="tabs_normal"/>

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

@ -5,11 +5,6 @@
<resources>
<style name="TabsLayout" parent="TabsLayoutBase">
<item name="android:orientation">horizontal</item>
<item name="android:scrollbars">horizontal</item>
</style>
<style name="TabsItem">
<item name="android:nextFocusDown">@+id/close</item>
</style>

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

@ -5,10 +5,6 @@
<resources>
<style name="TabsLayout" parent="TabsLayoutBase">
<item name="android:scrollbars">vertical</item>
</style>
<style name="Widget.BookmarksListView" parent="Widget.HomeListView">
<item name="android:scrollbarStyle">outsideOverlay</item>
</style>

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

@ -22,10 +22,6 @@
<item name="android:orientation">horizontal</item>
</style>
<style name="TabsLayout" parent="TabsLayoutBase">
<item name="android:scrollbars">vertical</item>
</style>
<style name="TabsItem">
<item name="android:nextFocusDown">@+id/close</item>
</style>

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

@ -471,13 +471,8 @@
</style>
<!-- TabsLayout -->
<style name="TabsLayoutBase">
<style name="TabsLayout">
<item name="android:background">@android:color/transparent</item>
<item name="android:listSelector">@android:color/transparent</item>
</style>
<style name="TabsLayout" parent="TabsLayoutBase">
<item name="android:orientation">vertical</item>
<item name="android:scrollbars">vertical</item>
</style>