Top "Layer-list" questions

A Drawable that manages an array of other Drawables.

Shadow-like drawable, using "layer-list"

Background I'm trying to make a (fake) shadow below a view, so that the layers would be vertical in this …

android gradient android-drawable layer-list
Android XML layer-list: How to position the top layer

I have this XML drawable - tab_background_unselected: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://…

android xml layer-list
Shape drawable in layer-list rendered incorrectly for APIs below 23

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 …

android android-studio layer-list android-shapedrawable
How to scale and centre a drawable inside layer-list android?

I'm trying to center a drawable image with some padding on either side to use as a splash screen logo. …

android xml android-layout splash-screen layer-list
Android -purpose of useLevel in shape tag

What is the purpose of android shape xml tag useLevel attribute ? This is in respect to a layer-list but should …

android xml android-drawable layer-list
Create layer list with rounded corners programmatically

I am currently trying to convert the following XML to be created programmatically so that I can set the top …

android xml drawing shape layer-list
Android: How to specify the opacity of a <layer-list>?

I want my LayerList to have an opacity of 80 so I wrote: <layer-list xmlns:android="http://schemas.android.com/…

android android-layout opacity layer-list
creating background drawable using layer-list, icon getting stretched

Hi I am trying to create a background drawable for my splash screen which I'll be setting in theme itself. …

android layer-list
android layer list won't show both a gradient and a solid

I don't understand what is going on with this code. <layer-list xmlns:android="http://schemas.android.com/apk/res/…

android xml gradient layer-list