在Android中选择5家门店后,如何关闭选择选项?以下是布局XML文件的图像:

StoreSelect.java代码
https://gist.github.com/mdsami/7740d1ea418a27a050c30c57dbf5cfb0
selectstore.xml
https://gist.github.com/mdsami/e89afc9b6379b657337dd785e947a8b2
发布于 2016-09-20 16:02:56
listView.setOnItemClickListener(new AdapterView.OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int position, long l)
{
CheckedTextView item=(CheckedTextView) view;
boolean b=item.isChecked();
// make your own count for max 5, if count > 5, you can show some message, or uncheck it by code.
}
});https://stackoverflow.com/questions/39567119
复制相似问题