我想設置滾動視圖。這個怎麼做?如何保持滾動視圖?
在我的列表視圖我有10個項目view..Im只能看到7items..Remanining 3個項目,我需要一個滾動視圖,以see..Any可能是有保留scrollview..Please指導我..
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Nexttopic" >
<ListView
android:id="@+id/List_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" >
</ListView>
</RelativeLayout>
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); viewList = Nexttopic.this.getLayoutInflater().inflate(R.layout.activity_nexttopic, null); dialogMarketList = new Dialog(Nexttopic.this); dialogMarketList.requestWindowFeature(Window.FEATURE_NO_TITLE); dialogMarketList.setContentView(viewList); dialogMarketList.show(); lvForDialog = (ListView) viewList.findViewById(R.id.List_view); ArrayAdapter<String> adapter = (new ArrayAdapter<String>(Nexttopic.this, R.layout.row_topic, R.id.child_row,tnamelist)); lvForDialog.setAdapter(adapter);
什麼意思是「保持ScrollView」? – 2013-02-12 12:23:18
@artemzinnatullin我在列表視圖中有10個項目,它只顯示7項,我想滾動以查看剩餘的3個項目,我無法滾動..請指導我.. – 2013-02-12 12:42:06