Loading docs/html/guide/topics/ui/declaring-layout.jd +42 −42 Original line number Diff line number Diff line Loading @@ -417,7 +417,7 @@ android.widget.TextView}. android.widget.ListView}, initialize a new {@link android.widget.ArrayAdapter} using a constructor to specify the layout for each string and the string array:</p> <pre> ArrayAdapter adapter = new ArrayAdapter<String>(this, ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myStringArray); </pre> <p>The arguments for this constructor are:</p> Loading Loading
docs/html/guide/topics/ui/declaring-layout.jd +42 −42 Original line number Diff line number Diff line Loading @@ -417,7 +417,7 @@ android.widget.TextView}. android.widget.ListView}, initialize a new {@link android.widget.ArrayAdapter} using a constructor to specify the layout for each string and the string array:</p> <pre> ArrayAdapter adapter = new ArrayAdapter<String>(this, ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myStringArray); </pre> <p>The arguments for this constructor are:</p> Loading