e-ntfy-android/app/src/main/res/layout/main_fragment_item.xml

40 lines
2.1 KiB
XML
Raw Normal View History

2021-10-25 19:45:56 +02:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2021-10-31 04:17:08 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-10-28 17:45:34 +02:00
android:background="?android:attr/selectableItemBackground"
2021-10-31 04:17:08 +01:00
android:orientation="horizontal" android:clickable="true" android:focusable="true">
<ImageView
android:layout_width="35dp"
2021-11-01 15:56:57 +01:00
android:layout_height="match_parent" app:srcCompat="@drawable/ic_sms_gray_24dp"
android:id="@+id/topic_image" android:layout_marginStart="20dp" android:layout_weight="1"/>
2021-10-31 04:17:08 +01:00
<LinearLayout
android:orientation="vertical"
2021-10-25 19:45:56 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_weight="20">
2021-10-31 04:17:08 +01:00
<TextView
android:text="ntfy.sh/example"
android:layout_width="match_parent"
2021-10-31 20:19:25 +01:00
android:layout_height="wrap_content" android:id="@+id/main_item_text"
android:layout_marginTop="10dp" android:layout_marginStart="12dp"
2021-10-31 04:17:08 +01:00
android:textColor="@color/primaryTextColor"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"/>
<TextView
android:text="Subscribed, 0 notifications"
android:layout_width="match_parent"
2021-10-31 20:19:25 +01:00
android:layout_height="wrap_content" android:id="@+id/main_item_status"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:layout_marginStart="12dp"
android:layout_marginBottom="10dp"/>
2021-10-31 04:17:08 +01:00
</LinearLayout>
<TextView
android:text="yesterday"
android:layout_width="75dp"
android:layout_height="match_parent"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:id="@+id/main_item_date" android:layout_marginEnd="15dp" android:layout_weight="1"
android:layout_marginTop="10dp" android:textAlignment="textEnd"/>
2021-10-31 04:17:08 +01:00
2021-10-25 19:45:56 +02:00
</LinearLayout>