I'm developing an app that require the selection of one element (out of three) from the user.
Right now I've tried to developed a Spinner, and then a RadioGroup, they were both working but I find them not really catching.
The spinner is too simple, but easy to see. In the other hand the RadioGroup is more fancy (with some background customization), but not yet nice as I would.
I would like to implement something like a ScrollView, but with that nice "bumping" effect, the selection in the middle and the shadow on top and bottom.
A sample image:
The Libra app has this kind View for the adding of your weight:
Is the Scroller what I'm looking for? Any example or tutorial?
Thanks!
I think AndroidWheel is what you are looking for
There is no default View would do what you're asking for. Gallery does something similar but is deprecated.
Scroller isn't a View but a utility class to help View's implement Scrolling.
There are of course, libraries available to help you.
Related
I would like to develop an application, which has a part, when I have to print a long text on the screen. My question is: What layout or view or ? are you recommend for Me, if I want to make paging effect? Some text could reserve more pages, and I would like to scroll between these pages with an effect like e-book readers does it. What shall I prefer? Webview? TextView with modifications? Canvas? Or What?
Please give me tips. (I just need some direction to where shall I start now)
Thanks in advance!
I think you're refering to the ViewPager :
http://developer.android.com/training/animation/screen-slide.html
If so, I recommend you to follow this training and come back on StackOverFlow if you have a problem, with some code, or something you've tried and hasn't worked.
While going through a IOS app in my company, I saw the buttons set in a horizontal scroll view in a animated manner which looked really good. When asked the IOS developers they said it is a pre built in function available in xcode. I want to know whether it can be achieved in Android.
Details regarding the scroll view.
There are buttons when scrolled over revolves around. To be more precise it moves in the anti-clockwise direction but doesn't disappear from view.
Thanks in advance for the help.
May be this is what you want or it may help you
http://www.codeproject.com/KB/android/androcarousel.aspx
If my understanding is correct about your question, We have HorizontalScrollView to achieve that in android. You have to do your own animation while scroll. There is no in build animations while scrolling.
Please go through the following link.
Is possible to do a vertical scroller animation in Android without using javascript? Anybody knows a tutorial o a web page with a helpful code? thanks
I'm not sure of what you mean by vertical animation but I think this tutorial can help you.
Animations of views are based on Interpolators that you can set, and one of them is the LinearInterpolator which is detailed here.
EDIT, further to the comments below:
This is something you can do with the scrolling and animation features of the View class, as described here (ctrl-f "Scrolling" and "Animation" in that page).
Should the API level you are using be too low, this is also something you can do with a Thread that modified the position of the TextView embedded in your layout or that uses the scrollXX() functions. This is also described in the page linked above.
Have you looked at the viewflipper control.
I've tried this in the past and it works well. You can also use ViewAnimator class
UPDATE
The google documentation is a bit hard to chew through. You may wish to try this simple tutorial first.
I am currently working on an Android app, I have completed all the 'hard stuff', such as getting my database working, and so on. Now I need to make the UI look decent.
I would like to make something that has a 'frame' layout that is clickable. You would click on a 'frame' to find out more information, a bit like the Amazon app.
If anyone has any ideas, tutorials or good links, I would be very grateful.
Thanks in advance.
Take a look at Gallery. It's built in to Android and does what I think you're looking for (at least, it describes the Amazon app's UI; since FrameLayout has a very explicit meaning in Android that is not at all what you're talking about, I ignored that part).
EDIT: A screenshot would have been helpful but I think you're actually talking about a simple list-like view.
Oh. That's either a ListView, or more likely just a vertical LinearLayout inside a ScrollView. I can tell you what I'd do: Each item in the LinearLayout would have a background set, with a width of match_parent and a height of wrap_content, using a 9patch with the right-pointing arrow inside it. I'd also define an identical but blue-highlighted version of the image for the pressed state and use a state drawable XML to let it know which to use. Then I'd just bind an onClick listener for each item I wanted to fire off a click action on.
I'm trying to achieve a custom controller containing of various buttons in different shapes. I'm wondering how I can achieve this with Android.
The result should look similar like this, where every color is a different button.
I suppose I have to subclass View so please don't write that as an answer ;-) Please give some methodical steps what's needs to be implemented, like drawing, sensing touches, etc or maybe point me to some examples (if exist).
Thanks
if you intend to draw this dynamically you would have to extend View and override onDraw, you can implement onTouchListeners, etc to detect when and where people are touching it.
I found this document explaining everything in detail and having links pointing to related topics.