【问题标题】:Animation in list item列表项中的动画
【发布时间】:2013-06-10 10:01:07
【问题描述】:

如何在单击时为列表视图行项目设置动画。我希望当我单击列表项时,另一个带有一些按钮的列表项视图应该在该特定列表项上进行动画处理。这可能吗?

【问题讨论】:

  • 自定义对话框,在项目点击时出现列表将有所帮助

标签: android android-listview android-animation


【解决方案1】:
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
    }
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-02-04
    • 1970-01-01
    • 2021-10-30
    • 1970-01-01
    • 1970-01-01
    • 2020-02-18
    • 1970-01-01
    相关资源
    最近更新 更多