Bug 1129181 - Make Remote Tabs split pane swipe to refresh apply to both clients and tabs in landscape mode. r=nalexander

For the details of why layout_width="0dp" is correct, see:
www.chess-ix.com/blog/the-use-of-layout_weight-with-android-layouts/

--HG--
extra : rebase_source : b023733363db30e988f23d1edcfceb1e0400111e
This commit is contained in:
vivek 2015-02-11 12:43:00 -08:00
Родитель 777c1ba35e
Коммит 4af97612e4
1 изменённых файлов: 21 добавлений и 22 удалений

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

@ -13,32 +13,31 @@
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:weightSum="1.0">
<org.mozilla.gecko.widget.GeckoSwipeRefreshLayout
android:id="@id/remote_tabs_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<org.mozilla.gecko.home.HomeListView
android:id="@+id/clients_list"
style="@style/Widget.RemoteTabsListView"
android:layout_weight="0.5"
android:layout_width="wrap_content"
android:layout_height="match_parent"/>
<org.mozilla.gecko.widget.GeckoSwipeRefreshLayout
android:id="@id/remote_tabs_refresh_layout"
android:layout_weight="0.5"
android:layout_width="wrap_content"
android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<org.mozilla.gecko.home.HomeListView
android:id="@+id/tabs_list"
style="@style/Widget.RemoteTabsListView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:id="@+id/clients_list"
style="@style/Widget.RemoteTabsListView"
android:layout_weight="0.32"
android:layout_width="0dp"
android:layout_height="match_parent"/>
</org.mozilla.gecko.widget.GeckoSwipeRefreshLayout>
<org.mozilla.gecko.home.HomeListView
android:id="@+id/tabs_list"
style="@style/Widget.RemoteTabsListView"
android:layout_weight="0.68"
android:layout_width="0dp"
android:layout_height="match_parent"/>
</LinearLayout>
</LinearLayout>
</org.mozilla.gecko.widget.GeckoSwipeRefreshLayout>
</LinearLayout>