1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-22 13:24:46 +01:00

Adjust light theme tab bar area

Adds a material shadow below tab layouts. This is not very noticeable in
the default theme, but in the light theme in visually demarcates where
the tab layout ends.
This commit is contained in:
Briar Rose Schreiber 2017-04-09 01:13:18 -07:00
parent 632cb0d6e3
commit a8c44da532
2 changed files with 25 additions and 6 deletions

View File

@ -166,6 +166,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
<View
android:id="@+id/tab_bottom_shadow"
android:layout_width="match_parent"
android:layout_height="2dp"
app:layout_anchor="@id/tab_layout"
app:layout_anchorGravity="bottom"
android:background="@drawable/material_drawer_shadow_bottom"
android:visibility="visible" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/floating_btn"
android:layout_width="wrap_content"

View File

@ -55,6 +55,7 @@
</android.support.design.widget.TabLayout>
</android.support.v4.view.ViewPager>
</LinearLayout>
<com.arlib.floatingsearchview.FloatingSearchView
@ -70,11 +71,15 @@
app:floatingSearch_leftActionMode="showHamburger"
app:floatingSearch_close_search_on_keyboard_dismiss="true"/>
<FrameLayout
android:id="@+id/overlay_fragment_container"
<View
android:id="@+id/tab_bottom_shadow"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
android:layout_height="2dp"
app:layout_anchor="@id/tab_layout"
app:layout_anchorGravity="bottom"
android:background="@drawable/material_drawer_shadow_bottom"
android:visibility="visible" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/floating_btn"
@ -85,4 +90,9 @@
android:layout_margin="16dp"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_create_24dp"/>
<FrameLayout
android:id="@+id/overlay_fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"></FrameLayout>
</android.support.design.widget.CoordinatorLayout>