This is how it's done - the important thing to note is that these style items go on your main app theme. Applying them directly to a specific input-field-only style/theme will not work.
Monday, 21 November 2016
Android material theme text input - changing colours of underline and floating label
Android styling/theming is an unholy mess, and I battled once again today with trying to get an input field to look like this:
This is how it's done - the important thing to note is that these style items go on your main app theme. Applying them directly to a specific input-field-only style/theme will not work.
This is how it's done - the important thing to note is that these style items go on your main app theme. Applying them directly to a specific input-field-only style/theme will not work.
Thursday, 3 November 2016
Android configuration qualifiers for alternative resources
I discovered today that there's loads more configuration qualifiers for providing alternative Android resources than I was aware of. Here's a handy table, taken from here.
Configuration
|
Example Qualifier
Values
|
---|---|
MCC and MNC
|
Examples:
mcc310 mcc310-mnc004 mcc208-mnc00 etc. |
Language and region
|
Examples:
en fr en-rUS fr-rFR fr-rCA etc. |
Layout Direction
|
ldrtl ldltr |
smallestWidth
|
sw Examples: sw320dp sw600dp sw720dp etc. |
Available width
|
w Examples: w720dp w1024dp etc. |
Available height
|
h Examples: h720dp h1024dp etc. |
Screen size
|
small normal large xlarge |
Screen aspect
|
long notlong |
Round screen
|
round notround |
Screen orientation
|
port land |
UI mode
|
car desk television |
Night mode
|
night notnight |
Screen pixel density (dpi)
|
ldpi mdpi hdpi xhdpi xxhdpi xxxhdpi nodpi tvdpi anydpi |
Touchscreen type
|
notouch finger |
Keyboard availability
|
keysexposed keyshidden keyssoft |
Primary text input method
|
nokeys qwerty 12key |
Navigation key availability
|
navexposed navhidden |
Primary non-touch navigation
method
|
nonav dpad trackball wheel |
Platform Version (API level)
|
Examples:
v3 v4 v7 etc. |
Subscribe to:
Posts (Atom)