Minor change to improve Android studio compatibility.

Using Android studio, the layout preview have a null pointer exception because of these not initialized arrays.
To be honest I didn't had time to review to whole project so I don't know if these changes makes sense or won't break anything else.