Fix ExpandableList1 sample

- also increase android:targetSdkVersion to 17

Change-Id: Ibceb38f5514a7c321f75d267e40c338c0340b1ef
This commit is contained in:
Fabrice Di Meglio
2013-03-22 16:28:46 -07:00
parent f37f01b084
commit de817c95df
2 changed files with 4 additions and 2 deletions

View File

@@ -118,7 +118,9 @@ public class ExpandableList1 extends ExpandableListActivity {
// Center the text vertically
textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);
// Set the text starting position
textView.setPadding(36, 0, 0, 0);
textView.setPaddingRelative(36, 0, 0, 0);
// Set the text alignment
textView.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START);
return textView;
}