apkfuckery/com.discord/res/layout/view_file_item.xml

9 lines
2.5 KiB
XML
Raw Normal View History

2019-07-24 11:27:29 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:animateLayoutChanges="true" style="@style/FlexInput.Items.File"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/thumb_iv" android:layout_margin="4.0dip" android:layout_marginLeft="8.0dip" android:layout_marginTop="8.0dip" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/file_name_tv" app:layout_constraintTop_toTopOf="parent" style="@style/FlexInput.Items.File.Image" />
<androidx.appcompat.widget.AppCompatImageView android:layout_gravity="end|bottom|center" android:id="@id/type_iv" android:layout_width="@dimen/file_type_icon_dimen" android:layout_height="@dimen/file_type_icon_dimen" android:tint="?flexInputIconColor" app:layout_constraintBottom_toBottomOf="@id/thumb_iv" app:layout_constraintRight_toRightOf="@id/thumb_iv" />
<TextView android:id="@id/file_name_tv" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/text_margin" android:layout_marginTop="@dimen/margin" android:layout_marginRight="@dimen/text_margin" android:layout_marginBottom="@dimen/margin" android:text="filename" android:maxLines="1" app:layout_constraintLeft_toRightOf="@id/thumb_iv" app:layout_constraintRight_toLeftOf="@id/selection_indicator" app:layout_constraintTop_toTopOf="parent" style="@style/FlexInput.Items.File.Name" />
<TextView android:id="@id/file_subtitle_tv" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/margin" android:text="file path" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="@id/file_name_tv" app:layout_constraintRight_toRightOf="@id/file_name_tv" app:layout_constraintTop_toBottomOf="@id/file_name_tv" style="@style/FlexInput.Items.File.Subtitle" />
<androidx.appcompat.widget.AppCompatImageView android:id="@id/selection_indicator" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintLeft_toRightOf="@id/file_name_tv" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/FlexInput.Items.File.Selection" />
</androidx.constraintlayout.widget.ConstraintLayout>