我的Flipper上有3个listview,使用不同的线性布局
ListView list;
ListView list1;
ListView list2;
我有从数组列表转换的字符串数组。
ArrayList<String> TextLV1 = new ArrayList<String>();
String[] TextLv1;
我还在鳍状肢中有一个名为QuickAction的翻板和弹出菜单按钮
mQuickAction
.setOnActionItemClickListener(new QuickAction.OnActionItemClickListener() {
@Override
public void onItemClick(int pos) {
if (pos == 0) { // Add item selected
Toast.makeText(cobabikinflipper.this,
"Add item selected on row " + mSelectedRow + " " + TextLv[mSelectedRow],
Toast.LENGTH_SHORT).show();
} else if (pos == 1) { // Accept item selected
Toast.makeText(
cobabikinflipper.this,
"Accept item selected on row "
+ mSelectedRow, Toast.LENGTH_SHORT)
.show();
} else if (pos == 2) { // Upload item selected
startActivity(new Intent("com.binus.skripsi.marketdetail"));
} else if (pos == 3) { // Upload item selected
Toast.makeText(
cobabikinflipper.this,
"Lendski items selected on row "
+ mSelectedRow, Toast.LENGTH_SHORT)
.show();
}
}
});
当我点击弹出菜单(pos == 0)时,字符串数组是正确的(它显示正确的字符串),但是当我点击其他字符串时,我无法从右侧列表视图中更改为正确的字符串。我该怎么办才能解决这个问题?
当我更改页面时,弹出菜单向我显示正确的字符串,因为我认为MQuick Action弹出菜单不适用于3列表视图而是一体化..(对不起,我的英语不太好)< / p>
我认为这是问题(**)??
public void onItemClick(int pos) {
if (pos == 0) { // Add item selected
Toast.makeText(cobabikinflipper.this,
"Add item selected on row " + mSelectedRow + " " + **TextLv[mSelectedRow]**,
Toast.LENGTH_SHORT).show();