IS05 で、Wheel 表示を試す

Android iPhoneライクの Wheel

  http://code.google.com/p/android-wheel/

これを使う時のレイアウトが機種によって崩れないように、
画面サイズの小さい機種での表示を試した。

実験した機種は、au の IS05 Android 2,2,1 である。

  kankan.wheel.widget.adapters.NumericWheelAdapter

を使って2桁の数の Wheel で試した。

f:id:posturan:20160313231324p:plain



このレイアウトは、WheelView を2個並べ、間に TextView で、":"
置いたもの。
TextView は、

  android:textAppearance="?android:attr/textAppearanceLarge"

を指定している。

上の Wheel は、layout_width に、100dp を指定

<kankan.wheel.widget.WheelView android:id="@+id/hour"
                 android:layout_height="wrap_content"
                 android:layout_width="100dp"/>

下の Wheel は、layout_width に、150dp を指定した結果である。

これで、、
Wheel を2つ並べる場合、 layout_width は、だいたい、150dp までは指定できる。