here is the xml code i used
but no use even if try increasing the minheight....
please help
<?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>
The java code related to it is:
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.................
It looks to me that you simply do not have enough space. The reason lies in the fact that you selected some layout that is bound to screen limits (LinearLayout, RelativeLayout ...). You have lots of things on one screen. In order to avoid this issue, use ScrollView as a root, then LinearLayout, and then you can put lots of layout elements in this LinearLayout (span several screens length).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With