Set TextView style bold or italic and preserve previous TypeFace

To keep the previous typeface

References https://stackoverflow.com/questions/6200533/set-textview-style-bold-or-italic

Continue reading »

Keep the screen awake on Android

or

References https://developer.android.com/training/scheduling/wakelock

Continue reading »

Updating the UI from a Timer using Handler on Android

If you want it to stop, you can just call handler.removeCallback(runnable) and it won’t start again, until you tell it to References http://www.mopri.de/2010/timertask-bad-do-it-the-android-way-use-a-handler/

Continue reading »

Rotate ImageView from xml layout on Android

References https://stackoverflow.com/questions/11243314/rotate-imageview-source-from-layout-xml-file

Continue reading »

Launch Telegram app from my own application

References https://stackoverflow.com/questions/35721942/how-to-launch-telegram-app-from-my-own-android-application

Continue reading »

Navigation Drawer Item Icon not showing Original Colour

Programmatically

From XML

References https://stackoverflow.com/questions/31394265/navigation-drawer-item-icon-not-showing-original-colour https://stackoverflow.com/questions/30621561/disable-icon-colorstatelist-in-navigationview/

Continue reading »

Validate EditText Input on Android

Custom Icon

References http://stacktips.com/tutorials/android/edittext-validation-in-android-example https://stackoverflow.com/questions/13195852/how-can-i-remove-edittext-error-and-request-focus-in-android

Continue reading »

Prevent locale changes on Android application

References https://stackoverflow.com/questions/37894163/is-there-a-android-attribute-to-disable-locale-change-in-my-app/ https://stackoverflow.com/questions/11013904/disable-localization-in-android-application

Continue reading »

Disable soft keyboard on NumberPicker

Just found this and it works like a charm:

You can also set this in XML:

References https://stackoverflow.com/questions/8854781/disable-soft-keyboard-on-numberpicker

Continue reading »
1 2 3 11