Top "Layer-list" questions

A Drawable that manages an array of other Drawables.

Style bottom Line in Android

I need to create an android shape so that only the bottom has stroke (a dashed line). When I try …

android android-drawable android-styles layer-list
Understanding Android's <layer-list>

I don't understand how the layer-lists work. I read the official documentation with some examples but it does not work …

android xml-drawable android-drawable layer-list
How to show only top and bottom border

This is my XML code which works fine, the only problem is it's showing border on all four sides while …

android layer-list android-shape
How to center vector drawable in layer-list without scaling

I am attempting to use a VectorDrawable in a LayerList without scaling the vector. For example: <layer-list> <…

android android-drawable layer-list android-vectordrawable
android, background, layer-list and scalable bitmap item

I have the following drawable set as a background: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://…

android background bitmap layer-list
Using layer-list to display some drawable images

Android studio 2.0 Preview 3b Hello, I have created the following layout that I want to use for a background for …

android drawable android-drawable genymotion layer-list
How do I add padding to a bitmap and a color in a layer-list

I need to create a drawable with a layer-list such that the background layer is an image and the foreground …

android android-layout bitmap shape layer-list
setBackgroundResource() discards my XML layout attributes

I have a view which is used as an item in a ListView. In my custom adapter, I change the …

android background drawable padding layer-list
Android text in drawable layer-list

I am trying to implement splash screen without any extra activities, using theme call in the manifest file's <activity/&…

android android-layout android-drawable layer-list
Change Margin of a Layout using XML in Layer-List

I tried several options but I can't find the best way to do this: I want to change the margin …

android xml layout margin layer-list