Top "Declare-styleable" questions

Declaring styleable attributes in Android

There's precious little documentation about the declare-styleable tag by which we can declare custom styles for components. I did find …

android xml styleable declare-styleable
ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing

I had created an app and when tried to run,get an error like this. ERROR: In <declare-styleable> …

android view declare-styleable
Get the resource id for the drawable reference used in styled attribute

Having this custom view MyView I define some custom attributes: <?xml version="1.0" encoding="utf-8"?> <resources> <…

android custom-controls android-resources declare-styleable
Difference between declare-styleable and style

I've begun playing around with styles and such in my android applications, and I have gotten everything working so far. …

android styles declare-styleable
Can someone explain me declare-styleable XML tag in this example and the theory behind its use?

I'm reading Beginning Android 4 Development and in chapter 5 it talks about Gallery and ImageVievs and introduces the declare-styleable XML tag …

android attr declare-styleable
How to declare several stylable attributes with the same name for different tags?

I want both my ViewA and ViewB to have the "title" tag. But I can't put this in attrs.xml: &…

java android xml declare-styleable styleable
Creating default values for custom attributes using styles and themes

I have several custom Views in which I have created custom styleable attributes that are declared in xml layout and …

android declare-styleable