Fixing a nasty RuntimeException in Android Preferences

You may come across this exception if you are using PreferenceActivity/PreferenceFragment, and have been messing around with custom list separator styles. The exception looks like this: 05-03 15:35:10.013 7029-7029/com.app.package.name W/dalvikvm´╣Ľ threadid=1: thread exiting with uncaught exception (group=0xb0cb3b20) 05-03 15:35:10.023 7029-7029/com.app.package.name E/AndroidRuntime´╣Ľ FATAL EXCEPTION: main Process: com.app.package.name, PID: 7029 java.lang.RuntimeException: Binary XML file line #18: You must

» Read more

Creating a nice looking List dialog with images and text

This tutorial, will demonstrate how you can create a great looking selectiondialog, containing both text and images. This list can then be used either directly in an Activity, Fragment, or as an Activity looking like a dialog. In this example, I will go with the latter, and create an activity that looks like a selection dialog window, that, in this case will be used to choose a country. Creating such a selection list is easy if it should contain text

» Read more

How to get the Monokai Color theme in Android Studio (and IntelliJ)

If you are tired of the boring default look of Android Studio (and IntelliJ which it is based on), you can do like me, and switch to the better looking Monokai theme from Sublime Text 2. The ugly default theme: I have already covered how to get the Monokai theme in Eclipse, and even how to get Monokai in Chrome developer tools! Downloading and importing the theme Download the theme as a zip file from the github repository, unzip it,

» Read more

How to skin Chrome Developer Tools with custom themes

I have previously posted about a theme named Monokai (in this post). I think its a great color theme for displaying code, so ofcourse I had to try it out when I discovered the possibility to switch themes in Chrome Developer Tools. A theme customization of Chrome Developer Tools, is done with pure CSS, and this particular stylesheet, for Monokai, you can download here. The CSS goes into the Custom.css file in the following folder on your computer: C:

» Read more

How to easily switch to Sublime Text 2 theme (or other themes) in Eclipse

If you want a different theme and syntax highlighting for your code in Eclipse, or if you are just tired of looking at text at a white background and want to try something new, you can easily switch to a different theme. Download and install the Eclipse plugin called Eclipse Color Themes. It can also be installed via the Eclipse update manager: In the top menu, go to Help -> Install new Software -> Add source and enter the plugin

» Read more