Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Creating List of Lists
    primarykey
    data
    text
    <p>I am working on application wherein I need to create a List of lists. For example</p> <p>EmployeeGroup1 GroupName, GroupId, JobType Empployee1 Name, Designation Empployee2 Name, Designation Empployee3 Name, Designation Empployee4 Name, Designation EmployeeGroup2 GroupName, GroupId, JobType Empployee5 Name, Designation Empployee6 Name, Designation Empployee7 Name, Designation Empployee8 Name, Designation ... And so on</p> <p>The employee details in this case are retrieved from SQLite database. The employee group are fixed(5). Hence I created 5 Relative layout Groups and put a list view in each as done delow</p> <pre><code> &lt;RelativeLayout android:id="@+id/ltGroup1" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;TextView android:text="GroupName:" android:id="@+id/lblGroupName_1" android:layout_width="80dip" android:layout_height="25dip" android:layout_alignParentLeft="true" android:textColor="@color/BLACK" android:textSize="14dip" android:textStyle="bold" android:paddingLeft="5dip" android:gravity="center" /&gt; &lt;TextView android:text="0 cal" android:id="@+id/txtGroupName_1" android:layout_width="75dip" android:layout_height="25dip" android:layout_toRightOf="@+id/lblGroupName_1" android:textColor="@color/TITLEBAR_TABS" android:textSize="13dip" android:textStyle="bold" android:paddingRight="5dip" android:gravity="right|center_vertical" /&gt; &lt;ListView android:id="@+id/lstEmployeeGroup_1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fadingEdge="none" android:background="#ffffff" android:scrollbars="none" android:divider="#ffcccccc" android:dividerHeight="1dip" android:layout_below="@+id/lblGroupName_1"/&gt; &lt;/RelativeLayout&gt; </code></pre> <p>If I put all the Relative layout groups in a LineraLayout and then in a Scroll View the employee list shows just one item and to see others I need to scroll through individiual list. When the screen is full the scrollview start scrolling and then I cannot scroll through individual lists also, making it worse. Is there a way wherein the employee list will always show all the records instead of showing only one? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload