如何增加列表视图的视图大小?

Pra*_*Raj 5 android listview

这是我使用的xml代码

但即使尝试增加最小高度也没用

请帮忙

替代文字

  <?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>
Run Code Online (Sandbox Code Playgroud)

与之相关的java代码是:

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);
             }
Run Code Online (Sandbox Code Playgroud)

这是我的源代码.................

Jam*_*mes 0

您是否尝试过删除这些行?:

android:layout_marginBottom="10dp"
android:paddingBottom="10dp"
Run Code Online (Sandbox Code Playgroud)