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.
Related
Hi everyone. I want to make a view like above. On the same screen , I have got two different layout (or it can be fragments, doesn't matter for now.). User can swipe both layout on long touch and drag/drop like above. Do you know how can we do it or is there any library for this?
Thanks
Please check DragLinearLayout libray.
Hope for help. :)
You can use Drag sort library
but i think this assumes that you use a listview.
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.
I am trying to display my layout via android xml.
Here's what I want to do:
I have 12 buttons with a animals image like this one: , and the circle is the background.
I do not have any idea related to this, how should I start?
Please give me some suggestion so I can go ahead. What things should I use to do this?
You'd be looking for making a custom view. A good place to start is, as always, android's own development site: http://developer.android.com/training/custom-views/create-view.html
i think you can do this with xml. this need simple mathematic calculation that you can not do in xml.
you most extend View class and create your own View. then you can use it in xml.
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