1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-09 00:07:30 +00:00
BarInsta/app/src/main/res/layout/item_suggestion.xml

74 lines
3.1 KiB
XML
Raw Normal View History

2020-07-01 17:08:28 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-09-05 17:02:54 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-07-01 17:08:28 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2020-09-05 17:02:54 +00:00
xmlns:tools="http://schemas.android.com/tools"
2020-07-01 17:08:28 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:paddingLeft="16dp"
android:paddingTop="8dp"
android:paddingRight="16dp"
android:paddingBottom="8dp">
2020-07-01 17:08:28 +00:00
2020-09-05 17:02:54 +00:00
<com.facebook.drawee.view.SimpleDraweeView
2020-07-01 17:08:28 +00:00
android:id="@+id/ivProfilePic"
android:layout_width="40dp"
android:layout_height="40dp"
2020-09-05 17:02:54 +00:00
app:actualImageScaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/tvUsername"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:roundAsCircle="true"
tools:background="@mipmap/ic_launcher" />
2020-07-01 17:08:28 +00:00
2020-09-05 17:02:54 +00:00
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tvUsername"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingLeft="16dp"
2020-09-05 17:02:54 +00:00
android:paddingEnd="4dp"
android:paddingRight="4dp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
app:layout_constraintBottom_toTopOf="@id/tvFullName"
app:layout_constraintEnd_toStartOf="@id/isVerified"
app:layout_constraintStart_toEndOf="@id/ivProfilePic"
app:layout_constraintTop_toTopOf="parent"
tools:text="username" />
2020-07-01 17:08:28 +00:00
2020-09-05 17:02:54 +00:00
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tvFullName"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingLeft="16dp"
android:paddingEnd="0dp"
android:paddingRight="0dp"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
2020-09-05 17:02:54 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/ivProfilePic"
app:layout_constraintTop_toBottomOf="@id/tvUsername"
tools:text="full name"
tools:visibility="visible" />
2020-07-01 17:08:28 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/isVerified"
2020-09-05 17:02:54 +00:00
android:layout_width="20dp"
android:layout_height="20dp"
2020-07-01 17:08:28 +00:00
android:layout_gravity="end"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:visibility="gone"
2020-09-05 17:02:54 +00:00
app:layout_constraintBaseline_toBaselineOf="@id/tvUsername"
app:layout_constraintBottom_toTopOf="@id/tvFullName"
app:layout_constraintStart_toEndOf="@id/tvUsername"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/verified"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>