layer-list Questions

2

Solved

Android studio 2.0 Preview 3b Hello, I have created the following layout that I want to use for a background for my app. I am using the layer-list and I want to display a bowl of peas in 2 loc...
Serena asked 15/12, 2015 at 16:28

5

Solved

I have a view which is used as an item in a ListView. In my custom adapter, I change the background of the view using View.setBackgroundResource() depending on the item's position in the list. (I h...
Abreaction asked 4/5, 2011 at 22:1

3

Solved

I have an xml layer list drawable as a background for view, which is not displayed correctl on some devices. I have a Huawei Ascend Mate with 4.2.2 which displays it ok. On Asus phonepad tablet wi...
Wampum asked 25/10, 2014 at 11:22

1

Solved

I want to create a custom Radio Button. I using with <selector> and <layer-list> to show small circle on large circle, when the user select it. But it seems to ignore the <size&gt...
Undermanned asked 10/11, 2014 at 10:23

2

Solved

I need to build the following view: Where the buttons can be regular buttons that are accessed from java code using findViewById() method. I'm not sure if i can do that using LayerList or if I ...
Tomblin asked 26/12, 2013 at 0:25

1

I have the following file in my drawable folder called /drawable/mybkg.xml. I want to inflate it so I can change the colors programmatically. Is that possible in Android? <layer-list xmlns:andr...
Celindaceline asked 3/8, 2013 at 12:55

1

I have this XML drawable - tab_background_unselected: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> &l...
Unspeakable asked 14/10, 2013 at 9:46

2

Solved

I don't understand how the layer-lists work. I read the official documentation with some examples but it does not work for me like expected. I want four squares which should be padded with 1dp, but...
Specialize asked 21/1, 2013 at 10:27

1

Solved

I am currently trying to convert the following XML to be created programmatically so that I can set the top corners and bottom corners as needed throughout my project. It is a simple Layer list tha...
Hysteresis asked 26/2, 2013 at 22:29

0

In my application there are more than one components with different height which do have same gradient background(I have used multiple shapes and gradient item in layer-list). but in item tag i ha...
Castaneda asked 22/4, 2013 at 14:31

3

Solved

I'm trying to simplify some graphics from requiring a 9-patch for each density, to just using an XML drawable. It's a fairly simple graphic: 2 Segments: 8dp wide for both segments Top segment ...
Siftings asked 27/1, 2013 at 18:34

1

Solved

I have the following drawable set as a background: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <bit...
Ralli asked 1/9, 2011 at 11:16

© 2022 - 2024 — McMap. All rights reserved.