Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Actionbar Dashboard: make spacer a View instead of a TextView

  • Loading branch information...
commit fec35514d42f4d260214f816950313106576092b 1 parent 3e18f9a
Michael Hoisie authored
Showing with 4 additions and 19 deletions.
  1. +4 −19 GreenDroid/res/layout/gd_action_bar_dashboard.xml
23 GreenDroid/res/layout/gd_action_bar_dashboard.xml
View
@@ -29,25 +29,10 @@
android:src="?attr/gdActionBarApplicationDrawable"
android:background="@null" />
- <!--
- The following TextView could contain the title of the current screen.
- Its visibility is set to "invisible" because having a title in a dashboard
- doesn't make sense. However, if it is removed, the dashboard icons aren't
- right-aligned.
- -->
- <TextView
- style="?attr/gdActionBarTitleStyle"
- android:id="@+id/gd_action_bar_title"
- android:layout_width="0dp"
+ <!-- Spacer view to right-align dashboard icons -->
+ <View android:visibility="invisible"
+ android:layout_width="0dp"
android:layout_height="fill_parent"
- android:layout_weight="1.0"
- android:gravity="left|center_vertical"
- android:singleLine="true"
- android:textColor="?attr/gdActionBarTitleColor"
- android:textSize="16sp"
- android:textStyle="bold"
- android:paddingRight="10dp"
- android:paddingLeft="10dp"
- android:visibility="invisible" />
+ android:layout_weight="1.0" />
</merge>
Please sign in to comment.
Something went wrong with that request. Please try again.