nextcloud-notes-android/app/src/main/res/layout/widget_entry.xml

38 lines
1.7 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2019-10-04 20:25:36 +03:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/widget_note_list_entry"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal"
android:padding="@dimen/widget_note_list_padding">
<ImageView
android:id="@+id/widget_entry_fav_icon"
android:layout_width="@dimen/widget_note_list_fav_icon_width"
android:layout_height="@dimen/widget_note_list_fav_icon_height"
android:layout_gravity="center_vertical"
android:foregroundGravity="center_vertical"
android:paddingStart="@dimen/widget_note_list_inner_padding"
android:paddingLeft="@dimen/widget_note_list_inner_padding"
2018-04-09 19:53:43 +03:00
android:paddingEnd="@dimen/widget_note_list_outer_padding"
android:paddingRight="@dimen/widget_note_list_outer_padding"
2019-10-04 20:25:36 +03:00
app:srcCompat="@drawable/ic_star_yellow_24dp"
android:contentDescription="@string/widget_entry_fav_contentDescription" />
2018-04-09 19:53:43 +03:00
<TextView
android:id="@+id/widget_entry_content_tv"
android:layout_width="0dp"
android:layout_height="match_parent"
android:paddingStart="@dimen/widget_note_list_inner_padding"
android:paddingLeft="@dimen/widget_note_list_inner_padding"
android:paddingEnd="@dimen/widget_note_list_outer_padding"
android:paddingRight="@dimen/widget_note_list_outer_padding"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:textColor="@color/widget_fg_default"
android:ellipsize="end"
android:lines="1" />
2018-04-09 19:53:43 +03:00
</LinearLayout>