결과화면
package com.example.containerdemo; import java.util.ArrayList; import android.app.Activity; public class ListViewDemo3 extends Activity { @Override add = (Button)findViewById(R.id.add); alist = new ArrayList<String>(); adapter = new ArrayAdapter<String> listview.setAdapter(adapter); add.setOnClickListener(new View.OnClickListener() { delete.setOnClickListener(new View.OnClickListener() { listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <TextView <TextView <EditText <Button <Button <ListView </LinearLayout>
|
//values폴더에 arrays.xml 생성
<?xml version="1.0" encoding="utf-8"?>
|
'2020년도 이전 > [WebSig] Android' 카테고리의 다른 글
ExpandableList ViewDemo (0) | 2013.08.14 |
---|---|
ListView Demo5 (0) | 2013.08.14 |
ListView Demo2 - extends ListActivity 이용... (0) | 2013.08.14 |
ListView Demo1 (0) | 2013.08.14 |
HScrollView Demo (0) | 2013.08.14 |