Skip to content

Commit

Permalink
Move spinner height and width to top level ListSpinner styled
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jul 19, 2012
1 parent 18b4ef1 commit db3aa29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 1 addition & 3 deletions app/res/layout/comment_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@

<ProgressBar
android:id="@+id/pb_loading"
style="@style/Spinner"
android:layout_width="64dp"
android:layout_height="64dp"
style="@style/ListSpinner"
android:layout_centerInParent="true" />

</RelativeLayout>
4 changes: 1 addition & 3 deletions app/res/layout/item_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@

<ProgressBar
android:id="@+id/pb_loading"
style="@style/Spinner"
android:layout_width="64dp"
android:layout_height="64dp"
style="@style/ListSpinner"
android:layout_centerInParent="true" />

</RelativeLayout>
11 changes: 7 additions & 4 deletions app/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@
<item name="android:singleLine">true</item>
</style>

<style name="ListTitleText" parent="TitleText">
</style>
<style name="ListTitleText" parent="TitleText"></style>

<style name="SubtitleText">
<item name="android:textSize">14sp</item>
Expand All @@ -150,8 +149,7 @@
<item name="android:layout_width">wrap_content</item>
</style>

<style name="ListSubtitleText" parent="SubtitleText">
</style>
<style name="ListSubtitleText" parent="SubtitleText"></style>

<style name="ListNumericSubtitleText" parent="ListSubtitleText">
<item name="android:singleLine">true</item>
Expand Down Expand Up @@ -183,6 +181,11 @@
<item name="android:indeterminateOnly">true</item>
</style>

<style name="ListSpinner" parent="Spinner">
<item name="android:layout_width">64dp</item>
<item name="android:layout_height">64dp</item>
</style>

<style name="HeaderSeparator">
<item name="android:layout_height">5dp</item>
<item name="android:layout_width">match_parent</item>
Expand Down

0 comments on commit db3aa29

Please sign in to comment.