forked from cyrilmottier/GreenDroid
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actionbar Dashboard: set title visibility to "invisible" so the icons…
… appear right-justified.
- Loading branch information
Showing
1 changed file
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,21 +31,23 @@ | |
|
||
<!-- | ||
The following TextView could contain the title of the current screen. | ||
Actually, I don't think having a title in the ActionBar of type | ||
Dashboard is a good idea so I prefer removing it. | ||
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"--> | ||
<!-- 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" />--> | ||
<TextView | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hoisie
Author
Owner
|
||
style="?attr/gdActionBarTitleStyle" | ||
android:id="@+id/gd_action_bar_title" | ||
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" /> | ||
|
||
</merge> |
Why using a TextView ? I think just using an invisible View would be better (more simple and clearer). This View is simply used as a spacer between the application drawable and the items.