【发布时间】:2014-09-14 07:47:36
【问题描述】:
是否可以将适配器设置为LinearLayout?
我不想使用ListView,因为我使用的是ScrollView。
所以我使用LinearLayout...
我正在动态添加视图,现在我需要使用适配器.. 所以有人有什么建议吗?
我正在这样做……
LinearLayout clientList = (LinearLayout) findViewById(R.id.clients);
adapter = new Sample1AdapterActivity(this, arrayList);
View list = (ListView) getLayoutInflater().inflate(R.layout.user_details, getListView(), false);
【问题讨论】:
标签: android android-layout scrollview