मैंमैं अपनी सूची दृश्य के दृश्य आकार को कैसे बढ़ा सकता हूं?
इस्तेमाल किया एक्सएमएल कोड लेकिन कोई फायदा नहीं भी minheight बढ़ाने की कोशिश करता है, तो है ....
मदद कृपया
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Here you put the rest of your current view-->
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:text="ID:"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/cid"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:text="Name:"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/con"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:text="Posted By:"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/poby"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:text="Posted Time:"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/poti"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:text="Annotation ID:"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/aid"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:text="Comment:"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/comm"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:text="Image-path:"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/imgpath"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:text="Solutions:"
android:textSize="15dp"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ListView
android:id="@+id/listviewid"
android:layout_marginBottom="10dp"
android:paddingBottom="10dp"
android:minHeight="1000dp"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
</ScrollView>
इसे से संबंधित जावा कोड है:
if(s8.length()!=0){
String[] sidarray = s8.split("@");
String[] replyarray = s9.split("@");
String[] replybyarray = s10.split("@");
for(int p=0;p<sidarray.length;p++)
{
if(solutionsList!=null){
solutionsList.add("\nSolutionsID:" + sidarray[p]);
solutionsList.add("\nReply:" + replyarray[p]);
solutionsList.add("\nReply-by:" + replybyarray[p]);
}}
solutionlist=(ListView)findViewById(R.id.listviewid);
solutionadapter = new ArrayAdapter<String>(this, R.layout.solutiondisplay, solutionsList);
solutionlist.setAdapter(solutionadapter);
}
Here is my source code.................
क्या सूची दृश्य के माता-पिता का लेआउट_हेइट भी "fill_parent" है? – pjz
हां इसके माता-पिता का लेआउट_हेइट भी fill_parent –