eluleci / FlatUI

Android FlatUI Kit
1.66k stars 422 forks source link

Documentation - Samples #31

Closed cheenu closed 10 years ago

cheenu commented 10 years ago

I tried this but it doesn't work (gives an error Error parsing XML: unbound prefix)

<com.cengalabs.flatui.views.FlatEditText
    ...
    flatui:fl_fieldStyle="flat" />

However, this works

<com.cengalabs.flatui.views.FlatEditText
    ...
    fl_fieldStyle="flat" />

If the latter is the expected behaviour, maybe the documentation can be updated.

cheenu commented 10 years ago

Actually, scratch that ... I just tried

<com.cengalabs.flatui.views.FlatEditText
    ...
    fl_fieldStyle="box" />

and it didn't change to box style (although it doesn't give an error, compiles fine)

What am I doing wrong?

cheenu commented 10 years ago

Using the latest version (2.1.1) btw

eluleci commented 10 years ago

If it says unbound prefix it means that you didn't add the namespace to your layout file. If you look at the main layout of the sample project you'll see there is namespace added at 3rd line. Do you have it there?

cheenu commented 10 years ago

Right, thats it. Knew I was missing something simple. :smile:

eluleci commented 10 years ago

it is always because of small things :D nice that it is fixed