mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Android: Add Snackbar UI component
This commit is contained in:
27
platform/android/java/lib/res/layout/snackbar.xml
Normal file
27
platform/android/java/lib/res/layout/snackbar.xml
Normal 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>
|
||||
@@ -5,4 +5,5 @@
|
||||
<dimen name="button_padding">10dp</dimen>
|
||||
<dimen name="dialog_padding_horizontal">16dp</dimen>
|
||||
<dimen name="dialog_padding_vertical">8dp</dimen>
|
||||
<dimen name="snackbar_bottom_margin">10dp</dimen>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user