I'm looking to create some widgets for Honeycomb, and I've successfully created a StackView widget for my application, but I'd like to add some others of the new widgets in Honeycomb.
I'm especially looking for documentation on the widget to the right in the above image, but so far haven't been able to find anything on the Android developer site nor by searching on Google. Any help would be much appreciated!
That's a GridView. You can probably just replace StackView with GridView in your layout and it should work.
There is a documentation on honeycomb,
http://developer.android.com/sdk/android-3.0.html
you can also find all api levels here,
http://developer.android.com/guide/appendix/api-levels.html
Related
I am trying out these new UIs from Android L, did not have much issue in implementing the static views but I could not find the relevant documentations for these two views, such as how to call methods to add or remove items from RecyclerView(using RecyclerView.Adapter or LinearLayoutManager), how to configure behaviours for CardView.
I assume the documentation should be here at the reference page for Android API 20 but I could not find any.
Thanks for everyone.
Now CardView and RecyclerView are documented here, after official release of Android 5.0 Lollipop.
At the present time, RecyclerView and CardView are part of the "L" Developer Preview, whose documentation is not integrated into the main JavaDocs.
That being said, the documentation is just JavaDocs, and so you will also need to use your favorite search engine to turn up the blog posts and the like that try to fill in the documentation gaps.
What CommonsWare said, with the addition of a popular blog post going into the concepts, along with code examples:
http://www.grokkingandroid.com/first-glance-androids-recyclerview/
This is probably what you're looking for:
http://pbz.kt.agh.edu.pl/~krusek/l-developer-preview/reference/android/support/v7/widget/RecyclerView.html
It's obviously not the official one (Google had one online a few days ago, but they removed it for some reason), but this is pretty accurate. The links there aren't broken, and it's pretty reliable.
Can't seem to find a CardView API document anywhere.
List sections are used quite a lot in Android through out Google's own applications and in some of the framework's features as well, i.e. preferences.
This made me wonder if there is an offical section View available in Android? If so, it seems to be hidden.
Here's a picture from the Android Design site that shows what I'm talking about:
This made me wonder if there is an offical section View available in Android?
No, sorry. There are plenty of libraries for this, and you can probably grab some code out of AOSP for it as well, but there is nothing in the SDK for it. Just because the design folk think it is a good idea does not mean that we actually have code in the SDK to leverage such ideas.
Is there a list of all methods marked #RemotableViewMethod?
I am looking around but I did not find anything.
I need to manage an android widget remoteView and could be useful to know all the methods allowed.
A bit late in replying but I had a lot of trouble finding these too so I thought it's worth sharing for others:
GrepCode -> Search usages of #RemoteViewMethod
I am new in android, I dont have that much of experience. I want to know making a custom component. I followed http://developer.android.com/guide/topics/ui/custom-components.html. But many things are not getting cleared. Recently I visited a link http://code.google.com/p/android-wheel/source/browse/trunk/wheel/src/kankan/wheel/widget/WheelView.java?r=4. There they have made custom component.
Please suggest me a well documented tutorial where I will get a clear picture about making custom component where onMeasure(int,int), onDraw(Canvas) all methods will be used and all the things will be documented well, why we are using this?
Please suggest me such a link or tutorial. I really want to be confident in it.
The question is somewhat unclear. What kind of custom components do you want to make. Just regular views? Viewgroups or perhaps custom adapters? You will probably find plenty of good material if you search more precise.
But to start you of with some:
http://www.anddev.org/creating_custom_views_-_the_togglebutton-t310.html
http://www.anddev.org/advanced-tutorials-f21/custom-views-t1891.html
Since I am a new user I can't post more links.
This is a UI element that I have seen a lot lately (in the NY Times app and Grooveshark App) and I want to learn how to implement it but I can't find a guide. Does anyone know of a tutorial or guide for implementing such a thing or are these custom implementations?
if you lack the possibility to make a slidingdrawer that can go from top to bottem or left to right i can recommand http://blog.sephiroth.it/2011/03/29/widget-slidingdrawer-top-to-bottom/
Check out http://code.google.com/p/android-misc-widgets/. Get the sourcecode with samples. Might maybe be what you are looking for. (Though it is only down->up afaik)
I discovered that there is a UI element in android called SlidingDrawer that does just this. http://developer.android.com/reference/android/widget/SlidingDrawer.html