am 5b61bea7: Merge change 24581 into eclair
Merge commit '5b61bea7aba93fc812991116fbbf9c4dbccb4890' into eclair-plus-aosp * commit '5b61bea7aba93fc812991116fbbf9c4dbccb4890': Dialog titles would sometimes use a font too large.
This commit is contained in:
@@ -58,14 +58,15 @@ public class DialogTitle extends TextView {
|
||||
android.R.style.TextAppearance_Medium,
|
||||
android.R.styleable.TextAppearance);
|
||||
final int textSize = a.getDimensionPixelSize(
|
||||
android.R.styleable.TextAppearance_textSize, 20);
|
||||
android.R.styleable.TextAppearance_textSize,
|
||||
(int) (20 * getResources().getDisplayMetrics().density));
|
||||
|
||||
setTextSize(TypedValue.COMPLEX_UNIT_SP, textSize);
|
||||
// textSize is already expressed in pixels
|
||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
||||
setMaxLines(2);
|
||||
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user