如何在单击时为listview行项设置动画。我想当我点击列表项时,另一个带有一些按钮的列表项视图应该在该特定列表项上进行动画处理。这可能。
答案 0 :(得分:-2)
ListView list = (ListView)findViewById(R.id.yourlistview);
lv.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
// write your animation code here
// apply animation to the layout on which you
// want the animation to happen
}
}