2020-08-29 08:01:42 +00:00
<?xml version="1.0" encoding="utf-8"?>
<awais.instagrabber.customviews.helpers.NestedCoordinatorLayout 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-09-03 19:07:43 +00:00
android:background="?attr/colorSurface">
2020-08-29 08:01:42 +00:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-12 08:17:36 +00:00
android:background="?attr/colorSurface"
app:elevation="0dp">
2020-08-29 08:01:42 +00:00
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-11-06 15:52:04 +00:00
app:layout_scrollFlags="scroll|snap">
2020-08-29 08:01:42 +00:00
2020-09-12 07:51:22 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2020-08-29 08:01:42 +00:00
android:id="@+id/infoContainer"
android:layout_width="match_parent"
2020-09-12 07:51:22 +00:00
android:layout_height="wrap_content">
2020-08-29 08:01:42 +00:00
2020-09-12 07:51:22 +00:00
<awais.instagrabber.customviews.CircularImageView
android:id="@+id/mainProfileImage"
android:layout_width="@dimen/profile_picture_size"
android:layout_height="@dimen/profile_picture_size"
2020-11-01 19:43:07 +00:00
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
2020-10-17 10:07:03 +00:00
android:transitionName="profile_pic"
2020-09-12 07:51:22 +00:00
app:actualImageScaleType="centerCrop"
app:layout_constraintEnd_toStartOf="@id/mainPostCount"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:background="@mipmap/ic_launcher" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/mainPostCount"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center"
android:textAppearance="@style/TextAppearance.AppCompat"
app:layout_constraintBottom_toBottomOf="@id/mainProfileImage"
app:layout_constraintEnd_toStartOf="@id/mainFollowers"
app:layout_constraintStart_toEndOf="@id/mainProfileImage"
app:layout_constraintTop_toTopOf="parent"
tools:text="35\nPosts" />
2020-08-29 08:01:42 +00:00
2020-09-12 07:51:22 +00:00
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/mainFollowers"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="?selectableItemBackgroundBorderless"
android:gravity="center"
android:textAppearance="@style/TextAppearance.AppCompat"
app:layout_constraintBottom_toBottomOf="@id/mainProfileImage"
app:layout_constraintEnd_toStartOf="@id/mainFollowing"
app:layout_constraintStart_toEndOf="@id/mainPostCount"
app:layout_constraintTop_toTopOf="parent"
tools:text="68\nFollowers" />
2020-08-29 08:01:42 +00:00
2020-09-12 07:51:22 +00:00
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/mainFollowing"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="?selectableItemBackgroundBorderless"
android:gravity="center"
android:textAppearance="@style/TextAppearance.AppCompat"
app:layout_constraintBottom_toBottomOf="@id/mainProfileImage"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/mainFollowers"
app:layout_constraintTop_toTopOf="parent"
tools:text="64\nFollowing" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/mainFullName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:paddingStart="8dp"
2020-09-18 19:18:14 +00:00
android:paddingTop="8dp"
2020-09-12 07:51:22 +00:00
android:paddingEnd="4dp"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/mainProfileImage"
tools:text="Austin Huang" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/isVerified"
2020-09-27 01:33:41 +00:00
android:layout_width="30dp"
android:layout_height="match_parent"
android:layout_gravity="center"
2020-09-12 07:51:22 +00:00
android:adjustViewBounds="true"
2020-10-17 10:07:03 +00:00
android:paddingTop="8dp"
2020-09-12 07:51:22 +00:00
android:scaleType="fitCenter"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/mainFullName"
app:layout_constraintStart_toEndOf="@id/mainFullName"
app:layout_constraintTop_toBottomOf="@id/mainProfileImage"
app:srcCompat="@drawable/verified"
tools:visibility="visible" />
2020-08-29 08:01:42 +00:00
2020-09-18 19:18:14 +00:00
<CheckBox
android:id="@+id/fav_cb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/sl_favourite_24"
android:visibility="gone"
app:buttonTint="@color/yellow_800"
app:layout_constraintBaseline_toBaselineOf="@id/mainFullName"
app:layout_constraintBottom_toTopOf="@id/mainBiography"
app:layout_constraintStart_toEndOf="@id/isVerified" />
<ProgressBar
android:id="@+id/fav_progress"
style="@style/Widget.MaterialComponents.ProgressIndicator.Circular.Indeterminate"
android:layout_width="24dp"
android:layout_height="24dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/mainFullName"
app:layout_constraintStart_toEndOf="@id/isVerified"
app:layout_constraintTop_toTopOf="@id/mainFullName"
tools:visibility="gone" />
2020-11-06 15:52:04 +00:00
<awais.instagrabber.customviews.RamboTextViewV2
2020-08-29 08:01:42 +00:00
android:id="@+id/mainBiography"
2020-09-12 07:51:22 +00:00
android:layout_width="0dp"
2020-08-29 08:01:42 +00:00
android:layout_height="wrap_content"
2020-09-18 19:18:14 +00:00
android:layout_margin="8dp"
2020-08-29 08:01:42 +00:00
android:background="?android:selectableItemBackground"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
2020-09-12 07:51:22 +00:00
app:layout_constraintBottom_toTopOf="@id/mainUrl"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/mainFullName"
tools:text="THE GLORIOUS (step)OWNER OF THIS APP. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id justo lorem. In malesuada feugiat ornare. Suspendisse et mauris imperdiet, luctus augue eget, tempus eros. Cras vitae molestie ipsum. " />
2020-08-29 08:01:42 +00:00
2020-11-06 15:52:04 +00:00
<awais.instagrabber.customviews.RamboTextViewV2
2020-08-29 08:01:42 +00:00
android:id="@+id/mainUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/mainBiography"
android:ellipsize="marquee"
2020-09-18 19:18:14 +00:00
android:padding="8dp"
2020-08-29 08:01:42 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:visibility="gone"
2020-09-12 07:51:22 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/mainBiography"
tools:text="https://austinhuang.me/"
tools:textColor="@android:color/holo_blue_dark"
2020-11-06 15:52:04 +00:00
tools:visibility="visible" />
2020-08-29 08:01:42 +00:00
2020-09-18 19:18:14 +00:00
<com.google.android.material.button.MaterialButton
2020-09-12 07:51:22 +00:00
android:id="@+id/btnFollow"
2020-09-18 19:18:14 +00:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2020-09-12 07:51:22 +00:00
android:layout_width="0dp"
2020-08-29 08:01:42 +00:00
android:layout_height="wrap_content"
2020-09-12 07:51:22 +00:00
android:text="@string/follow"
2020-09-18 19:18:14 +00:00
android:textColor="@color/deep_purple_200"
2020-09-12 07:51:22 +00:00
android:visibility="gone"
2020-09-18 19:18:14 +00:00
app:icon="@drawable/ic_outline_person_add_24"
app:iconGravity="top"
app:iconTint="@color/deep_purple_200"
app:layout_constraintBottom_toTopOf="@id/highlights_barrier"
app:layout_constraintEnd_toStartOf="@id/btnTagged"
2020-09-12 07:51:22 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/mainUrl"
2020-09-18 19:18:14 +00:00
app:rippleColor="@color/purple_200"
2020-09-12 07:51:22 +00:00
tools:visibility="visible" />
2020-08-29 08:01:42 +00:00
2020-09-18 19:18:14 +00:00
<com.google.android.material.button.MaterialButton
2020-09-12 07:51:22 +00:00
android:id="@+id/btnTagged"
2020-09-18 19:18:14 +00:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2020-09-12 07:51:22 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/tagged"
2020-09-18 19:18:14 +00:00
android:textColor="@color/deep_orange_600"
2020-09-12 07:51:22 +00:00
android:visibility="gone"
2020-09-18 19:18:14 +00:00
app:icon="@drawable/ic_outline_person_pin_24"
app:iconGravity="top"
app:iconTint="@color/deep_orange_600"
2020-09-12 07:51:22 +00:00
app:layout_constraintBottom_toTopOf="@id/highlights_barrier"
app:layout_constraintEnd_toStartOf="@id/btnSaved"
2020-09-18 19:18:14 +00:00
app:layout_constraintStart_toEndOf="@id/btnFollow"
app:layout_constraintTop_toBottomOf="@id/mainUrl"
2020-09-12 07:51:22 +00:00
tools:visibility="visible" />
2020-08-29 08:01:42 +00:00
2020-09-18 19:18:14 +00:00
<com.google.android.material.button.MaterialButton
2020-09-12 07:51:22 +00:00
android:id="@+id/btnSaved"
2020-09-18 19:18:14 +00:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2020-09-12 07:51:22 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/saved"
2020-09-18 19:18:14 +00:00
android:textColor="@color/blue_700"
2020-09-12 07:51:22 +00:00
android:visibility="gone"
2020-09-18 19:18:14 +00:00
app:icon="@drawable/ic_outline_class_24"
app:iconGravity="top"
app:iconTint="@color/blue_700"
2020-09-12 07:51:22 +00:00
app:layout_constraintBottom_toTopOf="@id/highlights_barrier"
app:layout_constraintEnd_toStartOf="@id/btnLiked"
app:layout_constraintStart_toEndOf="@id/btnTagged"
2020-09-18 19:18:14 +00:00
app:layout_constraintTop_toBottomOf="@id/mainUrl"
app:rippleColor="@color/blue_A400"
2020-09-12 07:51:22 +00:00
tools:visibility="visible" />
2020-08-29 08:01:42 +00:00
2020-09-18 19:18:14 +00:00
<com.google.android.material.button.MaterialButton
2020-09-12 07:51:22 +00:00
android:id="@+id/btnLiked"
2020-09-18 19:18:14 +00:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2020-09-12 07:51:22 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/liked"
2020-09-18 19:18:14 +00:00
android:textColor="@color/red_600"
2020-09-12 07:51:22 +00:00
android:visibility="gone"
2020-09-18 19:18:14 +00:00
app:icon="@drawable/ic_like"
app:iconGravity="top"
app:iconTint="@color/red_600"
2020-09-12 07:51:22 +00:00
app:layout_constraintBottom_toTopOf="@id/highlights_barrier"
app:layout_constraintEnd_toEndOf="parent"
2020-09-23 03:15:57 +00:00
app:layout_constraintEnd_toStartOf="@id/btnDM"
2020-09-12 07:51:22 +00:00
app:layout_constraintStart_toEndOf="@id/btnSaved"
2020-09-18 19:18:14 +00:00
app:layout_constraintTop_toBottomOf="@id/mainUrl"
app:rippleColor="@color/red_300"
2020-09-12 07:51:22 +00:00
tools:visibility="visible" />
2020-08-29 08:01:42 +00:00
2020-09-23 03:15:57 +00:00
<com.google.android.material.button.MaterialButton
android:id="@+id/btnDM"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/dm_person"
android:textColor="@color/green"
android:visibility="gone"
app:icon="@drawable/ic_send_24"
app:iconGravity="top"
app:iconTint="@color/green"
app:layout_constraintBottom_toTopOf="@id/highlights_barrier"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/btnLiked"
app:layout_constraintTop_toBottomOf="@id/mainUrl"
app:rippleColor="@color/green"
tools:visibility="visible" />
2020-09-12 07:51:22 +00:00
<androidx.constraintlayout.widget.Barrier
android:id="@+id/highlights_barrier"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="btnTagged, btnSaved, btnLiked" />
2020-08-29 08:01:42 +00:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/highlightsList"
2020-09-12 07:51:22 +00:00
android:layout_width="0dp"
2020-08-29 08:01:42 +00:00
android:layout_height="wrap_content"
android:clipToPadding="false"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:paddingEnd="5dp"
android:paddingRight="5dp"
2020-09-05 18:34:16 +00:00
android:visibility="gone"
2020-09-12 07:51:22 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/highlights_barrier"
2020-09-05 18:34:16 +00:00
tools:itemCount="2"
tools:visibility="visible" />
2020-09-12 07:51:22 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
2020-08-29 08:01:42 +00:00
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
2020-10-27 11:33:21 +00:00
android:id="@+id/swipe_refresh_layout"
2020-08-29 08:01:42 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-10-27 11:33:21 +00:00
app:layout_behavior="@string/appbar_scrolling_view_behavior">
2020-08-29 08:01:42 +00:00
2020-10-27 11:33:21 +00:00
<awais.instagrabber.customviews.PostsRecyclerView
android:id="@+id/posts_recycler_view"
2020-08-29 08:01:42 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
2020-10-27 11:33:21 +00:00
tools:listitem="@layout/item_feed_photo" />
2020-08-29 08:01:42 +00:00
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<LinearLayout
android:id="@+id/privatePage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="@dimen/private_page_margins"
android:gravity="center"
android:orientation="vertical"
2020-09-12 07:51:22 +00:00
android:visibility="gone"
tools:visibility="gone">
2020-08-29 08:01:42 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/privatePage1"
android:layout_width="@dimen/private_page_margins"
android:layout_height="@dimen/private_page_margins"
app:srcCompat="@drawable/lock" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/privatePage2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/priv_acc"
android:textAppearance="@style/TextAppearance.AppCompat.Large" />
</LinearLayout>
</awais.instagrabber.customviews.helpers.NestedCoordinatorLayout>