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
Related
I did search the internet to find an answer to my questions but there are no websites that did help me, so I hope someone can! Thank you in advance and have a nice day :-)
So these days I've been busy to get more into the Android Design guidelines and to learn more about it and how to implement it in my future applications. This is the main website I use to see what the guidelines are: http://developer.android.com/design/index.html. Great website but there are a few small things I just can't find in the dev guide or somewhere else. I just don't know how to implement some (simple) UI elements.
Can someone provide me code snippets of the following questions? (I want to know how to do it as simple as possible, how Google ment it!) It can help other (starting) developers too!
My main question is, are there special elements to achieve these things? As they are the key element in Android 4.0 it should have this things as some standard right?
1) Android 4.0 is using titles with dividers a lot in there new theme and it's looking great. But I can't find how to do implement this element simple like it should. What I want to know is how to make this blue title text with the grey looking divider underneath it look at this picture:
2) How to make section dividers in general? Like this image:
3) How to make a list with section dividers and give a list-item a 2-line explanation under it's name like this:
I did search the internet to find an answer to my questions but there are no websites that did help me, so I hope someone can! Thank you in advance and have a nice day :-)
In most cases how you are going to have to do it is create a custom layout. I tried recreating the look of the people application this way. for the most part the look you are going for is similar to the PreferenceActivityview. That gives you the look of the last image and probably how it was done in the People application with some extra programming. I just found it easier to create my own layout though instead of trying to mess around with that.
To my knowledge there is nothing in the api to create what you are looking to do easily and custom layout are going to be the way to go.
the custom dialog layout like you show in the beginning is very simple to do so if you dont know how to do manipulate layouts I would start there. look up the android color swatches to get the color of that blue
Edit
another thing you could do is look through the People source code and see how they did it but it will probably be more of a pain than what its worth when you can just do a layout
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
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
I'm writing an application that should both have the ability to place widgets on the home screen, and to show these widgets in the application itself. I figure that the best way to do this is through the use of an AppWidgetHost for the application part.
I've been looking around, but I cannot find any good examples on how to write AppWidgetHosts. Have any of you done this, and are willing to share? Or do you know of any tutorials that I've missed?
Not exactly a tutorial but here is an older forum post.
The code is part of the mylock project, which you also might find useful if you dig.