xml - How to add an explanatory text before a list view in android? -


i have list view @ begining want place piece of text users understand what't purpose of list. after want display list , want srollable. scroll know how it, text part no. i've tryed make 2 layouts, 1 text , list, xml instantly becomes fill errors.

that's xml

<?xml version="1.0" encoding="utf-8"?>   <relativelayout  xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@drawable/legislatie1"     android:orientation="vertical" >        <listview         android:id="@+id/listview1"         android:layout_width="wrap_content"         android:layout_height="600dp"         android:layout_alignparentright="true"         android:drawselectorontop="true"         android:textsize="10pt" >      </listview>  </relativelayout> 

you can use static textview above listview if choose, not scroll listview. alternative add header listview, scroll list. header tutorial


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -