Defining and Using Styles

  • Mark Murphy


Every now and then, you will find some code with a cryptic style attribute in a layout element. For example, in the chapter on threading, the following ProgressBar was presented: <?xml version=“1.0” encoding=“utf-8”?> < LinearLayout xmlns:android=“” android:orientation=“vertical” android:layout_width=“fill_parent” android:layout_height=“fill_parent” > <ProgressBar android:id=“@+id/progress” style=“?android:attr/progressBarStyleHorizontal” android:layout_width=“fill_parent” android:layout_height=“wrap_content” /> </LinearLayout>


Content View Attribute Definition Theme Attribute Style Attribute Rounded Rectangle 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Mark Murphy 2011

Authors and Affiliations

  • Mark Murphy

There are no affiliations available

Personalised recommendations