Fixed line height for status text in SDL menu

This commit is contained in:
pelya
2013-08-24 23:18:01 +03:00
parent 8a1c00f623
commit c63df5d9d7

View File

@@ -218,7 +218,8 @@ public class MainActivity extends Activity
if( Parent._tv == null )
{
Parent._tv = new TextView(Parent);
Parent._tv.setMaxLines(2);
Parent._tv.setMaxLines(2); // To show some long texts on smaller devices
Parent._tv.setMinLines(2); // Otherwise the background picture is getting resized at random, which does not look good
Parent._tv.setText(R.string.init);
Parent._layout2.addView(Parent._tv);
}