Thanks to all for your help. MagouyaWare, you are right , I've this line in
my XML file but not in the correct place, I've the xmlns:android at the
beginning of my main RelativeLayout and the xmlns:app at the end of this
RelativeLayout. I don't know how it has come there, I've never seen
I've been reading some forums and I've seen two way for use it, with app
and with custom, but I don't know the difference. If someone can
explain me I'll appreciate.
app and custom are basically shorthand ways of referencing your
namespace... You can name it to be whatever you want...
Support for code completion of custom view attributes was added in ADT 20.
If you create for example the CustomView template and open the sample
layout, you should see it offering attributes in the app: namespace.
-- Tor
On Tue, Sep 4, 2012 at 3:43 PM, Justin Anderson
Hi,
I'm sublcassing an ImageView and adding one custom attribute like this in a
res/values/attrs file:
resources
declare-styleable name=CustomImageView
attr name=pattern format=integer /
/declare-styleable
/resources
In my layout file I can use it like this:
4 matches
Mail list logo