Dimensions fine-tuning

This adjusts the dimensions of the knobs and scroll strip to be a little
better on both phones and tablets. The knobs look a little small, but
they'll be redesigned soon to work better in smaller sizes.
master
Raph Levien 11 years ago
parent c1604c3662
commit 117f0557b0
  1. 11
      android/res/layout/piano2.xml
  2. 5
      android/res/values-sw600dp/dimens.xml
  3. 5
      android/res/values/dimens.xml

@ -11,17 +11,14 @@
<TableRow> <TableRow>
<TextView <TextView
android:text="@string/cutoff" android:text="@string/cutoff"
android:width="30sp"
android:id="@+id/cutoffLabel" android:id="@+id/cutoffLabel"
android:gravity="center_horizontal" /> android:gravity="center_horizontal" />
<TextView <TextView
android:text="@string/resonance" android:text="@string/resonance"
android:width="30sp"
android:id="@+id/resonanceLabel" android:id="@+id/resonanceLabel"
android:gravity="center_horizontal" /> android:gravity="center_horizontal" />
<TextView <TextView
android:text="@string/overdrive" android:text="@string/overdrive"
android:width="30sp"
android:id="@+id/overdriveLabel" android:id="@+id/overdriveLabel"
android:gravity="center_horizontal" /> android:gravity="center_horizontal" />
<TextView <TextView
@ -40,18 +37,24 @@
app:value="1.0" app:value="1.0"
app:min="0" app:min="0"
app:max="1" app:max="1"
android:layout_width="@dimen/knobsize"
android:layout_height="@dimen/knobsize"
android:layout_margin="2dp" /> android:layout_margin="2dp" />
<com.levien.synthesizer.android.widgets.knob.KnobView <com.levien.synthesizer.android.widgets.knob.KnobView
android:id="@+id/resonanceKnob" android:id="@+id/resonanceKnob"
app:value="0.0" app:value="0.0"
app:min="0" app:min="0"
app:max="1" app:max="1"
android:layout_width="@dimen/knobsize"
android:layout_height="@dimen/knobsize"
android:layout_margin="2dp" /> android:layout_margin="2dp" />
<com.levien.synthesizer.android.widgets.knob.KnobView <com.levien.synthesizer.android.widgets.knob.KnobView
android:id="@+id/overdriveKnob" android:id="@+id/overdriveKnob"
app:value="0.0" app:value="0.0"
app:min="0" app:min="0"
app:max="1" app:max="1"
android:layout_width="@dimen/knobsize"
android:layout_height="@dimen/knobsize"
android:layout_margin="2dp" /> android:layout_margin="2dp" />
<LinearLayout <LinearLayout
android:orientation="vertical" android:orientation="vertical"
@ -89,7 +92,7 @@
<com.levien.synthesizer.android.widgets.keyboard.ScrollStripView <com.levien.synthesizer.android.widgets.keyboard.ScrollStripView
android:id="@+id/scrollstrip" android:id="@+id/scrollstrip"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="30dp" android:layout_height="@dimen/scrollstripheight"
android:layout_weight="1" android:layout_weight="1"
android:layout_span="6" android:layout_span="6"
/> />

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="knobsize">120dp</dimen>
<dimen name="scrollstripheight">50dp</dimen>
</resources>

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="knobsize">80dp</dimen>
<dimen name="scrollstripheight">30dp</dimen>
</resources>
Loading…
Cancel
Save