Skip to content

Commit

Permalink
Elevate tabs rather than app bar in article list
Browse files Browse the repository at this point in the history
  • Loading branch information
proletarius101 committed Jan 26, 2021
1 parent 78b9e40 commit 4fed28c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions app/src/main/res/layout/activity_main_appbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

android:layout_height="wrap_content"
app:elevation="0dp">

<FrameLayout
android:layout_width="match_parent"
Expand All @@ -26,10 +26,10 @@
android:id="@+id/progressBar"
android:layout_width="match_parent"
android:layout_height="14dp"
android:visibility="invisible"
android:indeterminate="true"
app:showAnimationBehavior="outward"
app:hideAnimationBehavior="inward" />
android:visibility="invisible"
app:hideAnimationBehavior="inward"
app:showAnimationBehavior="outward" />

</FrameLayout>

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/fragment_article_lists.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand All @@ -10,7 +9,8 @@
<com.google.android.material.tabs.TabLayout
android:id="@+id/articles_list_tab_layout"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
android:layout_height="?attr/actionBarSize"
android:elevation="4dp" />

<androidx.viewpager.widget.ViewPager
android:id="@+id/articles_list_pager"
Expand Down

0 comments on commit 4fed28c

Please sign in to comment.