FairEmail/app/src/main/res/layout/widget.xml

57 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:colorBackground"
android:theme="@style/Theme.AppCompat.DayNight">
<LinearLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="3dp">
<ImageView
android:id="@+id/ivMessage"
android:layout_width="42dp"
android:layout_height="0dp"
android:layout_gravity="center_horizontal"
android:layout_weight="2"
android:contentDescription="@string/title_legend_count"
android:src="@drawable/baseline_mail_24"
app:tint="@color/colorWidgetForeground" />
<TextView
android:id="@+id/tvCount"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_gravity="center_horizontal"
android:layout_weight="2"
android:gravity="center_vertical"
android:includeFontPadding="false"
android:lines="1"
android:text="\?"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textColor="@color/colorWidgetForeground"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvAccount"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:ellipsize="end"
android:gravity="center_vertical"
android:includeFontPadding="false"
android:lines="1"
android:text="account"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textSize="12sp"
android:visibility="gone" />
</LinearLayout>
</FrameLayout>