make tabs fill whole space in landscape mode
This commit is contained in:
parent
2ac6017fd1
commit
1aa870b069
1 changed files with 21 additions and 20 deletions
|
@ -1,8 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<android.support.design.widget.CoordinatorLayout
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/activity_main"
|
android:id="@+id/activity_main"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
@ -28,10 +27,12 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?android:colorBackground"
|
android:background="?android:colorBackground"
|
||||||
android:paddingTop="?attr/actionBarSize"
|
android:paddingTop="?attr/actionBarSize"
|
||||||
app:tabTextAppearance="@style/TabLayoutTextStyle"
|
app:tabGravity="fill"
|
||||||
|
app:tabMaxWidth="0dp"
|
||||||
|
app:tabPaddingEnd="1dp"
|
||||||
app:tabPaddingStart="1dp"
|
app:tabPaddingStart="1dp"
|
||||||
app:tabPaddingTop="4dp"
|
app:tabPaddingTop="4dp"
|
||||||
app:tabPaddingEnd="1dp">
|
app:tabTextAppearance="@style/TabLayoutTextStyle">
|
||||||
|
|
||||||
<android.support.design.widget.TabItem
|
<android.support.design.widget.TabItem
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -63,34 +64,34 @@
|
||||||
android:id="@+id/floating_search_view"
|
android:id="@+id/floating_search_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:floatingSearch_searchBarMarginLeft="6dp"
|
app:floatingSearch_close_search_on_keyboard_dismiss="true"
|
||||||
app:floatingSearch_searchBarMarginTop="4dp"
|
|
||||||
app:floatingSearch_searchBarMarginRight="6dp"
|
|
||||||
app:floatingSearch_searchHint="@string/search"
|
|
||||||
app:floatingSearch_suggestionsListAnimDuration="250"
|
|
||||||
app:floatingSearch_showSearchKey="false"
|
|
||||||
app:floatingSearch_leftActionMode="showHamburger"
|
app:floatingSearch_leftActionMode="showHamburger"
|
||||||
app:floatingSearch_close_search_on_keyboard_dismiss="true"/>
|
app:floatingSearch_searchBarMarginLeft="6dp"
|
||||||
|
app:floatingSearch_searchBarMarginRight="6dp"
|
||||||
|
app:floatingSearch_searchBarMarginTop="4dp"
|
||||||
|
app:floatingSearch_searchHint="@string/search"
|
||||||
|
app:floatingSearch_showSearchKey="false"
|
||||||
|
app:floatingSearch_suggestionsListAnimDuration="250" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/tab_bottom_shadow"
|
android:id="@+id/tab_bottom_shadow"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="2dp"
|
android:layout_height="2dp"
|
||||||
app:layout_anchor="@id/tab_layout"
|
|
||||||
app:layout_anchorGravity="bottom"
|
|
||||||
android:background="@drawable/material_drawer_shadow_bottom"
|
android:background="@drawable/material_drawer_shadow_bottom"
|
||||||
android:visibility="visible" />
|
android:visibility="visible"
|
||||||
|
app:layout_anchor="@id/tab_layout"
|
||||||
|
app:layout_anchorGravity="bottom" />
|
||||||
|
|
||||||
<android.support.design.widget.FloatingActionButton
|
<android.support.design.widget.FloatingActionButton
|
||||||
android:id="@+id/floating_btn"
|
android:id="@+id/floating_btn"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="16dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:contentDescription="@string/action_compose"
|
||||||
app:layout_anchor="@id/pager"
|
app:layout_anchor="@id/pager"
|
||||||
app:layout_anchorGravity="bottom|end"
|
app:layout_anchorGravity="bottom|end"
|
||||||
android:clickable="true"
|
app:srcCompat="@drawable/ic_create_24dp" />
|
||||||
android:layout_margin="16dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
app:srcCompat="@drawable/ic_create_24dp"
|
|
||||||
android:contentDescription="@string/action_compose" />
|
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/overlay_fragment_container"
|
android:id="@+id/overlay_fragment_container"
|
||||||
|
|
Loading…
Reference in a new issue