How to create a header to list in android?
<p>In my project I need to display a paragraph and questions(with options) on that paragraph. Each paragraph contains 7 to 8 questions. Now I have created a textview for displaying the paragraph and listview for displaying questions and options of that paragraph. The problem is when I am displaying the paragraph it is not showing the listview...i.e based on the content of the paragraph in the textview the listview is displaying with scroll. How to resolve this issue? Do we need to use list header for displaying the paragraph instead of textview? Please help me regarding this....</p>

<p>Thanks in Advance  </p>

<p>MyCode:</p>

<pre><code>public class test extends Activity  {

        public static ArrayList&lt;ArrayList&lt;String&gt;&gt; paragraphlist = Para.stringList1;
        public static ArrayList&lt;ArrayList&lt;String&gt;&gt; alloptionlist = Para.stringList3;

        ArrayList&lt;String&gt; arr1;

        static  List&lt;paragraphlist &gt; listOfparagraphs = new ArrayList&lt;paragraphlist &gt;();
        String paradescp,quest;

        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {

            super.onCreate(savedInstanceState);
            setContentView(R.layout.thelist);

            TextView tv = (TextView)findViewById(R.id.paradesc);
            ListView list = (ListView) findViewById(R.id.listlist);

            arr1 = new ArrayList&lt;String&gt;();
            for(int i=0;i&lt;paragraphlist.size();i++){
            arr1 = paragraphlist .get(i)    ;
            System.out.println("here arr1 "+arr1);
            paradescp = arr1.get(4);
                quest = arr1.get(2);
                tv.setText(paradescp);
                listOfparagraphs .add(new paragraphlist(quest));
            }
            System.out.println("out here arr1 "+listOfparagraphs .size());
            lvAdapter adapter = new lvAdapter(this,listOfparagraphs );
            list.setAdapter(adapter);

        } 
} 
</code></pre>
