How to customize dialog with up arrow - android

I need to develop a dialog similar to the one in the image, and I don't know what is the best approach (I'm a newbie):
Which approach do you consider to be the best?
Define one custom dialog and define the custom layout (up arrow) in some way?
Define one image with 9-patch and use it as an imageView with text inside?
Thanks a lot in advance :)

Well, You need tooltips views not dialogs. Dialogs will not serve your purpose.
please refere below library
https://github.com/nhaarman/supertooltips

Related

Adapting AlertDialog to a specific design

I need to edit default AlertDialog theme so that it will look like part of the design of my app. I don't want to create a whole new theme for it. I will just play with its own properties and make small changes. But the problem is I can't manage to reach the source code and I don't know what kind of attributes it has.
What I need to do is basically to give background a little transparency and roundness.
Does anyone know where can I get the AlertDialog style code? And which attributes do I need to edit for transparency and roundness of background?
Thanks.
Here's the style code for AlertDialog: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/styles.xml
I don't know how to change it the way you want though.

How to style TextViews that look like "cards"?

I want to create an android style that allows me to put TextViews, pictures, and other elements within the "cards" as demonstrated in the link below. I think that design really adds depth and helps separate content from the background and I'd like to use it in my app. However, I don't know how to create that. If you could help that'd be greatly appreciated! :-)
android card design example
Those TextView just have a custom background. This may be
A 9-patch image
A xml-drawable
I suggest reading on 9-patch drawables and on android drawables in general.
The reason why I think it's a 9-patch is that this "card" has a slight drop shadow.
See if this Library helps you
http://www.androidviews.net/2012/12/cardsui/

Draw circle in xml in android

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.

How to implement an interface like this in Android application?

good afternoon
How could I get a design like this in my android application?
http://s2.subirimagenes.com/otros/previo/thump_7851660img20120718wa0000.jpg
That is, divided into three areas with different background color to the background activity. And for example in the first zone instead of having these options has a TextView and edit text where you enter something.
How to make something like that image what kind of layout is more recomedable use? Linear, Relative ...
Thanks in advance
You could use a fragment layout and use fragments to get that layout
The best way is to use PreferenceScreen with three PreferenceSections.

Android: Gallery widget and shadows

I would like to ask you if is possible to add a shadow to each item in a gallery. And if is possible, what is the easiest way to do it?
Thanks in advance!
It depends on what type of view you are adding to the Gallery. For example, if it's a TextView, you can use android:shadowColor, android:shadowDx, android:shadowDy, and android:shadowRadius to specify the shadow.
If you provide your layout XML that you're using in the Gallery adapter, and explain what you want the shadow to be attached to, it would help give a more clear answer.
Here you go if you are still looking for it: Custom ImageView with drop shadow

Categories

Resources