commit 316889cf5ad2c5fb6b87091e7408ca935fc6d03f
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Mon Apr 13 17:03:51 2020 +0100

    Improve the Effects Dialog so it looks good on 'thin' screens ( 720x1440 )

diff --git a/src/main/java/org/distorted/dialogs/RubikDialogEffects.java b/src/main/java/org/distorted/dialogs/RubikDialogEffects.java
index 361d28e7..3143a402 100644
--- a/src/main/java/org/distorted/dialogs/RubikDialogEffects.java
+++ b/src/main/java/org/distorted/dialogs/RubikDialogEffects.java
@@ -107,7 +107,7 @@ public class RubikDialogEffects extends AppCompatDialogFragment implements SeekB
     ///// STUFF INSIDE INNER LAYOUT1 /////////////////////////////////////////////////////
 
     int text1Padding = (int)(scale*5 + 0.5f);
-    LinearLayout.LayoutParams text1LayoutParams = new LinearLayout.LayoutParams(0,layoutHeight,0.2f);
+    LinearLayout.LayoutParams text1LayoutParams = new LinearLayout.LayoutParams(0,layoutHeight,0.25f);
 
     TextView text1View = new TextView(act);
     text1View.setText(R.string.duration);
@@ -118,17 +118,17 @@ public class RubikDialogEffects extends AppCompatDialogFragment implements SeekB
     innerLayout1.addView(text1View);
     //////////////////////////////////////////////////////////////////
     int text2Padding = (int)(scale*5 + 0.5f);
-    LinearLayout.LayoutParams text2LayoutParams = new LinearLayout.LayoutParams(0,layoutHeight,0.2f);
+    LinearLayout.LayoutParams text2LayoutParams = new LinearLayout.LayoutParams(0,layoutHeight,0.25f);
 
     mDurationText[index] = new TextView(act);
     mDurationText[index].setLayoutParams(text2LayoutParams);
-    mDurationText[index].setGravity(Gravity.END|Gravity.CENTER);
+    mDurationText[index].setGravity(Gravity.START|Gravity.CENTER);
     mDurationText[index].setPadding(text2Padding,0,text2Padding,0);
     mDurationText[index].setTextAppearance(act,android.R.style.TextAppearance_Small);
     innerLayout1.addView(mDurationText[index]);
     //////////////////////////////////////////////////////////////////
     int seekPadding = (int)(scale*10 + 0.5f);
-    LinearLayout.LayoutParams seekLayoutParams = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.MATCH_PARENT,0.6f);
+    LinearLayout.LayoutParams seekLayoutParams = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.MATCH_PARENT,0.5f);
 
     SeekBar seekBar = new SeekBar(act);
     seekBar.setLayoutParams(seekLayoutParams);
@@ -153,7 +153,7 @@ public class RubikDialogEffects extends AppCompatDialogFragment implements SeekB
     ///// STUFF INSIDE INNER LAYOUT2 /////////////////////////////////////////////////////
 
     int text3Padding = (int)(scale*5 + 0.5f);
-    LinearLayout.LayoutParams text3LayoutParams = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.MATCH_PARENT,0.4f);
+    LinearLayout.LayoutParams text3LayoutParams = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.MATCH_PARENT,0.25f);
 
     TextView text3View = new TextView(act);
     text3View.setText(R.string.type);
@@ -165,7 +165,7 @@ public class RubikDialogEffects extends AppCompatDialogFragment implements SeekB
     //////////////////////////////////////////////////////////////////
     int spinnerPadding = (int)(scale*10 + 0.5f);
     int spinnerMargin  = (int)(scale* 3 + 0.5f);
-    LinearLayout.LayoutParams spinnerLayoutParams = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.MATCH_PARENT,0.6f);
+    LinearLayout.LayoutParams spinnerLayoutParams = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.MATCH_PARENT,0.75f);
     spinnerLayoutParams.topMargin    =   spinnerMargin;
     spinnerLayoutParams.bottomMargin =   spinnerMargin;
     spinnerLayoutParams.leftMargin   =   spinnerMargin;
@@ -175,7 +175,7 @@ public class RubikDialogEffects extends AppCompatDialogFragment implements SeekB
     spinner.setLayoutParams(spinnerLayoutParams);
     spinner.setPadding(spinnerPadding,0,spinnerPadding,0);
     spinner.setBackgroundResource(R.drawable.spinner);
-    spinner.setTextAlignment(View.TEXT_ALIGNMENT_CENTER);
+    spinner.setTextAlignment(View.TEXT_ALIGNMENT_TEXT_START);
     spinner.setId(index+BaseEffect.Type.LENGTH);
     innerLayout2.addView(spinner);
 
@@ -240,7 +240,7 @@ public class RubikDialogEffects extends AppCompatDialogFragment implements SeekB
         }
       });
 
-    final View view = inflater.inflate(R.layout.dialog_settings, null);
+    final View view = inflater.inflate(R.layout.dialog_effects, null);
     builder.setView(view);
 
     LinearLayout linearLayout = view.findViewById(R.id.settingsLayout);
diff --git a/src/main/res/layout/dialog_effects.xml b/src/main/res/layout/dialog_effects.xml
new file mode 100644
index 00000000..05c64595
--- /dev/null
+++ b/src/main/res/layout/dialog_effects.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/settingsScroll"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <LinearLayout
+        android:id="@+id/settingsLayout"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="vertical" >
+    </LinearLayout>
+
+</ScrollView>
\ No newline at end of file
diff --git a/src/main/res/layout/dialog_settings.xml b/src/main/res/layout/dialog_settings.xml
deleted file mode 100644
index 05c64595..00000000
--- a/src/main/res/layout/dialog_settings.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
-    android:id="@+id/settingsScroll"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent">
-
-    <LinearLayout
-        android:id="@+id/settingsLayout"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:orientation="vertical" >
-    </LinearLayout>
-
-</ScrollView>
\ No newline at end of file
