我有一个list view,想每一次按下其中一行的时候,则在该行下面显示个行操作按钮,
我的layout:
    <ListView        android:id="@+id/eventitems"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:layout_alignParentLeft="true"        android:layout_below="@+id/widget53" /><?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:id="@+id/widget91"    android:layout_width="fill_parent"    android:layout_height="fill_parent" >
    <LinearLayout android:id="@+id/wrapItem">
  <TableLayout></TableLayout>
<LinearLayout>现在问题是,每当我点解的时候,的确能出现一层,但是都只出现在第一行的下面,而且,我的listview设置的高度是wrap_content ,每一次增加,listview的高度却没有变化,导致增加后后面的行都看不到了。
java实现代码:
// 取得 LinearLayout 物件                      LinearLayout ll = (LinearLayout)findViewById(R.id.wrapItem);                                            // 將 TextView 加入到 LinearLayout 中                      TextView tv = new TextView(Show.this);                      tv.setText("Hello World");                      ll.addView( tv );