android - How to keep scrollview? -
android - How to keep scrollview? -
i want set scrollview. how this?
in listview have 10 items view..im can see 7items..remanining 3 items need scrollview see..any possible there maintain scrollview..please guide me..
<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 reason? have listview set height match_parent , take care scrolling item
use layout instead of using scrollview
<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="match_parent"> </listview> </relativelayout>
android scrollview
Comments
Post a Comment