am e7b90faf: Merge "Fix ExpandableList1 sample" into jb-mr2-dev

* commit 'e7b90faf8f04d7832d3932243a977f2d4d1381e9':
  Fix ExpandableList1 sample
This commit is contained in:
Fabrice Di Meglio
2013-03-25 21:27:38 +00:00
committed by Android Git Automerger
2 changed files with 4 additions and 2 deletions

View File

@@ -36,7 +36,7 @@
<!-- For android.media.audiofx.Visualizer --> <!-- For android.media.audiofx.Visualizer -->
<uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="16" /> <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="17" />
<!-- We will request access to the camera, saying we require a camera <!-- We will request access to the camera, saying we require a camera
of some sort but not one with autofocus capability. --> of some sort but not one with autofocus capability. -->

View File

@@ -118,7 +118,9 @@ public class ExpandableList1 extends ExpandableListActivity {
// Center the text vertically // Center the text vertically
textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT); textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);
// Set the text starting position // 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; return textView;
} }