diff options
Diffstat (limited to 'core/java/android/app/ExpandableListActivity.java')
-rw-r--r-- | core/java/android/app/ExpandableListActivity.java | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/core/java/android/app/ExpandableListActivity.java b/core/java/android/app/ExpandableListActivity.java index a2e048f..75dfcae 100644 --- a/core/java/android/app/ExpandableListActivity.java +++ b/core/java/android/app/ExpandableListActivity.java @@ -63,21 +63,21 @@ import java.util.Map; * * <pre> * <?xml version="1.0" encoding="UTF-8"?> - * <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + * <LinearLayout * android:orientation="vertical" * android:layout_width="fill_parent" * android:layout_height="fill_parent" - * android:paddingLeft="8dp" - * android:paddingRight="8dp"> + * android:paddingLeft="8" + * android:paddingRight="8"> * - * <ExpandableListView android:id="@id/android:list" + * <ExpandableListView id="android:list" * android:layout_width="fill_parent" * android:layout_height="fill_parent" * android:background="#00FF00" * android:layout_weight="1" * android:drawSelectorOnTop="false"/> * - * <TextView android:id="@id/android:empty" + * <TextView id="android:empty" * android:layout_width="fill_parent" * android:layout_height="fill_parent" * android:background="#FF0000" @@ -113,19 +113,19 @@ import java.util.Map; * * <pre> * <?xml version="1.0" encoding="utf-8"?> - * <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + * <LinearLayout * android:layout_width="fill_parent" * android:layout_height="wrap_content" * android:orientation="vertical"> * - * <TextView android:id="@+id/text1" - * android:textSize="16sp" + * <TextView id="text1" + * android:textSize="16" * android:textStyle="bold" * android:layout_width="fill_parent" * android:layout_height="wrap_content"/> * - * <TextView android:id="@+id/text2" - * android:textSize="16sp" + * <TextView id="text2" + * android:textSize="16" * android:layout_width="fill_parent" * android:layout_height="wrap_content"/> * </LinearLayout> @@ -162,8 +162,7 @@ public class ExpandableListActivity extends Activity implements /** * Override this to populate the context menu when an item is long pressed. menuInfo - * will contain an {@link android.widget.ExpandableListView.ExpandableListContextMenuInfo} - * whose packedPosition is a packed position + * will contain a {@link AdapterContextMenuInfo} whose position is a packed position * that should be used with {@link ExpandableListView#getPackedPositionType(long)} and * the other similar methods. * <p> |