Archive for July, 2016

21 Jul 2016

add horizontal line to the activity

11:00 | android | 589 views

Goal: create an easy visual separator element Use only one line to create a line… where the dialogFragment_horizontal_line style is like this: nota bene: the color coming from style as well


21 Jul 2016

freeze portrait orientation

10:51 | android | 604 views

Goal: avoid the screen rotation If you want to ignore the rotation of the device you can freeze the orientation like this. Put the following line into the manifest file (AndroidManifest.xml) under the activity section:


#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }