apps-android-commons/app/src/main/res/layout/item_depictions.xml
Ayan Sarkar 38ed364423
Added bookmark Wikidata items option (#4515)
* classes

* Almost done

* All done but build fail

* All done but build fail

* Modifications

* Modifications

* Fixed

* string resource

* minor change

* Maintained code conventions

* Moving

* Exception handled

* id name changed

* Test fail fixed

* Bookmark is available from other activities

* Test fail fixed

* Documentation error fixed

* Test added

* Revert Project_Default.xml

* Minor Change

* Revert changes
2021-12-28 20:15:09 +09:00

44 lines
1.8 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:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/layout_item"
android:padding="@dimen/tiny_gap">
<TextView
android:id="@+id/depicts_label"
android:textStyle="bold"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingTop="@dimen/tiny_gap"
android:text="Label"
android:textAppearance="?android:attr/textAppearanceMedium"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/depicts_image"
app:layout_constraintTop_toTopOf="parent"
tools:text="Really really really really long long long label" />
<TextView
android:id="@+id/description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingTop="@dimen/tiny_gap"
android:text="Description"
tools:text="Really really really really long long long description description description"
app:layout_constraintStart_toEndOf="@+id/depicts_image"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/depicts_label" />
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/depicts_image"
android:layout_width="70dp"
android:layout_height="70dp"
android:paddingRight="@dimen/tiny_gap"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:placeholderImage="@drawable/ic_wikidata_logo_24dp" />
</androidx.constraintlayout.widget.ConstraintLayout>