Android: ListView bug

前端 未结 4 733
余生分开走
余生分开走 2021-01-15 00:58

I have a custom list view which has a Textview and an image. When I click on the textview a hidden layout will be expanded for that particular row. But what happening was, f

4条回答
  •  我在风中等你
    2021-01-15 01:44

    Try to put the R.id.displayRecordRL as part of the viewholder and on the OnClick method call it.

    holder.displayAddInfo = (RelativeLayout)clickView.findViewById(R.id.displayRecordRL);
    

    and on the OnclickMethod :

    Animation expandAnim = expand(holder.displayAddInfo,
                                    true);
                    holder.displayAddInfo
                            .startAnimation(expandAnim);
                        }
    

提交回复
热议问题