xesite_android/app/src/main/res/layout/new_post_widget.xml

68 lines
2.6 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="match_parent"
android:background="@color/gruvbox_dark_bg"
android:focusable="auto"
android:padding="@dimen/widget_margin"
android:theme="@style/ThemeOverlay.Xesite_android.AppWidgetContainer">
<LinearLayout
android:id="@+id/widget_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:ignore="UselessParent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="174dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView"
android:layout_width="92dp"
android:layout_height="75dp"
android:layout_marginStart="0dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="0dp"
android:contentDescription="Logo"
android:src="@drawable/splash" />
<TextView
android:id="@+id/article_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="0dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="0dp"
android:background="@color/gruvbox_dark_bg"
android:contentDescription="@string/appwidget_title"
android:text="@string/appwidget_title"
android:textColor="@color/gruvbox_dark_fg"
android:textSize="24sp"
android:textStyle="bold|italic" />
</LinearLayout>
<TextView
android:id="@+id/article_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="@color/gruvbox_dark_bg"
android:contentDescription="@string/appwidget_body_preview"
android:ellipsize="end"
android:scrollHorizontally="true"
android:text="@string/appwidget_body_preview"
android:textColor="@color/gruvbox_dark_fg"
android:textSize="16sp" />
</LinearLayout>
</RelativeLayout>