mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
* notification: replaced ReadMoreTextView by TextView * removed com.borjabravo:readmoretextview:2.1.0 package * Update build.gradle Re-add implementation 'com.borjabravo:readmoretextview:2.1.0' to prevent travis fail
53 lines
No EOL
2 KiB
XML
53 lines
No EOL
2 KiB
XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:foreground="?selectableItemBackground"
|
|
android:minHeight="72dp">
|
|
|
|
<android.support.v7.widget.AppCompatImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:background="@android:color/white"
|
|
android:contentDescription="@string/no_image_found"
|
|
android:scaleType="centerCrop"
|
|
app:srcCompat="@drawable/ic_message_black_24dp"
|
|
app:tint="@color/primaryDarkColor"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
|
tools:text="@string/placeholder_place_distance"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignTop="@id/time"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_toEndOf="@id/icon"
|
|
android:layout_toLeftOf="@id/time"
|
|
android:layout_toRightOf="@id/icon"
|
|
android:layout_toStartOf="@id/time"
|
|
android:ellipsize="end"
|
|
android:layout_alignParentTop="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
|
tools:text="@string/placeholder_place_name"
|
|
android:padding="12dp"
|
|
/>
|
|
</RelativeLayout> |