I have to design something like this and add click event for each block,how should I proceed for that.Could anyone guide me regarding this
I know that's too late to reply but this is for the developers who needs some functionalities like this now onwards in their projects..
Look at this demo Project on github
You can make this by own dynamically too by using screen width & screen height , but that would be too complicating..
Better to use the Library or Third Party for that..
You can get some of demos like this too..
https://android-arsenal.com/details/3/1142
https://android-arsenal.com/details/3/1754
Hope that helps others too.
Related
I want to create a sliding weight scale for my app like the one in screen shot. I cannot figure out which Layout or UI components to use. Please Suggest a way or tutorial to do this.
Thanks
Link to screenshot
Did not get any reference so I tried creating it on my own. Check it out in Github.
SlidingScale - GitHub
I saw this when I first started and opened my emulator and wanted to include something like in my application.
Does anyone know how you implement this tutorial? Do you basically have a layout file with a TextView, ImageView, and a Button? And inflate it with some kind of dialog fragment? Is there a way to account for the transparency as well?
I experimented with a dialog fragment but mine looks nothing like the screenshot above. (no transparency, position at center, etc...)
I have never used it so I can not give you a code example. However it is documented in the Help Section of the developer documentation.
This library can help you too.
I'm going to develop a UI something like the image below, but I don't know how can I get boxes likes this with shadows behind ?
How can I achieve this ? I'm wondering if TableLayout may be a good tool for this but I don't know where to start and how to add shadows. Any helps appreciated.
Take a look at this blog spot, "Definitely the most helpful post on this subject, 10x." :
http://www.uifuel.com/android-creating-a-drop-shadow-in-xml-layout/
You can also use 9-patched images. Here you can find a good tutorial.
Im trying to get the same result as new google maps, when you "tap" on any "marker" you get a little layout in bottom of the screen, all the info about the srteet view and other details shown there, when you hold and move your finger to top of the screen the layout moves and c over all screen or half of the screen. i was thinking use slidingDrawer but seems google depreceate this method on api 17. so how i can achieve this?
Im attaching the image of example:
you could look into using this SlidingUpPanel which appears to be exactly what you are looking for
Now from with Android Support Library 23.2 we can use Design Support Library: Bottom Sheets
Something that might be worth looking into is the answer to this question.
More specifically the answer that links here.
Basically the idea is that They realized that the sliding drawer left some things to be desired and they created a custom component with similar functionality. This will give you more freedom and a way around using deprecated classes. Let me know in comments if there's anything else that would be helpful to know.
Happy coding!
I have an app for iphone and I have to make it for android,I need to make a stepper,like in image,I know that I can make two buttons to increment and to decrement the value but I want to something that already exists if it exists
(onclick + value++ ,onclick - value--)
Have a look at the ZoomButtonsController widget, it has the looks, you only have to modify the bahaviour How do I use Android ZoomButtonsController?
I don't know if this is relevant to you use case now. But I've been looking for something very similar for quite some time. Here I've found a library that implements material design and solves my use case pretty well.
Hope this helps you. or someone else.