border for EditText? [duplicate] - android

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.

Related

Customize SeekBar with two thumb in Android [duplicate]

This question already has answers here:
Android Seekbar with two thumbs
(5 answers)
Closed 6 years ago.
I use a seekbar with two thumb in my application and would like to customize it.
I want to change the drawable(I want to use my own image). How to do it?
Basically you will need Range Bar. User can set Range between two numbers
Check this lib - https://github.com/oli107/material-range-bar
Above library is also supports Material design which provides rich UI
Hope it will help :)

How to make custom button design in Android [duplicate]

This question already has answers here:
Custom circle button
(11 answers)
Closed 6 years ago.
The button I'm looking to make has text (Apply), an image (tick mark) and an outer border coloured white background, and an inner background with grey color as you can see in the screenshot.
You can use FloatingActionButton.
This extends ImageButton so you will need to create an image of what you want your button to look like. You can make have circular boundaries using XML styles.
A related answer here has more options and detail.

How to change android theme color [duplicate]

This question already has answers here:
Changing the color of over scroll in scrollview in android
(2 answers)
Closed 9 years ago.
I need to change the color of blue glow that appears when you can't scroll anymore.
How can I change it app-wide?
You'll need to make your own overscroll drawable in the right color. You can see how to set the drawables in this answer.
The blue glow is created with the EdgeEffect class. There is a third party library called EdgeEffectOverride that allows you to style the EdgeEffects of ListView's and ScrollView's without having to create any custom images.

Android: Gradient Color for Button Text [duplicate]

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.

Android: Add outer glow to ImageButton [duplicate]

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.

Categories

Resources