better dialog buttons

This commit is contained in:
Bnyro 2022-06-05 16:33:31 +02:00
parent e7f6706c05
commit f826d6ba23
5 changed files with 61 additions and 45 deletions

View File

@ -1,41 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_name"
android:gravity="center"
android:layout_margin="10dp"
android:gravity="center"
android:text="@string/app_name"
android:textSize="20sp" />
<Spinner
android:id="@+id/playlists_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:layout_margin="8dp" />
android:layout_margin="8dp"
android:padding="8dp" />
<LinearLayout
android:layout_width="match_parent"
<Button
android:id="@+id/addToPlaylist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center">
<Button
android:id="@+id/addToPlaylist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/addToPlaylist"
android:textColor="@color/white"
android:padding="8dp"
android:layout_margin="8dp" />
</LinearLayout>
android:layout_gravity="right"
android:layout_marginRight="16dp"
android:layout_marginBottom="8dp"
android:backgroundTint="@android:color/transparent"
android:padding="8dp"
android:text="@string/addToPlaylist"
android:textColor="?attr/colorPrimary"
android:textSize="14sp" />
</LinearLayout>

View File

@ -22,9 +22,9 @@
app:hintEnabled="false"
android:layout_marginTop="16dp"
android:layout_marginLeft="7dp"
android:layout_marginRight="7dp"
android:layout_marginBottom="4dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
app:boxCornerRadiusBottomStart="15dp"
app:boxCornerRadiusBottomEnd="15dp"
@ -45,25 +45,32 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center">
android:gravity="right">
<Button
android:id="@+id/cancel_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/cancel"
android:textColor="@color/white"
android:layout_gravity="right"
android:backgroundTint="@android:color/transparent"
android:textColor="?attr/colorPrimary"
android:textSize="14sp"
android:padding="8dp"
android:layout_margin="8dp" />
android:layout_marginBottom="8dp" />
<Button
android:id="@+id/create_new_playlist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/createPlaylist"
android:textColor="@color/white"
android:layout_gravity="right"
android:backgroundTint="@android:color/transparent"
android:textColor="?attr/colorPrimary"
android:textSize="14sp"
android:padding="8dp"
android:layout_margin="8dp" />
android:layout_marginRight="16dp"
android:layout_marginBottom="8dp" />
</LinearLayout>

View File

@ -51,8 +51,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/download"
android:textColor="@color/white"
android:layout_gravity="right"
android:backgroundTint="@android:color/transparent"
android:textColor="?attr/colorPrimary"
android:textSize="14sp"
android:padding="8dp"
android:layout_margin="8dp"
android:layout_gravity="center" />
android:layout_marginRight="16dp"
android:layout_marginBottom="8dp" />
</LinearLayout>

View File

@ -21,8 +21,8 @@
android:layout_height="wrap_content"
app:hintEnabled="false"
android:layout_marginTop="16dp"
android:layout_marginLeft="7dp"
android:layout_marginRight="7dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="4dp"
app:boxCornerRadiusBottomStart="15dp"
@ -45,9 +45,9 @@
android:layout_height="wrap_content"
app:hintEnabled="false"
android:layout_marginTop="16dp"
android:layout_marginLeft="7dp"
android:layout_marginRight="7dp"
android:layout_marginBottom="4dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
app:boxCornerRadiusBottomStart="15dp"
app:boxCornerRadiusBottomEnd="15dp"
@ -70,25 +70,32 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center">
android:gravity="right">
<Button
android:id="@+id/register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/register"
android:textColor="@color/white"
android:layout_gravity="right"
android:backgroundTint="@android:color/transparent"
android:textColor="?attr/colorPrimary"
android:textSize="14sp"
android:padding="8dp"
android:layout_margin="8dp" />
android:layout_marginBottom="8dp" />
<Button
android:id="@+id/login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login"
android:textColor="@color/white"
android:layout_gravity="right"
android:backgroundTint="@android:color/transparent"
android:textColor="?attr/colorPrimary"
android:textSize="14sp"
android:padding="8dp"
android:layout_margin="8dp" />
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp" />
</LinearLayout>

View File

@ -26,9 +26,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/logout"
android:textColor="@color/white"
android:layout_gravity="right"
android:backgroundTint="@android:color/transparent"
android:textColor="?attr/colorPrimary"
android:textSize="14sp"
android:padding="8dp"
android:layout_margin="8dp"
android:layout_gravity="center" />
android:layout_marginRight="16dp"
android:layout_marginBottom="8dp" />
</LinearLayout>