graphical shape 3D in android - 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

Related

Best practice to convert screen design to XML in Android

I'll start with the fact that I'm quite new to Android
app development and I came across a real App screen, that I thought will be a good practice to convert to XML.
Although I successfully copied some parts of it, I believe I lack a little bit of knowledge to achieve that goal. So I hope to learn from your answers.
Please keep the answer as clean as possible since I wish to learn forward from it.
Thanks in advance!
NOTE:
1) The icons on the gray line are clickable.
2) the X on the light blue line is clickable and deletes the line.
So, I create for you quick demo app(it is not as good as for commerce practice). How it looks and works from inside you may see here in GitHub repo. Hope I help you!
Things you try to avoid:
hardcoded text & colors in XML
not consistent id-naming
none-dimensional code *, for example like this - android:textSize="16sp"
* - I mean use dimens.xml, for instance - android:textSize="#dimen/default_input_text_size"
I will recommend you read a great book:
Clean Code - Robert Martin
Also, I support #FrancislainyCampos post. You should try to read also about design and develop tools to think and do more consistently with Google recommendations.
Although I've heard of some new tools that proclaim to be able to automate the task of converting design screens to xml, I don't think that's wide spread around the Android community yet. I think the best tip for you here is just to actually type each element on the screen not converting it but making the layout happen. There's a few tutorials on how to use Constrainst Layout to achieve that on Youtube. I'd also suggest this course here on Udacity that explains the step by step on creating your first screens for Android.
Hope that helps.

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

How to use Flipboard effect on Android

I really like some effects in iPad. Especial flipboard, but I am an android developer at the moment, so I want to build an app which has the same effect. But I cannot find any source code about it on the Internet. On youtube I found a video I really like. Can someone help me?
Hey… Here is a quick guide for getting the clipboard effect on your Android phone. Just go through this tutorial for getting it. Hope it will be helpful to you.
http://openaphid.github.com/blog/2012/07/27/how-to-handle-touch-events-for-flip-animation/ there u go, but it is on opengl, and i'm not sure if it supports complex views as ListView. If you want to make one from the scratch i also recommend you this link. It is on Flex, but the principle is similar. http://oreilly.com/pub/a/javascript/archive/flashhacks.html?page=1

Must be OpenGL?

I'm new to android and I need to do a project like this : I have 22 images that represent a person which is rotating. When the user touch the right side of an other image the image is changing (the person is rotating to right). The same thing is for left side.
My question is: I must use OpenGL? I made some example with openGL but I don't see if for my project it is necessary. I was thinking that maybe it is enough to change the background image at every touch.
What do you guide me to do?
Thanks in advance
I know this isn't exactly the same thing but this tutorial by the excellent guys at Sony Ericsson show how to make a nice looking 3D list without OpenGL - http://developer.sonyericsson.com/wp/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/
Maybe you could use some of the techniques in this tutorial to achieve what you want?
The OpenGL may be useful to do your project
you can see the Example Code project here code.google.com
And The Blog url that has explained nicely to work with OpenGL has many part of the Tutorial
May be looking at this you can get idea how to go ahead.

android youtube gallery look

Does someone knows how to implement something similar to honeycomb youtube gallery look? I have seen these links:
http://www.inter-fuser.com/2010/01/android-coverflow-widget.html
http://www.codeproject.com/KB/android/androcarousel.aspx?display=Print
but I don't know what transformations do I have to do to the object to be able to get that rounded look. Because using the code from the examples above, does not provide transformations to the objects (items) inside the gallery. I read somewhere that this can be done using OpenGl, but I was wandering if it could be somehow avoided. If someone has ANY idea, please share it with me. I really want to implement this. Thank u in advance.
This can be done using renderscript. there is an example CarouselExample (http://code.google.com/p/android-ui-utils/downloads/detail?name=CarouselExample.zip&can=1&q=) that can me modified, but it takes a lot of work to get to learn renderscript so you can understand the code completely and start using it. But this is the way to go.

Categories

Resources