2020-07-01 17:08:28 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-22 07:22:02 +00:00
|
|
|
tools:context=".activities.MainActivity">
|
2020-07-01 17:08:28 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<include
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
layout="@layout/layout_include_toolbar" />
|
|
|
|
|
|
|
|
<awais.instagrabber.customviews.RemixDrawerLayout
|
|
|
|
android:id="@+id/drawerLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<!-- Profile View -->
|
2020-08-07 14:14:58 +00:00
|
|
|
<include
|
|
|
|
android:id="@+id/profile_view"
|
|
|
|
layout="@layout/layout_profile_view" />
|
2020-07-01 17:08:28 +00:00
|
|
|
|
|
|
|
<!-- Feed View -->
|
2020-08-07 14:14:58 +00:00
|
|
|
<include
|
|
|
|
android:id="@+id/feed_view"
|
|
|
|
layout="@layout/layout_feed_view" />
|
2020-07-01 17:08:28 +00:00
|
|
|
|
|
|
|
<!-- Discover View -->
|
2020-08-07 21:02:31 +00:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
2020-08-05 18:54:49 +00:00
|
|
|
android:id="@+id/discoverLayout"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="end"
|
2020-08-05 18:54:49 +00:00
|
|
|
android:animateLayoutChanges="true"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:tag="@android:string/yes">
|
|
|
|
|
2020-08-07 21:02:31 +00:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2020-07-01 17:08:28 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-08-10 07:33:19 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
|
|
|
app:elevation="0dp">
|
2020-08-07 21:02:31 +00:00
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_scrollFlags="scroll|snap|enterAlways">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
|
|
android:id="@+id/discoverType"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:entries="@array/discover_placeholder"/>
|
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2020-08-05 18:54:49 +00:00
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/discoverSwipeRefreshLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
2020-08-07 21:02:31 +00:00
|
|
|
android:tag="@android:string/yes"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2020-08-05 18:54:49 +00:00
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/discoverPosts"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
2020-08-24 15:05:54 +00:00
|
|
|
tools:listitem="@layout/item_feed_photo" />
|
2020-08-07 21:02:31 +00:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
2020-07-01 17:08:28 +00:00
|
|
|
</awais.instagrabber.customviews.RemixDrawerLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/iconSlider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
app:srcCompat="@drawable/ic_feed"
|
|
|
|
app:tint="?android:textColorSecondary" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
app:srcCompat="@drawable/ic_profile"
|
|
|
|
app:tint="?android:textColorPrimary" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
app:srcCompat="@drawable/ic_discover"
|
|
|
|
app:tint="?android:textColorSecondary" />
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|