i am using default android spinner for drop down selection from multiple items array ,but i see the ui in Iphone it looks cool then android then is it possible to make like iphone ui picker view in android means a dropdown would be open with bottom to top animation with a "done" button on upper side of picker view and when i choose one and press "done" then that item should be selected as in iphone...
i think android must have this feature bcoz android is more better then Iphone as in cost and newer version of android capture the whole market ,
so pls any one help me..
thanks in advance
Check the following: http://android-devblog.blogspot.com/2010/05/wheel-ui-contol-backgrounds.html
Introduction to the Wheel control
The Wheel control layouts
Scrolling the wheel control
Ideas for the future
Do not forget to check "See Also"
Usually they use Spinner in Android
If you want a wheel thingy like in iPhone use this
Related
I would like to implement radio button selection for my application settings the same way it is implemented in android settings part of the android operating system.
The radio buttons I mean is displayed in images below.
Current selected value for the "Sleep" option is "After 2 Minutes of inactivity"
When User taps on "Sleep", radio buttons list appears as below to make the new selection
Any idea what is this kind of view (control)? or is it custom implemented?
I found out this could be achieved using Dialogs, there is a very nice article about doing this on this blog post
http://blog.ostebaronen.dk/2013/02/using-dialogs-in-mono-for-android.html
I am programming a dictionary which has Instant lookup function. I wanna when I selected text and copy it, a popup is displayed (display this text and meaning of it). Firstly, I wanna display selected text.
Any idea and advice.
You can view this apps: QuickDict
I really like it,
If you are using API level 11 (3.0) or above, then you can use addPrimaryClipChangedListener which is documented click here and there is some example usage click here.
How do we create a drop down menu in android which is not focusable when we select an item from drop down list?
Previously I created a drop-down menu which is combo box. Everytime I selected an item from drop down list, the drop down menu is focusable. It shouldn't. Which is fixed by changing it to Option menu. I got an advice from this thread Combo box not focusable
Now, the problem is, Option menu doesn't work in android. It works perfectly on IOS only.
Note: I am developing using Livecode.
You're not supposed to use menu buttons on mobile devices. It is bad GUI design.
This is an example for Android:
global gCurrentSelectedValue
on mouseUp
put "One,Two,Three,Four,Five,Size,Seve,Eight,Nine,Then" into myOptionList
put 4 into gCurrentSelectedValue // sometimes you need more lines for this
mobilePick myOptionList,gCurrentSelectedValue,"checkmark","cancelDone"
put the result into rslt
if rslt > 0 then
put rslt into gCurrentSelectedValue
// do something with gCurrentSelectedValue
end if
end mouseUp
Spinners are available in LC:
http://forums.runrev.com/phpBB2/viewtopic.php?f=53&t=14543
But they may be overkill for your needs. Have you thought about using a set of grouped buttons? Combined with a "move" command you can add the animation.
Simon
I have tried to duplicate the same custom RatingBar used in the Badoo App
http://s16.postimg.org/7l6dxqsr9/badoo_screens.png
Badoo App to download at:
play.google.com/store/apps/details?id=com.badoo.mobile&hl=en
The RatingBar has 10 stars with number into each one and fits perfectly no matter the size of the screen or in landscape mode
http://s16.postimg.org/4sd6dpset/device_2013_05_12_221153.png
Also, there is a animation on the current selected star (rating) as soon as you touch the Rating bar. The star grows up and turn back to the normal size when pressed. On the middle of the screen a dialog box appears too showing the current selection pressed (disappear a few seconds later after selected the rating).
I was wondering if someone would have similar RatingBar or if someone could help me how to develop that. I searched some samples but not like this particular case.
Thanks in advance.
We will open source some parts of it very soon and I will post here a link to the repository.
[EDIT] You can now browse the source, use it under MIT licence and see an example app here: https://github.com/badoo/StarBar
Thank you for your interest.
This might be a good starting point: http://kozyr.zydako.net/2010/05/23/pretty-ratingbar/
As for the animation, you may implement an OnRatingBarChangeListener to detect which star (or rating) was selected and animate the specific star.
I have to create a small panel like thing with a border.
This should contain a text, an image that describes the text and a button.
On clicking that button I have to do some operations also.
Which widget is suitable for this?
Can anyone suggests any idea?
ImageButton is what I can think of. Try the ApiDemo sample application comes up with android sdk too. Another tool you might need is DroidDraw (Free android UI designer) and hierarchyviewer.bat(inside android sdk tools) can also help you if you want to know how the other developers use for such purpose.
I have assumed that you want to display button with images + Text,
You can do it with Button. There are 2 ways to do it(Button with Image and Text).
By xml, you can set
android:background attribute of
button and the text which you set,
will be appeared above the
background.
By code, You can use
setBackgroundDrawable() , it is
used to set the background of a
button.
and If you want to display panel(By clicking on the handle of that panel, it will comes up with the many items as home screen) , slidingDrawer widgets is the best solution.