mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1056976 - Increase height of HomePagerTabStrip to 40dp (r=liuche)
This commit is contained in:
parent
7a148d6ee8
commit
490f54b026
@ -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);
|
||||
|
@ -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"/>
|
||||
|
Loading…
Reference in New Issue
Block a user