标签:imageview adapter 配置 rac enc 1.0 find add flat
ListView,列表视图,直接继承了AbsListView,是一个以垂直方式在项目中显示View视图的列表。ListView的数据项,来自一个继承了ListAdapter接口的适配器。
1
|
public class ListViewActivity extends AppCompatActivity {
|
1
|
<activity android:name=".listview.ListViewActivity"></activity>
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
1
|
<Button
|
1
|
private Button mBtnListView;
|
1
|
mBtnListView=findViewById(R.id.btn_listview);
|
1
|
mBtnListView.setOnClickListener(new View.OnClickListener() {
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
1
|
public class MyListAdapter extends BaseAdapter {
|
1
|
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
1
|
mLv1.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
标签:imageview adapter 配置 rac enc 1.0 find add flat
原文地址:https://www.cnblogs.com/ycmqaq/p/10029951.html