Bug 1056976 - Increase height of HomePagerTabStrip to 40dp (r=liuche)

This commit is contained in:
Lucas Rocha 2014-08-22 15:07:40 -07:00
parent 7a148d6ee8
commit 490f54b026
2 changed files with 10 additions and 2 deletions

View File

@ -53,6 +53,14 @@ class HomePagerTabStrip extends PagerTabStrip {
getViewTreeObserver().addOnPreDrawListener(new PreDrawListener());
}
@Override
public int getPaddingBottom() {
// PagerTabStrip enforces a minimum bottom padding of 6dp which causes
// misalignments when using 'center_vertical' gravity. Force padding bottom
// to 0dp so that children are properly centered.
return 0;
}
private void animateTitles() {
final View prevTextView = getChildAt(0);
final View nextTextView = getChildAt(getChildCount() - 1);

View File

@ -14,9 +14,9 @@
android:background="@android:color/white">
<org.mozilla.gecko.home.HomePagerTabStrip android:layout_width="match_parent"
android:layout_height="32dip"
android:layout_height="40dip"
android:layout_gravity="top"
android:gravity="bottom"
android:gravity="center_vertical"
android:background="@color/background_light"
gecko:tabIndicatorColor="@color/text_color_highlight"
android:textAppearance="@style/TextAppearance.Widget.HomePagerTabStrip"/>