timepicker

Android: TimePicker setIs24HourView not working

跟風遠走 提交于 2019-12-07 02:10:27
问题 I am trying to use the TimePicker in the 24 hour format and I am using setIs24HourView= true, but I am still not getting 24 hour format on the TimePicker. Here is my code in the onCreate of the Activity. timePicker = (TimePicker) findViewById(R.id.timePicker1); timePicker.setIs24HourView(true); I even tried timePicker.setCurrentHour(cal.HOUR_OF_DAY) after setIs24HourView, but I am not able to see the 24 hour format on the TimePicker. <TimePicker android:id="@+id/timePicker1" android:layout

Android - How do I change the textColor in a TimePicker?

倖福魔咒の 提交于 2019-12-07 00:24:44
问题 I'm using a TimePicker into a LinearLayout with backgroundColor = black, however, I can't see the numbers in the TimePicker, and I need the background color set to black in the layout, how can I change the textColor in the TimePicker? I already tried this with no luck: <style name="MyTimePicker" parent="@android:style/Widget.TimePicker"> <item name="android:textColor">#000000</item> </style> <style name="MyHoloTimePicker" parent="@android:style/Widget.Holo.TimePicker"> <item name="android

[备忘]jQuery UI Datepicker的时间选择插件

◇◆丶佛笑我妖孽 提交于 2019-12-06 16:51:35
太遗憾了,jQuery UI官方的日期控件Datepicker中居然没有提供时间(时分秒)的选择,还好网上有人写了针对jQuery UI Datepciker的插件——jQuery Timepicker Addon,它依赖于jQuery UI中的datepicker和slider组件! 它的使用非常简单,官网有非常详细的demo示例! 官网地址: http://trentrichardson.com/examples/timepicker/ 我在项目中使用它的效果图如下: 来源: oschina 链接: https://my.oschina.net/u/115036/blog/37974

Rotating Android device while viewing dialog preference with TimePicker or NumberPicker causes app crash

前提是你 提交于 2019-12-06 09:09:29
问题 I've made a custom DialogPreference which uses two NumberPicker widgets on it to allow a user to select an hour of the day as well as another custom DialogPreference which allows a user to select a time of day using a TimePicker widget. As long as the dialog is not open and I rotate the screen, everything works as desired. However, if the dialog is open and the screen is rotated then the entire app crashes. I've placed break points in the onSaveInstanceState and onRestoreInstanceState methods

How to change TimePicker lines color in Appcompat theme?

不羁岁月 提交于 2019-12-06 08:25:55
问题 How to change TimePicker lines color between choosed number in Appcompat theme? The lines are blue, but i need orange lines. I use TimePickerDialog with ContextThemeWrapper. TimePickerDialog timePicker = new TimePickerDialog( new ContextThemeWrapper(getActivity(), R.style.timePicker), this, hour, minute, DateFormat.is24HourFormat(getActivity())); and style <style name="timePicker"> <item name="android:divider">@drawable/cab_background_top_play</item> </style> but the line have other id maybe.

How to change the TimePicker Position?

与世无争的帅哥 提交于 2019-12-06 06:39:28
I am using the jquery 1.6.4 for timePicker. TimePicker is working fine but i want to change the position of timePicker . Whenever i click in textBox to open timePicker it opens on right side which is outside the mobile app screen . So how can i change its position ? <script type="text/javascript"> $(document).ready(function(){ $('#sample1 input').ptTimeSelect(); }); </script> Please try to change the position of textBox so that timePicker's position will be automatically changed . I tried this on JSFiddle and for me it's opening just below the text box. http://jsfiddle.net/adiioo7/XNgWB/ But

How to restrict the bootstrap timepicker min-time and max-time?

断了今生、忘了曾经 提交于 2019-12-06 06:00:40
问题 I am using bootstrap time picker by using bootstrap-timepicker.js and i want to restrict the min-time and max-time of that timepicker .Can anyone please tell me how can i achieve it. I have used following methods but nothing gonna help me out: $('input[data-role="time"]').timepicker({ showMeridian: true, minTime: { hour: 10, minute: 15 }, minuteStep: 1, showInputs: true, defaultTime: defaulttime }) And $('input[data-role="time"]').timepicker({ showMeridian: true, minTime: '10:15', minuteStep:

Change color of TimePicker (RadialTimePickerView)?

五迷三道 提交于 2019-12-05 19:56:57
How do I change the number/picker-color of the TimePicker/RadialTimePickerView? I can see, that the RadialTimePickerView sets its color internal by using final int numbersTextColor = a.getColor(R.styleable.TimePicker_numbersTextColor, res.getColor(R.color.timepicker_default_text_color_material)); I tried adding a timepicker_default_text_color_material item to the colors.xml, but this didn't work out. The black numbers and the blue picker should be white: More or less, as Saket commented, I need to append my styles.xml: <style name="myTimePickerStyle" parent="@android:style/Widget.Material

TimePicker hour doesn't update after switching to 24h

纵然是瞬间 提交于 2019-12-05 10:42:41
For example when I create this timePicker(below) at 18:00, the timePicker's timeValue will be 06:00. At 19:44->07:44... So it doesn't move to the correct current hour after switching from AM/PM to 24h mode. How can I change that? My goal is that the timePicker shows the current time when it was created. Like it does when I use it in AM/PM mode. TimePicker timePicker = (TimePicker) convertView.findViewById(R.id.time_picker); timePicker.setIs24HourView(true); Sry for the bad formulation, hope you can understand my question. Otherwise just ask. UPDATE: public class ChooseTimeViewDialog extends

How do you get a list picker like the kind shown in the alarm clock?

十年热恋 提交于 2019-12-05 08:05:11
How do you create the big, scrolling list picker, like the kind that is created for datePicker and timePicker which is used on the WP7 default alarm clock? The remaining list pickers don't have quite the same effect. I would be using the list pickers only to choose integer values. Thanks The DatePicker and TimePicker are controls that are provided by the Silverlight Toolkit for WP7 . What they actually do is present the selection in one control in your page, then navigate to a separate page that allows you to actually select a new date/time. In these separate pages they use a collection of