新人报道,有个问题急急急急急急,求大神!!!!!
android技术吧
全部回复
仅看楼主
level 1
阿青08 楼主
为什么搜索框会在ListView中重复出现,而Textview里的【编号,品牌,型号】不会;
代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff"
android:orientation="vertical"
android:id="@+id/page2"
android:paddingTop="@dimen/activity_vertical_margin" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp" >
<EditText
android:id="@+id/page2_query_edit"
style="@style/page1_text"
android:layout_width="260dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="@drawable/page2_query_input"
android:hint="@string/page2_login_query_hint"
android:paddingBottom="8dp"
android:paddingLeft="36dp"
android:paddingRight="80dp"
android:paddingTop="8dp"
android:saveEnabled="true"
android:singleLine="true" />
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/page2_query_edit"
android:layout_alignRight="@+id/page2_query_edit"
android:layout_marginRight="16dp"
android:background="@drawable/page2_query_button" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="30dp" >
<TextView
android:id="@+id/id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:layout_weight="1"
android:text="编号"
android:textSize="15sp" />
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:layout_weight="1"
android:text="品牌"
android:textSize="15sp" />
<TextView
android:id="@+id/model"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:layout_weight="1"
android:text="型号"
android:textSize="15sp" />
</LinearLayout>
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" >
</ListView>
</LinearLayout>
2014年01月05日 08点01分 1
level 9
没人回答。。
2014年01月06日 01点01分 2
level 5
listView要绑定在adapter上面的 肯定是adapter里面写错了
2014年01月10日 16点01分 3
level 10
adapter代码贴出来
2014年01月11日 00点01分 4
level 9
楼主快来眼熟我。。么么哒。。
2014年01月24日 01点01分 5
level 1
Textview里的【编号,品牌,型号】与搜索框写反了,对调一下就可以
2014年01月31日 02点01分 6
level 9
~~
2014年02月06日 01点02分 7
1