Skip to content

Commit 4fed28c

Browse files
Elevate tabs rather than app bar in article list
1 parent 78b9e40 commit 4fed28c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/src/main/res/layout/activity_main_appbar.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
<com.google.android.material.appbar.AppBarLayout
1111
android:layout_width="match_parent"
12-
android:layout_height="wrap_content">
13-
12+
android:layout_height="wrap_content"
13+
app:elevation="0dp">
1414

1515
<FrameLayout
1616
android:layout_width="match_parent"
@@ -26,10 +26,10 @@
2626
android:id="@+id/progressBar"
2727
android:layout_width="match_parent"
2828
android:layout_height="14dp"
29-
android:visibility="invisible"
3029
android:indeterminate="true"
31-
app:showAnimationBehavior="outward"
32-
app:hideAnimationBehavior="inward" />
30+
android:visibility="invisible"
31+
app:hideAnimationBehavior="inward"
32+
app:showAnimationBehavior="outward" />
3333

3434
</FrameLayout>
3535

app/src/main/res/layout/fragment_article_lists.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:tools="http://schemas.android.com/tools"
54
android:layout_width="match_parent"
65
android:layout_height="match_parent"
@@ -10,7 +9,8 @@
109
<com.google.android.material.tabs.TabLayout
1110
android:id="@+id/articles_list_tab_layout"
1211
android:layout_width="match_parent"
13-
android:layout_height="?attr/actionBarSize" />
12+
android:layout_height="?attr/actionBarSize"
13+
android:elevation="4dp" />
1414

1515
<androidx.viewpager.widget.ViewPager
1616
android:id="@+id/articles_list_pager"

0 commit comments

Comments
 (0)