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.
Related
I would like to know if there is a way to add a button, or any element below the text of an ExpantableTextView. I'm using this library and I want it to look like this:
I think you'd chosen wrong library. You choseExpandableTextView and now you're asking for help, because you cannot add a button to this View.
Try to search for ExpandableLayout library. Maybe this you would find useful - please check: https://github.com/traex/ExpandableLayout
For more similar libraries, check: http://android-arsenal.com/search?q=expandable
Hope it help
In one line Yes, it can be done in this way.
Two approach:
Modifying the existing library to fulfill your need. For this you should have knowledge of building custom view.
This is just a work around to get the desire result. Put a Button with visibility set to as invisible and place it just below your expandableTextView. Now on click of your expandableTextView just set the visibility of your Button to visible
I hope you would be able to achieve what you want.
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.
I know that this question was asked before but i'm using it in widget so i can't make a custom class (such as VerticalTextView).
Any idea how can i make it using xml?
Really in widget, I think there is only one way - try to use rotate. Similar example. Hope it's help.
I'm looking to implement a SlidingTab ie: lock slider or slide-to-answer type thing in my app. I figured it'd a common thing so the source or widget would be available for use but I can't find it anywhere.
Would I have to build a custom one myself?
If you want the same look and feel of the SlidingTab, yes, you have to implement a custom one yourself! Look here for the source code and here for image resources.
If you need something similar you can use SlidingDrawer or customize a SeekBar.
Let me know what you choose! ;)
does anybody know what android widget/view this is:
i want to be able to implement a similar widget for my own needs but i dont know what kind of view/widget it is. All i see is that it is embeded on the ContactContract class as a quickContact object.
Anyone used one of these and customized it? if so, how? Thanks in advance
edit: is it also possible to include more than 5 items as shown below and have it scrollable horizontaly
This is QuickAction. Here you can find implementation of it. And there is repository on Github with source code.
I'm not quite sure, but it seems a custom toast
http://developer.android.com/guide/topics/ui/notifiers/toasts.html