mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-08 15:57:29 +00:00
109 lines
4.7 KiB
XML
109 lines
4.7 KiB
XML
<?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/media_share_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
android:id="@+id/top_barrier"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:barrierDirection="bottom" />
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/media_preview"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:actualImageScaleType="centerCrop"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:layout_height="200dp" />
|
|
|
|
<View
|
|
android:id="@+id/top_bg"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:background="@drawable/bg_media_share_top_incoming"
|
|
app:layout_constraintBottom_toTopOf="@id/top_barrier"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<awais.instagrabber.customviews.CircularImageView
|
|
android:id="@+id/profile_pic"
|
|
android:layout_width="@dimen/profile_pic_size_regular"
|
|
android:layout_height="@dimen/profile_pic_size_regular"
|
|
android:layout_margin="8dp"
|
|
app:layout_constraintBottom_toTopOf="@id/top_barrier"
|
|
app:layout_constraintEnd_toStartOf="@id/username"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/username"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
|
|
app:layout_constraintBottom_toBottomOf="@id/profile_pic"
|
|
app:layout_constraintEnd_toStartOf="@id/type_icon"
|
|
app:layout_constraintStart_toEndOf="@id/profile_pic"
|
|
app:layout_constraintTop_toTopOf="@id/profile_pic"
|
|
tools:text="Username Username Username Username Username Username " />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/type_icon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="8dp"
|
|
app:layout_constraintBottom_toBottomOf="@id/profile_pic"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/username"
|
|
app:layout_constraintTop_toTopOf="@id/profile_pic"
|
|
app:srcCompat="@drawable/ic_video_24" />
|
|
|
|
<View
|
|
android:id="@+id/bottom_bg"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:background="@drawable/bg_media_share_bottom"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/title" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingBottom="0dp"
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toTopOf="@id/caption"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_bias="1"
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
tools:text="Title" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/caption"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/title"
|
|
tools:text="Caption Caption Caption Caption Caption Caption " />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |