Appium Android: how to swipe through the values in time picker? - android

I am trying to set time in an Android time picker which is of 12 hours format.
I am unable to select AM/PM by clicking or by swiping.
sendKeys() works only for hours and minutes fields and not for AM/PM.
Any ideas to solve this?
Thanks in advance

Is any error message coming ? Which strategy do you use to find AM/PM Element ? Sometimes Appium fails to locate element so try to change your strategy to find element also try Tapping that element.

Related

Android DatePicker calendar's last row is cropped

I want to display a DatePicker, that contains only a calendar, but i get this kind of bug:
Screen with error
I found some people had this kind of problem too, but have somebody found a solution for this?
It occurs on Api > 21, most of resolutions.
Found out that this can be easily reproduced after we set the Setting->Display->Display Size to Large. And then go to a month that needs to show 6 rows. The Google Calendar app have the same problem.
So it should be a bug in the DatePicker. The only easy solution is to change the datepicker to the spinner style.

how to get date picker and time picker display on main screen

I am new to Android Studio programming and I have 0 experience. I need some help and any help will be very much appreciated!
I'm trying to make the datepicker and timepicker show on the main screen textview but I have absolutely no idea how to do it. I did check on the questions section but it didn't help.
Basically now I only have the date and time picker on the main screen with the textview below.
How can I go about doing it? I'm sorry if it sounds to newbie but I really want to do it as I want to help my friend and at the same time learn.
please help. Thank bunches!
screen capture
You need to use WheelView, please check below refrences.
android-aresanal
Picker view
Wheel View
Wheel View
Do you mean actually you have date and time picker, and a textView. Your problem is do not know how to add Listener which can set data to textView after choose date and time.

AchartEngine - Remove unwanted dates

I have added the following 4 dates in my Chart View, in TimeSeries.
2-Jan-2013
3-Jan-2013
4-Jan-2013
7-Jan-2013
When I see the result in the emulator, the graph shows 5th and 6th Jan also. How do I remove the dates which I have not included?
I am preparing a chart to show traffic during working days. So, I want to add the next Monday immediately after this Friday. Please suggest any solution.
You can fix the behavior by calling:
renderer.setXRoundedLabels(false);

Time picker in android

HI Every One. I am new to android Developmemt . Actually my project requires to show Timepicker but i doesnot want to show AM or PM option and also not in the header of the picker, There is any way to do this ?
Please reply ASAP
You can remove the AM/PM selector using the setIs24HourView(true) method of TimePicker. I've not tried it myself, but I think this should also remove the AM/PM caption from the header.
Hope that helps, bye

Android: imageview and datepicker, Set image based on datepicker output

i have been developing iphone apps for a while now. I just started on android and have about half of my app done.
My app calls the native datepicker which the user selects the date then on the selection of the date a particular image is show in the format 2010-3-24, same as android output.
I have used the date picker tutorial to get the datepicker working and displaying the selected text in textview.
What i need is to display the particular image that corresponds to the selected date. The images are local to the app. I have looked for tutorials that would possibly help me out but so far no such luck. It is a very simple problem, i am just new to the platform.
So you would take the Date that comes back from the DatePicker and do some sort of conditional statement to determine what image to display in an ImageView.
What exactly are you having trouble with? Are you having trouble with the conditional statement that would determine the image to use? If so you need to give us more information on how you want that to work.
Are you having trouble getting an image to display in an ImageView? If so show us what code you have tried and we can help you with that.

Categories

Resources