how to create JSpinner alike input field? - android

I'm beginner in android,
Please help me to create the JSpinner like input field.

I'm not sure exactly what jspinner looks like but it seems like you're looking for a NumberPicker . You can find a tutorial on usage here.
If that's not what you're looking for you can also search for custom spinners on GitHub ,the android open-source communities has a lot of libraries which will help you achieve what you want.

Related

How to Implement a Word Cloud on a layout in Android?

I found Tag-Cloud but I think it is not yet ready. Does anyone have any word cloud generator libraries available that allows you to customize it's design?
I have found this and it seems usable:
https://github.com/sschwieb/Cloudio
http://wiki.eclipse.org/Zest/Cloudio
https://code.google.com/p/memeplex/source/browse/trunk/Android/src/kr/ac/yonsei/memeplex/view/TagCloudLayout.java?r=31
Though it might need to be changed or edited a little. I hope somebody can help me. I will be offering bounties in the next few hours
If you can offer any algorithms I will gladly study it as well.
Thanks in advance!
Depending on what your actual requirements are, you could use a really nice and customisable javascript word cloud written in D3 like https://github.com/jasondavies/d3-cloud and then embed it in a WebView in your Android app. There is an example on how to do that at https://github.com/mitchwongho/D3Android
Here is a simple example I made demonstrating this https://github.com/rbarbantan/android-word-cloud

Android user interface elements usage

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

Android Source Codes, Custom Controls, Open Source Libraries

As I was googling, I found lot of codes and libraries. But all of them
are on different sites and could not find any managed site.
like for iPhone : http://cocoacontrols.com/
Is there any such site where I can find codes for Custom Controls..
I know some of top favourite like github.com, anddev.org and Im following too.
Please reply any such site that you found useful.
Thanks
hie vishal, I don't think there is any specific site wherein you can find custom coding source codes. But yes the top favorite list that you have specified indeed have lot of in it.
Secondly, apart from those there are many other sites like
http://blog.pocketjourney.com/2008/03/15/tutorial-1-transparent-panel-linear-layout-on-mapview-google-map/
http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/
and many more according to your requirements. You can learn and take their references for your requirement.
There is a lot more on the developer site for styles and themes which can definately make use off.
Hope this is what you were looking for.

graphical shape 3D in android

I want to create a graphical human shape in android. I want to result to look something like this:
Well, maybe a little bit different, but I haven't found a better picture.Anyway, the question:
Is there possible to create something like?Is there any source code or some classes to help you design this?
I don't want to create this by myself, starting from zero.I want to reuse code.
And also tutorials are more than welcome.
Thank you in advance:)
Try to look at this question (it contains some useful resources (tutorials) on graphics for android:
Tutorials and libraries for OpenGL-ES games on Android
Probably also that page could help you:
http://developer.android.com/guide/topics/graphics/opengl.html

How to implement tree (touch graph) in android?

Please have a look at example - http://www.youtube.com/watch?v=zu2uVo3sxCg&feature=player_embedded.
Is there any library to implement something similar (the tree) with android? If not, then is there any example in any other language I can look into?
Upd. Can I use http://sourceforge.net/projects/touchgraph/files/GraphLayout/?
I'm not sure if this would be the best solution, but take a look at this: http://code.google.com/p/libgdx/ and the developers site: http://www.badlogicgames.com/wordpress/
Something like that could pretty easily be accomplished with this library. Good luck!
It's probably not up to date for you but for others who are looking for a library to visualize and interact with graph structures.
https://github.com/oss-bandb/GraphView

Categories

Resources