android - Change DateTimepicker selection divider height -
here creating application has date , date picker in single page,so want display 4 view in 1 dialog.i got solucation using linearlayout selection divider height large how can change height of date picker selection divider.here in snap display problem. below xml code.
<textview android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:text="from date time" android:textstyle="bold" /> <datepicker android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:calendarviewshown="false" android:datepickermode="spinner" android:scrollbarsize="@dimen/tab_min_width" /> <timepicker android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:timepickermode="spinner" /> <view android:layout_width="match_parent" android:layout_height="0.2dp" android:layout_margin="10dp" android:background="@android:color/black" /> <textview android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:text="to date time" android:textstyle="bold" /> <datepicker android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:calendarviewshown="false" android:datepickermode="spinner" /> <timepicker android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:timepickermode="spinner" /> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:weightsum="2"> <button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:text="ok" /> <button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:text="cancel" /> </linearlayout> </linearlayout>
don't know other methods probably, created customtimepicker class extends timepicker, , override ondraw method -- or -- change value of variable used it's height , keep rest same?
Comments
Post a Comment