【发布时间】:2013-05-15 04:47:14
【问题描述】:
我有两个列表视图SAMPLE IMAGE HERE。我想将项目从一个列表视图移动到另一个。 我有两个按钮,“向右移动”和“向左移动”。 它是一个多选列表视图。选择项目后,我们需要将这些项目移动到另一个列表视图。
来自database.code的第一个listview数据如下所示
public void fillcategory() {
Cursor cursor = dataBase
.select("SELECT * FROM t_Category ORDER BY CategoryName");
lacategory = new list(this,
android.R.layout.simple_list_item_activated_1, cursor,
new String[] { "CategoryName" }, new int[] { android.R.id.text1 },1);
lvcategory.setAdapter(lacategory);
lvcategory.setOnItemClickListener(new listclick());
lvcategory.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
}
【问题讨论】:
-
Kannan 我看到了你的照片,两个 listViews 在同一个活动中运行,还是每个 listViews 在单独的活动中运行?
标签: android android-listview android-widget