Android Contoh ListAdapter


@Override
protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main2);

 ListView mainListView =(ListView) findViewById( R.id.listView );

 String items[] = {"satu","dua"};

 ArrayAdapter itemsAdapter =
   new ArrayAdapter(this, android.R.layout.simple_list_item_1, items);

 mainListView.setAdapter( itemsAdapter );

}

Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
xxxx
    Blogger Comment