1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Android: Add Snackbar UI component

This commit is contained in:
Anish Mishra
2025-02-08 19:02:56 +05:30
parent 36d90c73a8
commit b89957efce
3 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/dialog_holo_dark_frame"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/snackbar_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text=""
android:textColor="@android:color/white"
android:textSize="14sp"
android:padding="8dp"/>
<Button
android:id="@+id/snackbar_action"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#00FFFFFF"
android:text="Action"
android:textColor="#61B7FC"
android:paddingHorizontal="8dp"/>
</LinearLayout>