aboutsummaryrefslogtreecommitdiff
path: root/src/org/happysanta/gd/Menu/BigTextMenuElement.java
blob: 8b30e64109bffd1ff6c1a17731495fc46be0d3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package org.happysanta.gd.Menu;

import android.text.Spanned;
import org.happysanta.gd.Global;
import org.happysanta.gd.Menu.Views.MenuTextView;

public class BigTextMenuElement
		extends TextMenuElement {

	public static final int TEXT_SIZE = 19;

	public BigTextMenuElement(String s) {
		super(s);
		createTextView();
		setTextParams(textView);
	}

	public BigTextMenuElement(Spanned s) {
		super(s);
		createTextView();
		setTextParams(textView);
	}

	protected static void setTextParams(MenuTextView textView) {
		textView.setTextSize(TEXT_SIZE);
		textView.setTypeface(Global.robotoCondensedTypeface);
		textView.setLineSpacing(0f, 1.2f);
	}

}