this.getWindow().setNavigationBarColor(Color.parseColor("#D0D0D0"));
Main screen with the default navigation bar (left) and with the themed navigation bar (right)
![Main-after](https://plebin.files.wordpress.com/2015/07/main-after.png?w=180)
![main screen with navbar colored](https://plebin.files.wordpress.com/2015/07/main-screen-with-navbar-colored.png?w=180)
I also decided to update other parts of the application that were not really related to Material Design. The annoying and archaic style validation of fields using dialog boxes was replaced with a more subtle text field red underline and an error hint.
if(thing.trim().length()<=0 && !saveState)
{
thingField.setHighlightColor(android.graphics.Color.RED);
thingField.setError("Thing name is mandatory");
thingField.requestFocus();
return null;
}
The screen with the dialog on left and with the new text field error on the right.
![Thing name check old](https://plebin.files.wordpress.com/2015/07/screenshot_2015-07-15-17-50-391.png?w=180)
![Thing name check textfield](https://plebin.files.wordpress.com/2015/07/screenshot_2015-07-26-13-09-421.png?w=180)
![Price check old](https://plebin.files.wordpress.com/2015/07/screenshot_2015-07-15-17-50-201.png?w=180)
![Price check textfield](https://plebin.files.wordpress.com/2015/07/screenshot_2015-07-26-13-09-561.png?w=180)
I also added a thumbnail to the add/edit page to show the pic selected or clicked.
![Add-After](https://plebin.files.wordpress.com/2015/07/add-after1.png?w=180)
![Add Screen Thumbnail](https://plebin.files.wordpress.com/2015/07/screenshot_2015-07-26-13-11-141.png?w=180)
No comments :
Post a Comment
Leave a Comment...