mastodon-app-ufficiale-android/mastodon/src/main/res/layout/sheet_alt_text.xml

64 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<org.joinmastodon.android.ui.views.CustomScrollView 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="@drawable/bg_bottom_sheet"
android:outlineProvider="background"
android:elevation="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="16dp">
<View
android:id="@+id/handle"
android:layout_width="match_parent"
android:layout_height="36dp"
android:background="@drawable/bg_bottom_sheet_handle"/>
<LinearLayout
android:id="@+id/alt_text_title"
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:layout_marginHorizontal="16dp">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_marginEnd="8dp"
android:singleLine="true"
android:ellipsize="end"
android:textSize="22dp"
android:textColor="?colorM3OnSurfaceVariant"
android:gravity="center_vertical|start"
android:text="@string/alt_text"/>
<ImageButton
android:id="@+id/alt_text_help"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="?android:actionBarItemBackground"
android:tint="?colorM3OnSurfaceVariant"
android:contentDescription="@string/help"
android:src="@drawable/ic_help_24px"/>
</LinearLayout>
<TextView
android:id="@+id/alt_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:textAppearance="@style/m3_body_large"
android:textColor="?colorM3OnSurface"
android:textIsSelectable="true"
tools:text="A cute black cat"/>
</LinearLayout>
</org.joinmastodon.android.ui.views.CustomScrollView>