2020-11-14 18:58:27 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/infoContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="?attr/actionBarSize">
<awais.instagrabber.customviews.CircularImageView
android:id="@+id/mainProfileImage"
android:layout_width="@dimen/profile_picture_size"
android:layout_height="@dimen/profile_picture_size"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:transitionName="profile_pic"
2020-12-28 03:26:09 +00:00
android:visibility="invisible"
2020-11-14 18:58:27 +00:00
app:actualImageScaleType="centerCrop"
2021-03-15 12:20:04 +00:00
app:layout_constraintBottom_toBottomOf="@id/btnTagged"
2021-03-05 16:44:42 +00:00
app:layout_constraintEnd_toStartOf="@id/btnFollow"
2020-11-14 18:58:27 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
2021-03-15 12:20:04 +00:00
tools:foreground="@mipmap/ic_launcher"
tools:visibility="visible" />
2020-11-14 18:58:27 +00:00
2021-03-05 16:44:42 +00:00
<!-- for other people -->
2020-12-20 02:38:21 +00:00
<com.google.android.material.chip.Chip
2021-03-05 16:44:42 +00:00
android:id="@+id/btnFollow"
2020-12-20 02:38:21 +00:00
android:layout_width="wrap_content"
android:layout_height="@dimen/profile_chip_size"
android:layout_marginStart="4dp"
2021-03-05 16:44:42 +00:00
android:text="@string/follow"
2020-12-20 22:04:25 +00:00
android:visibility="gone"
app:chipBackgroundColor="@null"
2021-03-05 16:44:42 +00:00
app:chipIcon="@drawable/ic_outline_person_add_24"
app:chipIconTint="@color/deep_purple_200"
app:layout_constraintBottom_toTopOf="@id/fav_chip"
2021-03-15 12:20:04 +00:00
app:layout_constraintStart_toEndOf="@id/mainProfileImage"
2021-03-27 02:24:00 +00:00
app:layout_constraintTop_toTopOf="parent"
2021-03-05 16:44:42 +00:00
app:rippleColor="@color/purple_200"
2020-12-20 22:04:25 +00:00
tools:visibility="visible" />
2020-11-14 18:58:27 +00:00
2020-12-20 02:38:21 +00:00
<com.google.android.material.chip.Chip
2021-03-05 16:44:42 +00:00
android:id="@+id/mainStatus"
2020-12-20 02:38:21 +00:00
android:layout_width="wrap_content"
android:layout_height="@dimen/profile_chip_size"
android:layout_marginStart="4dp"
android:clickable="false"
2020-11-14 18:58:27 +00:00
android:gravity="center"
2020-12-20 22:04:25 +00:00
android:visibility="gone"
app:chipBackgroundColor="@null"
2021-03-05 16:44:42 +00:00
app:layout_constraintBottom_toTopOf="@id/fav_chip"
2021-03-15 12:20:04 +00:00
app:layout_constraintStart_toEndOf="@id/btnFollow"
2021-03-27 02:24:00 +00:00
app:layout_constraintTop_toTopOf="parent"
2021-03-05 16:44:42 +00:00
tools:text="omg what do u expect"
2020-12-20 22:04:25 +00:00
tools:visibility="visible" />
2020-11-14 18:58:27 +00:00
2021-03-05 16:44:42 +00:00
<!-- for user themself -->
2020-12-20 02:38:21 +00:00
<com.google.android.material.chip.Chip
2021-03-05 16:44:42 +00:00
android:id="@+id/btnSaved"
2020-12-20 02:38:21 +00:00
android:layout_width="wrap_content"
android:layout_height="@dimen/profile_chip_size"
android:layout_marginStart="4dp"
2021-03-05 16:44:42 +00:00
android:text="@string/saved"
2020-12-20 22:04:25 +00:00
android:visibility="gone"
app:chipBackgroundColor="@null"
2021-03-05 16:44:42 +00:00
app:chipIcon="@drawable/ic_outline_class_24"
app:chipIconTint="@color/blue_700"
app:layout_constraintBottom_toTopOf="@id/fav_chip"
2021-03-15 12:20:04 +00:00
app:layout_constraintStart_toEndOf="@id/mainStatus"
2021-03-27 02:24:00 +00:00
app:layout_constraintTop_toTopOf="parent"
2021-03-05 16:44:42 +00:00
app:rippleColor="@color/blue_A400"
2020-12-20 22:04:25 +00:00
tools:visibility="visible" />
2020-12-20 02:38:21 +00:00
<com.google.android.material.chip.Chip
2021-03-05 16:44:42 +00:00
android:id="@+id/btnLiked"
2020-12-20 02:38:21 +00:00
android:layout_width="wrap_content"
android:layout_height="@dimen/profile_chip_size"
android:layout_marginStart="4dp"
2021-03-05 16:44:42 +00:00
android:text="@string/liked"
2020-12-20 22:04:25 +00:00
android:visibility="gone"
app:chipBackgroundColor="@null"
2021-03-05 16:44:42 +00:00
app:chipIcon="@drawable/ic_like"
app:chipIconTint="@color/red_600"
app:layout_constraintBottom_toTopOf="@id/fav_chip"
2021-03-15 12:20:04 +00:00
app:layout_constraintStart_toEndOf="@id/btnSaved"
2021-03-27 02:24:00 +00:00
app:layout_constraintTop_toTopOf="parent"
2021-03-05 16:44:42 +00:00
app:rippleColor="@color/red_300"
2020-12-20 22:04:25 +00:00
tools:visibility="visible" />
2020-12-20 02:38:21 +00:00
<com.google.android.material.chip.Chip
android:id="@+id/fav_chip"
android:layout_width="wrap_content"
android:layout_height="@dimen/profile_chip_size"
2020-12-22 20:25:47 +00:00
android:layout_marginStart="4dp"
2020-12-20 02:38:21 +00:00
android:text="@string/add_to_favorites"
android:visibility="gone"
2020-12-20 22:04:25 +00:00
app:chipBackgroundColor="@null"
2020-12-20 02:38:21 +00:00
app:chipIcon="@drawable/ic_outline_star_plus_24"
app:chipIconTint="@color/yellow_800"
app:layout_constraintStart_toEndOf="@id/mainProfileImage"
2021-03-05 16:44:42 +00:00
app:layout_constraintTop_toBottomOf="@id/btnFollow"
2020-12-20 02:38:21 +00:00
app:rippleColor="@color/yellow_400"
tools:visibility="visible" />
<com.google.android.material.chip.Chip
android:id="@+id/btnTagged"
android:layout_width="wrap_content"
android:layout_height="@dimen/profile_chip_size"
android:layout_marginStart="4dp"
android:text="@string/tagged"
android:visibility="gone"
2020-12-20 22:04:25 +00:00
app:chipBackgroundColor="@null"
2020-12-20 02:38:21 +00:00
app:chipIcon="@drawable/ic_outline_person_pin_24"
app:chipIconTint="@color/deep_orange_800"
2021-03-27 02:24:00 +00:00
app:layout_constraintBottom_toTopOf="@+id/mainFullName"
2021-03-05 16:44:42 +00:00
app:layout_constraintStart_toEndOf="@id/mainProfileImage"
app:layout_constraintTop_toBottomOf="@id/fav_chip"
2020-12-20 02:38:21 +00:00
app:rippleColor="@color/deep_orange_400"
tools:visibility="visible" />
2020-11-14 18:58:27 +00:00
2021-03-05 16:44:42 +00:00
<com.google.android.material.chip.Chip
android:id="@+id/btnDM"
android:layout_width="wrap_content"
android:layout_height="@dimen/profile_chip_size"
android:layout_marginStart="4dp"
android:text="@string/dm_person"
android:visibility="gone"
app:chipBackgroundColor="@null"
app:chipIcon="@drawable/ic_round_send_24"
app:chipIconTint="@color/green"
2021-03-27 02:24:00 +00:00
app:layout_constraintBottom_toTopOf="@+id/mainFullName"
2021-03-05 16:44:42 +00:00
app:layout_constraintStart_toEndOf="@id/btnTagged"
app:layout_constraintTop_toBottomOf="@id/fav_chip"
app:rippleColor="@color/green"
tools:visibility="visible" />
2020-11-14 18:58:27 +00:00
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/mainFullName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:paddingStart="8dp"
2021-03-05 16:44:42 +00:00
android:paddingTop="4dp"
2020-11-14 18:58:27 +00:00
android:paddingEnd="4dp"
2021-03-15 12:20:04 +00:00
android:paddingBottom="4dp"
2020-11-14 18:58:27 +00:00
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
2021-03-05 16:44:42 +00:00
app:layout_constraintTop_toBottomOf="@id/btnTagged"
2020-11-14 18:58:27 +00:00
tools:text="Austin Huang" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/isVerified"
android:layout_width="30dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:adjustViewBounds="true"
2021-03-05 16:44:42 +00:00
android:paddingTop="4dp"
android:paddingBottom="4dp"
2020-11-14 18:58:27 +00:00
android:scaleType="fitCenter"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/mainFullName"
app:layout_constraintStart_toEndOf="@id/mainFullName"
2021-03-05 16:44:42 +00:00
app:layout_constraintTop_toBottomOf="@id/btnTagged"
2020-11-14 18:58:27 +00:00
app:srcCompat="@drawable/verified"
tools:visibility="visible" />
2021-03-27 02:24:00 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/isPrivate"
android:layout_width="25dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:scaleType="fitCenter"
android:tint="@color/red_500"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/mainFullName"
app:layout_constraintStart_toEndOf="@id/isVerified"
app:layout_constraintTop_toBottomOf="@id/btnTagged"
app:srcCompat="@drawable/lock"
tools:visibility="visible" />
2020-11-14 18:58:27 +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"
2020-12-05 20:17:46 +00:00
style="@style/Widget.MaterialComponents.CircularProgressIndicator"
2020-11-14 18:58:27 +00:00
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" />
<awais.instagrabber.customviews.RamboTextViewV2
android:id="@+id/mainBiography"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="?android:selectableItemBackground"
2021-03-05 16:44:42 +00:00
android:paddingStart="8dp"
android:paddingTop="4dp"
2021-03-15 12:20:04 +00:00
android:paddingEnd="8dp"
2021-03-05 16:44:42 +00:00
android:paddingBottom="4dp"
2020-11-14 18:58:27 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
app:layout_constraintBottom_toTopOf="@id/mainUrl"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/mainFullName"
2021-03-05 16:44:42 +00:00
tools:text="One of THE GLORIOUS OWNERS 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-11-14 18:58:27 +00:00
<awais.instagrabber.customviews.RamboTextViewV2
android:id="@+id/mainUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/mainBiography"
android:ellipsize="marquee"
2021-03-05 16:44:42 +00:00
android:paddingStart="8dp"
android:paddingTop="4dp"
2021-03-15 12:20:04 +00:00
android:paddingEnd="8dp"
2021-03-05 16:44:42 +00:00
android:paddingBottom="4dp"
2020-11-14 18:58:27 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:visibility="gone"
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"
tools:visibility="visible" />
2021-03-05 16:44:42 +00:00
<awais.instagrabber.customviews.RamboTextViewV2
android:id="@+id/profileContext"
android:layout_width="match_parent"
2020-11-14 18:58:27 +00:00
android:layout_height="wrap_content"
2021-03-05 16:44:42 +00:00
android:layout_below="@id/mainUrl"
android:ellipsize="marquee"
android:paddingStart="8dp"
android:paddingTop="4dp"
android:paddingEnd="8dp"
android:paddingBottom="4dp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textSize="12sp"
android:textStyle="italic"
2020-11-14 18:58:27 +00:00
android:visibility="gone"
2021-03-15 12:20:04 +00:00
app:layout_constraintBottom_toTopOf="@id/counts_barrier"
2021-03-05 16:44:42 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-11-14 18:58:27 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/mainUrl"
2021-03-05 16:44:42 +00:00
tools:text="Followed by @instagram, @facebook + 69 more"
2020-11-14 18:58:27 +00:00
tools:visibility="visible" />
2021-03-15 12:20:04 +00:00
<include
2021-03-05 16:44:42 +00:00
android:id="@+id/counts_barrier"
2021-03-15 12:20:04 +00:00
layout="@layout/item_pref_divider"
android:layout_width="0dp"
android:layout_height="1dp"
2020-11-14 18:58:27 +00:00
android:visibility="gone"
2021-03-15 12:20:04 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2021-03-05 16:44:42 +00:00
app:layout_constraintTop_toBottomOf="@id/profileContext"
2020-11-14 18:58:27 +00:00
tools:visibility="visible" />
2021-03-05 16:44:42 +00:00
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/mainPostCount"
2020-11-14 18:58:27 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
2021-03-15 12:20:04 +00:00
android:gravity="center"
2021-03-05 16:44:42 +00:00
android:paddingStart="8dp"
android:paddingTop="4dp"
2021-03-15 12:20:04 +00:00
android:paddingEnd="8dp"
2021-03-05 16:44:42 +00:00
android:paddingBottom="8dp"
android:textAppearance="@style/TextAppearance.AppCompat"
app:layout_constraintBottom_toBottomOf="@id/highlights_barrier"
app:layout_constraintEnd_toStartOf="@id/mainFollowers"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/counts_barrier"
tools:text="35\nPosts" />
2020-11-14 18:58:27 +00:00
2021-03-05 16:44:42 +00:00
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/mainFollowers"
2020-11-14 18:58:27 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
2021-03-15 12:20:04 +00:00
android:background="?selectableItemBackgroundBorderless"
android:gravity="center"
2021-03-05 16:44:42 +00:00
android:paddingStart="8dp"
android:paddingTop="4dp"
2021-03-15 12:20:04 +00:00
android:paddingEnd="8dp"
2021-03-05 16:44:42 +00:00
android:paddingBottom="8dp"
android:textAppearance="@style/TextAppearance.AppCompat"
app:layout_constraintBottom_toBottomOf="@id/highlights_barrier"
app:layout_constraintEnd_toStartOf="@id/mainFollowing"
app:layout_constraintStart_toEndOf="@id/mainPostCount"
app:layout_constraintTop_toBottomOf="@id/counts_barrier"
tools:text="68\nFollowers" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/mainFollowing"
android:layout_width="0dp"
android:layout_height="wrap_content"
2021-03-15 12:20:04 +00:00
android:background="?selectableItemBackgroundBorderless"
android:gravity="center"
2021-03-05 16:44:42 +00:00
android:paddingStart="8dp"
android:paddingTop="4dp"
2021-03-15 12:20:04 +00:00
android:paddingEnd="8dp"
2021-03-05 16:44:42 +00:00
android:paddingBottom="8dp"
android:textAppearance="@style/TextAppearance.AppCompat"
app:layout_constraintBottom_toBottomOf="@id/highlights_barrier"
2020-11-14 18:58:27 +00:00
app:layout_constraintEnd_toEndOf="parent"
2021-03-05 16:44:42 +00:00
app:layout_constraintStart_toEndOf="@id/mainFollowers"
app:layout_constraintTop_toBottomOf="@id/counts_barrier"
tools:text="64\nFollowing" />
2020-11-14 18:58:27 +00:00
<androidx.constraintlayout.widget.Barrier
android:id="@+id/highlights_barrier"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-03-05 16:44:42 +00:00
app:barrierDirection="bottom" />
2020-11-14 18:58:27 +00:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/highlightsList"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:paddingEnd="5dp"
android:paddingRight="5dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/highlights_barrier"
tools:itemCount="2"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>