This question already has answers here:
Create a Chat Bubble In Android
(2 answers)
Closed 9 years ago.
i m creating a chatting application in android and just i want to change the view of textview for previewing the comments
textview has a rectangle shape but i want to change it such as below photo that i mentioned...
i searched a lot but because i m newbie in android i should ask it here
i need something like this widget....
i don't know exactly what is it?
is a textview or a container for a textview???
please help me find it out. thanks in advance...
This is just a simple textView with a background image to it. Use a 9-patch image for best results when stretched: http://developer.android.com/reference/android/graphics/NinePatch.html
Also, this site might help in creating 9-patch images:
http://draw9patch.com/
This is a image used as a background on TextView. You can add any shaped image on background of TextView.
There is a source code available for Chat bubbles in Android.
Related
i'm trying to design a custom shaped imageview in my application... similar to the one in Yahoo news digest application...
Here's the shape i'm seeking to achieve :
Anyone have any idea how to do this? Thanks guys!
Well you'll simply need an image (filling the background) and overlapping view for displaying the news, date and day. I suggest you look for RelativeLayout.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Text with gradient in Android
I'm trying to make a button for my app with a white background and gradient-colored text. However, everything I've found gives advice for making only the background a gradient color using a separate XML file. Can someone please tell me if it's possible to have only the text of a button colored with a gradient and how to do so?
Make a clickable textView with gradient color and set its background as you wish.
Follow the link specified by #SidharthLele.
This question already has answers here:
Is there an easy way to add a border to the top and bottom of an Android View?
(25 answers)
Closed 8 years ago.
I saw many related discussions but didn't find a suitable solution. What I need to do is to create a black border on the top and the bottom sides of an EditText widget. Is that possible?
This is possible with a NinePatchDrawable background.
http://developer.android.com/guide/topics/resources/drawable-resource.html#NinePatch
Yes, it is. Just create your custom EditText or set a suitable drawable as a background.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How do you rearrange buttons where you want them in Eclipse?
Hey guys I am having trouble with placing my buttons in my XML layout. I already have a background and was just trying to put 3 buttons near the middle and thats where I'm having trouble. I know about center gravity and all that but could you help me? Also, If I made my own buttons can I just import them using the image button thing, or is that not right? Thanks for the help!
You can rearrange elements of your layout by editing the XML directly or by dragging and dropping in the outline view or the graphical layout view (I find the latter harder to do reliably).
To use your custom views, click on the "Custom & Library Views" button in the graphical layout palette, or just type in the fully qualified class name as the view tag in the XML.
This question already has answers here:
Standard Android Button with a different color
(20 answers)
Closed 3 years ago.
I have been looking at these posts:
StateList
, Different states
What I really want is to add an outer-glow or some way to highlight the button onclick versus making different images for the associated states. Is this possible using colors or themes?
Thanks in advance :)
EDIT:
I found a good solution here, not quite the right answer but a good one none the less:
standard-android-button-with-a-different-color
I think you will be better off making an image for the state rather than trying to use software to render this automatically. The software solution will most likely be slower.