Bearded-Hen / Android-Bootstrap

Bootstrap style widgets for Android, with Glyph Icons
MIT License
7.28k stars 1.43k forks source link

Setting BootstrapDropDown size via code or XML using strings.xml #169

Closed feherbt closed 8 years ago

feherbt commented 8 years ago

Hi, I need to change the size depend on device.

First I tired by string resource (values/strings.xml and /values-sw800/strings.xml) app:bootstrapSize="@string/bb_size_large" Result: Binary XML file line #114: Error inflating class

No problem! I resolved by code using setBootstrapSize() method! It is working on BootstrapButton but BootstrapDropDown has't got.

I don't want to duplicate the XML.

feherbt commented 8 years ago

clarification: if I put md/xl/... values in the strings.xml then the result is "Binary XML file Error inflating class" BUT if I put 1,2..4 then everithing is ok! Like that:

2
jamie-beardedhen commented 8 years ago

This should be fixed in the latest version, please comment if you can still see this behaviour and I'll reopen