diff --git a/samples/ApiDemos/AndroidManifest.xml b/samples/ApiDemos/AndroidManifest.xml
index f4e77e037..ff44b0e95 100644
--- a/samples/ApiDemos/AndroidManifest.xml
+++ b/samples/ApiDemos/AndroidManifest.xml
@@ -36,7 +36,7 @@
-
+
diff --git a/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.java b/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.java
index bda366beb..ef8c03c66 100644
--- a/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.java
+++ b/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.java
@@ -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;
}