Created
July 13, 2020 18:43
-
-
Save abubakrr/5e1e1fa1e8f2e92ce84b3d951e08b6af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/father" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/background"> | |
<com.google.android.material.appbar.AppBarLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:animateLayoutChanges="true" | |
android:background="@color/gray_background_color" | |
android:elevation="0dp" | |
android:focusable="true" | |
android:focusableInTouchMode="true" | |
app:elevation="0dp"> | |
<com.google.android.material.appbar.CollapsingToolbarLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:fitsSystemWindows="true" | |
app:layout_scrollFlags="scroll|enterAlways"> | |
<TextView | |
android:id="@+id/toolbar_title" | |
style="@style/ToolbarStyle" | |
android:text="News" /> | |
<com.google.android.material.tabs.TabLayout | |
android:id="@+id/tabs" | |
android:layout_width="match_parent" | |
android:layout_height="46dp" | |
android:layout_gravity="bottom" | |
android:layout_marginTop="?attr/actionBarSize" | |
android:background="@color/background" | |
app:layout_collapseMode="pin" | |
app:tabGravity="fill" | |
app:tabIndicatorHeight="0dp" | |
app:tabMode="fixed" | |
app:tabSelectedTextColor="@color/colorPrimary" | |
app:tabTextAppearance="@style/CategoryTabStyle" | |
app:tabTextColor="@color/gray_text" /> | |
</com.google.android.material.appbar.CollapsingToolbarLayout> | |
<EditText | |
android:id="@+id/search_bar" | |
android:layout_width="match_parent" | |
android:layout_height="46dp" | |
android:layout_marginStart="18dp" | |
android:layout_marginTop="14dp" | |
android:layout_marginEnd="18dp" | |
android:layout_marginBottom="14dp" | |
android:background="@drawable/search_view_background" | |
android:drawableLeft="@drawable/ic_search" | |
android:drawablePadding="12dp" | |
android:hint="Search for anything" | |
android:paddingStart="13dp" | |
android:textColorHint="@color/gray_text" /> | |
</com.google.android.material.appbar.AppBarLayout> | |
<androidx.viewpager.widget.ViewPager | |
android:id="@+id/pager" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/gray_background_color" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" /> | |
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment