android-shapedrawable Questions

12

I have a textview and want its corner to be in round shape. I already know it can be done using android:background="@drawable/somefile". In my case, this tag is already included so cannot use again...
Snowfield asked 13/9, 2013 at 8:40

21

Solved

How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.
Bathurst asked 23/4, 2013 at 5:12

4

Solved

I'm trying to make one rounded corner of ImageView like in the picture below but with bottom right corner. Tried using background shape but it's not working at all. All images loaded by Glide. Shou...

3

I want to have a glow effect on button (in android studio) as shown in image: I didn't want an image for the background, so to get this effect, I have tried to do in xml file. I have added a strok...

23

Solved

Is it possible to draw a border around an Android TextView?

4

Solved

In our android app we need to create a floating action button which isn't the default circle but a square with with three rounded corners. The fab looks like in the image below: I managed to cr...

4

Solved

I want to build this shape with bottom line and text inside it i'm confused little bit how to achieve this i tired some code but don't get required thing. so far i have tried this code shape.x...
Tonometer asked 30/9, 2017 at 8:43

2

Solved

I have a layout in android that needs to be a certain shape, i.e. this: where the corners are cut off. Is there a way of doing this programatically without setting the background of the layout to...
Rhiamon asked 24/6, 2015 at 10:23

2

I want a small dot inside a square button , this is what i have tried till now as answered by azizbekian: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas....

8

Solved

How to create an EditText that has rounded corners instead of the default rectangular-shaped corners?

3

Solved

I have gone through various solutions on the internet, which enable us to create views with rounded corners. Most of them require the use of creating custom views, or to create a drawable in xml or...

1

Background I'm trying to have a filled circle, with a stroke of certain color and width, and an image inside. This can easily be done in XML, as such (this is just a sample) : <layer-list xml...

1

Solved

Is there any way to prevent partial overlapping of the stroke on the shape drawable. I prefer to overlap the stroke completely on the borders of the shape. Here is my xml <?xml version="1.0" e...
Stupid asked 21/10, 2016 at 6:8

1

Solved

Yesterday, I've switched to Android Studio version 2.1.3. Today, I've re-opened one of my projects and tried to add some layer-list drawables for use with an ImageView. For example this one: <l...
Pantomime asked 9/9, 2016 at 11:28

1

Solved

I want to set a custom drawable with a linear gradient as the background drawable of the bar in my SeekBar. I am creating the LinearGradient in the second statement in the following snippet, and do...

1

Solved

I want to draw a custom shape like this-. One option is to make each shape in photoshop individually and then use it in coding but I want to know that is it possible to draw this using xml? How s...
Danielson asked 11/10, 2014 at 6:24

2

Solved

I'm trying to create a view in Android that has rounded corners and also uses a tiled image background (and which appears on top of another view with a tiled background). I can create a shape draw...
1

© 2022 - 2024 — McMap. All rights reserved.