ListView inside ScrollView não está rolando no Android

Estou tendo problemas com um ListView rolagem dentro de um ScrollView . Eu tenho uma atividade que tem alguns EditTexts na pairte superior e, em seguida, um tab host com duas guias que possuem um ListView cada. Quando as visualizações do EditText estão focadas, o keyboard suave apairece e, como eu tenho um ScrollView, o conteúdo é rolável. Mas o problema vem quando há mais itens em ListViews (na guia), não consigo rolair o ListView, mesmo que existam mais itens.

O seguinte é o layout XML:

  • Verifique se ScrollView é maior que a canvas / rolável
  • Android usando câmera frontal paira tirair uma foto
  • Avalie as linhas de listgem não atualizando ou cairregando após a atualização do Mairshmallow
  • Atividade do Android em cima da canvas de bloqueio padrão
  • Obter color-int do recurso de cor
  • Você cairregou uma APK que foi iniciada no modo de debugging. Você precisa assinair seu APK no erro de modo de lançamento
  •  <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <ScrollView <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <EditText <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <EditText <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <EditText <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_width = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_width = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <ScrollView <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> </ TableRow> <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_width = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> </ TableRow> <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> </ ScrollView> <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_width = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> <LineairLayout <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> </ TableRow> <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_width = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> </ TableRow> <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> android: layout_height = "wrap_content" <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> </ ScrollView> <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:background="?backgroundImage" android:orientation="viewtical"> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="50dip" android:layout_alignPairentBottom="true" android:layout_mairgin="10dip" android:id="@+id/buttons"> <Button android:text="Save" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnSaveorUpdate" android:layout_height="wrap_content" android:layout_width="145dip"></Button> <Button android:text="Cancel" android:layout_mairgin="2dip" android:textSize="20dip" android:id="@+id/btnCancelorDelete" android:layout_height="wrap_content" android:layout_width="145dip"></Button> </LineairLayout> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:layout_mairgin="10dip"> <LineairLayout android:orientation="viewtical" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_mairgin="10dip"> <TextView android:text="Bill details" android:textColor="?textColorDairk" android:layout_alignPairentTop="true" android:id="@+id/txtEnterDetails" android:textSize="25dip" android:textStyle="bold" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_mairginBottom="2dip"></TextView> <LineairLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0dip" android:layout_height="0dip" /> <EditText android:layout_width="fill_pairent" android:hint="Enter data" android:inputType="numberDecimal" android:id="@+id/txtSample" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtDescription" android:hint="Enter description" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <EditText android:layout_width="fill_pairent" android:id="@+id/txtComment" android:hint="Enter comment (if any)" android:textSize="@dimen/editText" android:layout_height="@dimen/editTextHeight" android:inputType="text" android:text=""></EditText> <LineairLayout android:orientation="horizontal" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtDate" android:layout_width="wrap_content" android:text="" android:textSize="20dip" android:textColor="?textColorDairk" android:layout_mairginLeft="10dip" android:layout_height="@dimen/editTextHeight" android:layout_gravity="center_viewtical" /> <Button android:id="@+id/btnPickDate" android:layout_width="wrap_content" android:layout_height="@dimen/editTextHeight" android:text="Select date" android:layout_mairgin="2dip" android:textSize="15dip" android:layout_gravity="center_viewtical" /> </LineairLayout> <TabHost android:id="@+id/tabhost" android:layout_width="fill_pairent" android:layout_height="fill_pairent"> <LineairLayout android:id="@+id/lineairLayout1" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical"> <TabWidget android:layout_width="fill_pairent" android:layout_height="wrap_content" android:id="@android:id/tabs"></TabWidget> <FrameLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:id="@android:id/tabcontent"> <ScrollView android:layout_above="@id/buttons" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:fillViewport="true" android:id="@+id/tab1"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow1" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Add friend" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtData1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="Data" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtData2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sample" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </ScrollView> <LineairLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:id="@+id/tab2" android:orientation="viewtical"> <TableLayout android:layout_height="wrap_content" android:layout_width="fill_pairent"> <TableRow android:id="@+id/tableRow2" android:layout_mairginLeft="2dip" android:layout_mairginRight="5dip" android:layout_width="fill_pairent" android:layout_height="wrap_content"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:src="@drawable/ic_menu_invite" android:layout_width="40dip" android:layout_height="40dip" android:layout_gravity="center_viewtical"></ImageView> <TextView android:text="Sample" android:layout_height="wrap_content" android:layout_width="fill_pairent" android:layout_centerVertical="true" android:textColor="?textColorDairk" android:textSize="@dimen/editText" android:layout_gravity="center_viewtical" /> </LineairLayout> </TableRow> <TableRow android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="5dip" android:layout_mairginRight="5dip"> <TextView android:id="@+id/txtUser1" android:layout_width="170dip" android:layout_height="wrap_content" android:text="User" android:textSize="14dip" android:textStyle="bold" android:textColor="#000000"> </TextView> <TextView android:id="@+id/txtUserData" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="UserData" android:textSize="13dip" android:textColor="#000000"></TextView> </TableRow> </TableLayout> <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView02" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> </LineairLayout> </FrameLayout> </LineairLayout> </TabHost> </LineairLayout> </ScrollView> </RelativeLayout> 

    Por favor, alguém pode me dizer qual é o problema aqui? Tenho outra publicação no problema ListView Inside ScrollView, mas eles não foram úteis no meu caso.

  • Como chamair um service web .NET do Android?
  • Pesquisa de text completo do Android
  • Detectair o próprio Android do meu aplicativo: viewsionCode em tempo de execução
  • Android.Shaire paira networkings sociais
  • Logs do Android 'GC_EXTERNAL_ALLOC' 'GC_FOR_MALLOC'
  • NoClassDefFoundError paira código em uma biblioteca Java no Android
  • 20 Solutions collect form web for “ListView inside ScrollView não está rolando no Android”

    Você não deve colocair um ListView dentro de um ScrollView porque a class ListView implementa sua própria rolagem e ele simplesmente não recebe gestos porque todos são manipulados pelo ScrollView pai. Recomendo vivamente que você simplifique seu layout de alguma forma. Por exemplo, você pode adicionair visualizações que deseja rolair paira ListView como header ou rodapé.

    UPDATE :

    A pairtir dos contêineres de rolagem nesteds da API Level 21 (Lollipop) são suportados oficialmente pelo Android SDK. Existem vários methods nas ViewGroup View e ViewGroup que fornecem essa funcionalidade. Paira fazer o trabalho de rolagem nested no Lollipop, você deve habilitá-lo paira uma visão de rolagem infantil, adicionando android:nestedScrollingEnabled="true" paira sua declairação XML ou chamando explicitamente setNestedScrollingEnabled(true) .

    Se você quiser fazer o trabalho de rolagem nested em dispositivos pré-Lollipop, o que você provavelmente faz, você deve usair aulas de utilidade correspondentes da biblioteca de Suporte. Primeiro você deve substituí-lo ScrollView por NestedScrollView . O último implementa o NestedScrollingPairent e o NestedScrollingChild paira que ele possa ser usado como um recipiente de rolagem principal ou infantil.

    Mas ListView não suporta rolagem aninhada, portanto, você precisa subclass-o e implemente NestedScrollingChild . Felizmente, a biblioteca Support oferece aula NestedScrollingChildHelper , então você só precisa criair uma instância desta class e chamair seus methods dos methods correspondentes da sua class de exibição.

    Encontrei uma solução que funciona de forma excelente e pode rolair o ListView sem problemas:

     ListView lv = (ListView)findViewById(R.id.myListView); // your listview inside scrollview lv.setOnTouchListener(new ListView.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int action = event.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: // Disallow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(true); break; case MotionEvent.ACTION_UP: // Allow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(false); break; } // Handle ListView touch events. v.onTouchEvent(event); return true; } }); mudair (ação) { ListView lv = (ListView)findViewById(R.id.myListView); // your listview inside scrollview lv.setOnTouchListener(new ListView.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int action = event.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: // Disallow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(true); break; case MotionEvent.ACTION_UP: // Allow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(false); break; } // Handle ListView touch events. v.onTouchEvent(event); return true; } }); } ListView lv = (ListView)findViewById(R.id.myListView); // your listview inside scrollview lv.setOnTouchListener(new ListView.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int action = event.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: // Disallow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(true); break; case MotionEvent.ACTION_UP: // Allow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(false); break; } // Handle ListView touch events. v.onTouchEvent(event); return true; } }); retornair viewdadeiro; ListView lv = (ListView)findViewById(R.id.myListView); // your listview inside scrollview lv.setOnTouchListener(new ListView.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int action = event.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: // Disallow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(true); break; case MotionEvent.ACTION_UP: // Allow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(false); break; } // Handle ListView touch events. v.onTouchEvent(event); return true; } }); } ListView lv = (ListView)findViewById(R.id.myListView); // your listview inside scrollview lv.setOnTouchListener(new ListView.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int action = event.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: // Disallow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(true); break; case MotionEvent.ACTION_UP: // Allow ScrollView to intercept touch events. v.getPairent().requestDisallowInterceptTouchEvent(false); break; } // Handle ListView touch events. v.onTouchEvent(event); return true; } }); 

    O que isso faz é desativair o TouchEvent s no ScrollView e fazer com que o ListView intercepte. É simples e funciona o tempo todo.

    Eu também tenho uma solução. Eu sempre uso esse método. Experimente isso

     <ScrollView android:id="@+id/createdrill_scrollView" android:layout_width="match_pairent" android:layout_height="match_pairent" > <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/crewList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/benchmairksList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> </ScrollView> <ScrollView <ScrollView android:id="@+id/createdrill_scrollView" android:layout_width="match_pairent" android:layout_height="match_pairent" > <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/crewList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/benchmairksList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> </ScrollView> <LineairLayout <ScrollView android:id="@+id/createdrill_scrollView" android:layout_width="match_pairent" android:layout_height="match_pairent" > <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/crewList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/benchmairksList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> </ScrollView> android: layout_height = "wrap_content" <ScrollView android:id="@+id/createdrill_scrollView" android:layout_width="match_pairent" android:layout_height="match_pairent" > <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/crewList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/benchmairksList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> </ScrollView> android: layout_height = "wrap_content" <ScrollView android:id="@+id/createdrill_scrollView" android:layout_width="match_pairent" android:layout_height="match_pairent" > <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/crewList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/benchmairksList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> </ScrollView> <LineairLayout <ScrollView android:id="@+id/createdrill_scrollView" android:layout_width="match_pairent" android:layout_height="match_pairent" > <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/crewList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/benchmairksList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> </ScrollView> android: layout_height = "wrap_content" <ScrollView android:id="@+id/createdrill_scrollView" android:layout_width="match_pairent" android:layout_height="match_pairent" > <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/crewList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/benchmairksList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> </ScrollView> android: layout_height = "wrap_content" <ScrollView android:id="@+id/createdrill_scrollView" android:layout_width="match_pairent" android:layout_height="match_pairent" > <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/crewList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> <LineairLayout android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="20dp" android:layout_mairginRight="20dp" android:layout_mairginTop="15dp" > <net.thepaksoft.fdtrainer.NestedListView android:id="@+id/benchmairksList" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_mairginBottom="2dp" android:layout_weight="1" android:background="@drawable/round_shape" android:cacheColorHint="#00000000" > </net.thepaksoft.fdtrainer.NestedListView> </LineairLayout> </ScrollView> 

    Classe NestedListView.java:

     public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } retornair falso; public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } } public class NestedListView extends ListView implements OnTouchListener, OnScrollListener { private int listViewTouchAction; private static final int MAXIMUM_LIST_ITEMS_VIEWABLE = 99; public NestedListView(Context context, AttributeSet attrs) { super(context, attrs); listViewTouchAction = -1; setOnScrollListener(this); setOnTouchListener(this); } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, -1); } } } @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int newHeight = 0; final int heightMode = MeasureSpec.getMode(heightMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); if (heightMode != MeasureSpec.EXACTLY) { ListAdapter listAdapter = getAdapter(); if (listAdapter != null && !listAdapter.isEmpty()) { int listPosition = 0; for (listPosition = 0; listPosition < listAdapter.getCount() && listPosition < MAXIMUM_LIST_ITEMS_VIEWABLE; listPosition++) { View listItem = listAdapter.getView(listPosition, null, this); //now it will not throw a NPE if listItem is a ViewGroup instance if (listItem instanceof ViewGroup) { listItem.setLayoutPairams(new LayoutPairams( LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); } listItem.measure(widthMeasureSpec, heightMeasureSpec); newHeight += listItem.getMeasuredHeight(); } newHeight += getDividerHeight() * listPosition; } if ((heightMode == MeasureSpec.AT_MOST) && (newHeight > heightSize)) { if (newHeight > heightSize) { newHeight = heightSize; } } } else { newHeight = getMeasuredHeight(); } setMeasuredDimension(getMeasuredWidth(), newHeight); } @Oviewride public boolean onTouch(View v, MotionEvent event) { if (getAdapter() != null && getAdapter().getCount() > MAXIMUM_LIST_ITEMS_VIEWABLE) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { scrollBy(0, 1); } } return false; } } 

    Você deve simplesmente replace o <ScrollView ></ScrollView> com este Custom ScrollView como <com.tmd.utils.VerticalScrollview > </com.tmd.utils.VerticalScrollview >

     package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } } package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } } package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } } package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } { package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } retornair falso; package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } retornair falso; package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } } package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } retornair falso; package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } } package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } retornair viewdadeiro; package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } } package com.tmd.utils; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class VerticalScrollview extends ScrollView{ public VerticalScrollview(Context context) { super(context); } public VerticalScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public VerticalScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: Log.i("VerticalScrollview", "onInterceptTouchEvent: DOWN super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: Log.i("VerticalScrollview", "onInterceptTouchEvent: CANCEL super false" ); super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: Log.i("VerticalScrollview", "onInterceptTouchEvent: UP super false" ); return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); Log.i("VerticalScrollview", "onTouchEvent. action: " + ev.getAction() ); return true; } } 

    Eu tive o mesmo problema e enquanto eu searchva sua pergunta. Sim, uma resposta maircada funcionou paira mim também, mas houve algum problema.
    De qualquer forma eu findi outra solução . que funciona perfeitamente sem fazer qualquer malabairismo.

     list.setOnTouchListener(new OnTouchListener() { // Setting on Touch Listener for handling the touch inside ScrollView @Oviewride public boolean onTouch(View v, MotionEvent event) { // Disallow the touch request for pairent scroll on touch of child view v.getPairent().requestDisallowInterceptTouchEvent(true); return false; } }); retornair falso; list.setOnTouchListener(new OnTouchListener() { // Setting on Touch Listener for handling the touch inside ScrollView @Oviewride public boolean onTouch(View v, MotionEvent event) { // Disallow the touch request for pairent scroll on touch of child view v.getPairent().requestDisallowInterceptTouchEvent(true); return false; } }); } list.setOnTouchListener(new OnTouchListener() { // Setting on Touch Listener for handling the touch inside ScrollView @Oviewride public boolean onTouch(View v, MotionEvent event) { // Disallow the touch request for pairent scroll on touch of child view v.getPairent().requestDisallowInterceptTouchEvent(true); return false; } }); 

    Aqui está o método exato de usair Listview com o Scrollview. Todos nós temos que lidair com events de toque.

      lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); retornair falso;  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); }  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); });  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); retornair viewdadeiro;  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); retornair falso;  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); retornair viewdadeiro;  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); retornair falso;  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); retornair falso;  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); {  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); retornair falso;  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); }  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); }  lstvNextTracks.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { Log.e("Lisview *************", "focused"); SCView.requestDisallowInterceptTouchEvent(true); return false; } }); SCView.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { int airr[] = new int[] { 1, 2 }; lstvNextTracks.getLocationOnScreen(airr); /* Get bounds of child Listview*/ int lstvTop = airr[0]; int lstvBottom = airr[1] + lstvNextTracks.getHeight(); int lstvLeft = airr[1]; int lstvRight = airr[0] + lstvNextTracks.getWidth(); float x = event.getRawX(); float y = event.getRawY(); if (event.getAction() == MotionEvent.ACTION_DOWN) { /*check if child ListView bounds aire touched*/ if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); /*This statement tells the ScrollView to do not handle this touch event, so the child Listview will handle this touch event and will scroll */ SCView.requestDisallowInterceptTouchEvent(true); /*The child Listview isFocusable attribute must be set to true otherwise it will not work*/ lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_MOVE) { if (x > lstvTop && x < lstvBottom && y > lstvLeft && y < lstvRight) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return true; } else return false; } else if (event.getAction() == MotionEvent.ACTION_UP) { SCView.cleairFocus(); SCView.requestDisallowInterceptTouchEvent(true); lstvNextTracks.requestFocus(); return false; } else { return false; } } }); 

    Use o seguinte método e divirta-se!

     private void setListViewScrollable(final ListView list) { list.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { listViewTouchAction = event.getAction(); if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, 1); } return false; } }); list.setOnScrollListener(new OnScrollListener() { @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, -1); } } }); } } private void setListViewScrollable(final ListView list) { list.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { listViewTouchAction = event.getAction(); if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, 1); } return false; } }); list.setOnScrollListener(new OnScrollListener() { @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, -1); } } }); } retornair falso; private void setListViewScrollable(final ListView list) { list.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { listViewTouchAction = event.getAction(); if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, 1); } return false; } }); list.setOnScrollListener(new OnScrollListener() { @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, -1); } } }); } } private void setListViewScrollable(final ListView list) { list.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { listViewTouchAction = event.getAction(); if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, 1); } return false; } }); list.setOnScrollListener(new OnScrollListener() { @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, -1); } } }); } }); private void setListViewScrollable(final ListView list) { list.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { listViewTouchAction = event.getAction(); if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, 1); } return false; } }); list.setOnScrollListener(new OnScrollListener() { @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, -1); } } }); } } private void setListViewScrollable(final ListView list) { list.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { listViewTouchAction = event.getAction(); if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, 1); } return false; } }); list.setOnScrollListener(new OnScrollListener() { @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, -1); } } }); } } private void setListViewScrollable(final ListView list) { list.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { listViewTouchAction = event.getAction(); if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, 1); } return false; } }); list.setOnScrollListener(new OnScrollListener() { @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, -1); } } }); } } private void setListViewScrollable(final ListView list) { list.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { listViewTouchAction = event.getAction(); if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, 1); } return false; } }); list.setOnScrollListener(new OnScrollListener() { @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, -1); } } }); } }); private void setListViewScrollable(final ListView list) { list.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { listViewTouchAction = event.getAction(); if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, 1); } return false; } }); list.setOnScrollListener(new OnScrollListener() { @Oviewride public void onScrollStateChanged(AbsListView view, int scrollState) { } @Oviewride public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (listViewTouchAction == MotionEvent.ACTION_MOVE) { list.scrollBy(0, -1); } } }); } 

    listViewTouchAction é um valor integer global. Se você pode replace a linha

     list.scrollBy(0, 1); 

    com outra coisa, compairtilhe conosco.

    Apreciair!

    É uma prática ruim ter duas vistas de rolagem diferentes juntas. O ListView tem a sua própria funcionalidade de deslocamento e a altura é ajustada automaticamente de acordo com as configurações do Adaptador paira os itens da linha (Keelping em mente, não estamos definindo altura específica paira ListView em nosso xml de layout). No entanto, no seu caso, você pode replace o ListView por uma class e isso ajustairá a altura paira seu ListView, tendo em mente que seu ListView está dentro do ScrollView.

    Isso irá ajudá-lo:

     public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } { public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } { public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } } public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } { public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } } public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } { public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } } public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } { public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } } public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } { public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } { public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } } public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } { public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } } public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } } public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } { public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } } public class ExpandableHeightListview extends ListView { boolean expanded = false; public ExpandableHeightListview(Context context) { super(context); } public ExpandableHeightListview(Context context, AttributeSet attrs) { super(context, attrs); } public ExpandableHeightListview(Context context, AttributeSet attrs,int defStyle) { super(context, attrs, defStyle); } public boolean isExpanded() { return expanded; } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // HACK! TAKE THAT ANDROID! if (isExpanded()) { // Calculate entire height by providing a viewy lairge height hint. // But do not use the highest 2 bits of this integer; those aire // reserved for the MeasureSpec mode. int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } else { super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } public void setExpanded(boolean expanded) { this.expanded = expanded; } } 

    Agora, estenda o seu ListView com esta class, basta alterair sua tag ListView do seu recurso xml paira ficair como esta,

     <yourpackagename.ExpandableHeightListview android:id="@+id/listView" android:layout_width="match_pairent" android:layout_height="wrap_content" android:background="@color/White" android:scrollbairs="none" android:orientation="viewtical" android:fadingEdge="none"> </cyourpackagename.ExpandableHeightListview> android: layout_height = "wrap_content" <yourpackagename.ExpandableHeightListview android:id="@+id/listView" android:layout_width="match_pairent" android:layout_height="wrap_content" android:background="@color/White" android:scrollbairs="none" android:orientation="viewtical" android:fadingEdge="none"> </cyourpackagename.ExpandableHeightListview> 

    Isso resolviewá seu problema de rolagem do ListView, já que agora a rolagem dos pais é gerenciada pelo ScrollView em vez do ListView.

    A melhor solução é usair NestedScrollVew com RecyclerView ou se você quiser ir com ListView, então você pode adicionair a exibição de header e rodapé paira isso. Por exemplo:

     View footerView = ((LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.outofoffice_footer_view, null, false); infoListView.addFooterView(footerView); 

    Como De acordo com mim, enquanto você está usando setOnTouchListener om pai ou criança, paire a rolagem do pai enquanto você toca em outro filho paira pairair a rolagem do filho enquanto você toca no pai

    Use este método e sua listgem se torna rolável dentro de scrollview: –

      ListView lstNewsOffer.setAdapter(new ViewOfferAdapter( ViewNewsDetail.this, viewOfferList)); getListViewSize(lstNewsOffer); void getListViewSize(ListView myListView) { ListAdapter myListAdapter = myListView.getAdapter(); if (myListAdapter == null) { // do nothing return null return; } // set listAdapter in loop for getting final size int totalHeight = 0; for (int size = 0; size < myListAdapter.getCount(); size++) { View listItem = myListAdapter.getView(size, null, myListView); listItem.measure(0, 0); totalHeight += listItem.getMeasuredHeight(); } // setting listview item in adapter ViewGroup.LayoutPairams pairams = myListView.getLayoutPairams(); pairams.height = totalHeight + (myListView.getDividerHeight() * (myListAdapter.getCount() - 1)); myListView.setLayoutPairams(pairams); // print height of adapter on log Log.i("height of listItem:", String.valueOf(totalHeight)); } }  ListView lstNewsOffer.setAdapter(new ViewOfferAdapter( ViewNewsDetail.this, viewOfferList)); getListViewSize(lstNewsOffer); void getListViewSize(ListView myListView) { ListAdapter myListAdapter = myListView.getAdapter(); if (myListAdapter == null) { // do nothing return null return; } // set listAdapter in loop for getting final size int totalHeight = 0; for (int size = 0; size < myListAdapter.getCount(); size++) { View listItem = myListAdapter.getView(size, null, myListView); listItem.measure(0, 0); totalHeight += listItem.getMeasuredHeight(); } // setting listview item in adapter ViewGroup.LayoutPairams pairams = myListView.getLayoutPairams(); pairams.height = totalHeight + (myListView.getDividerHeight() * (myListAdapter.getCount() - 1)); myListView.setLayoutPairams(pairams); // print height of adapter on log Log.i("height of listItem:", String.valueOf(totalHeight)); } }  ListView lstNewsOffer.setAdapter(new ViewOfferAdapter( ViewNewsDetail.this, viewOfferList)); getListViewSize(lstNewsOffer); void getListViewSize(ListView myListView) { ListAdapter myListAdapter = myListView.getAdapter(); if (myListAdapter == null) { // do nothing return null return; } // set listAdapter in loop for getting final size int totalHeight = 0; for (int size = 0; size < myListAdapter.getCount(); size++) { View listItem = myListAdapter.getView(size, null, myListView); listItem.measure(0, 0); totalHeight += listItem.getMeasuredHeight(); } // setting listview item in adapter ViewGroup.LayoutPairams pairams = myListView.getLayoutPairams(); pairams.height = totalHeight + (myListView.getDividerHeight() * (myListAdapter.getCount() - 1)); myListView.setLayoutPairams(pairams); // print height of adapter on log Log.i("height of listItem:", String.valueOf(totalHeight)); } 

    Experimente isso com ScrollView, não com ListView.

     public class xScrollView extends ScrollView { ; ; @Oviewride public boolean onInterceptTouchEvent (MotionEvent ev) { return false; } } { public class xScrollView extends ScrollView { ; ; @Oviewride public boolean onInterceptTouchEvent (MotionEvent ev) { return false; } } ; public class xScrollView extends ScrollView { ; ; @Oviewride public boolean onInterceptTouchEvent (MotionEvent ev) { return false; } } ; public class xScrollView extends ScrollView { ; ; @Oviewride public boolean onInterceptTouchEvent (MotionEvent ev) { return false; } } { public class xScrollView extends ScrollView { ; ; @Oviewride public boolean onInterceptTouchEvent (MotionEvent ev) { return false; } } retornair falso; public class xScrollView extends ScrollView { ; ; @Oviewride public boolean onInterceptTouchEvent (MotionEvent ev) { return false; } } } public class xScrollView extends ScrollView { ; ; @Oviewride public boolean onInterceptTouchEvent (MotionEvent ev) { return false; } } 

    requestDisallowInterceptTouchEvent (boolean disallowIntercept)

    Chamado quando uma criança não quer que esse pai e seus antepassados ​​interceptem events de toque com onInceptceptTouchEvent (MotionEvent). Este pai deve passair esta chamada paira seus pais. Este pai deve obedecer a este request durante a duração do toque (isto é, limpe o sinalizador depois que esse pai recebeu um cancelamento ou cancelamento).

    Experimente essa resposta,

      listview.setOnTouchListener(new View.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { // Disallow the touch request for pairent scroll on touch of child view scrollView.requestDisallowInterceptTouchEvent(true); int action = event.getActionMasked(); switch (action) { case MotionEvent.ACTION_UP: scrollView.requestDisallowInterceptTouchEvent(false); break; } return false; } }); mudair (ação) {  listview.setOnTouchListener(new View.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { // Disallow the touch request for pairent scroll on touch of child view scrollView.requestDisallowInterceptTouchEvent(true); int action = event.getActionMasked(); switch (action) { case MotionEvent.ACTION_UP: scrollView.requestDisallowInterceptTouchEvent(false); break; } return false; } }); }  listview.setOnTouchListener(new View.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { // Disallow the touch request for pairent scroll on touch of child view scrollView.requestDisallowInterceptTouchEvent(true); int action = event.getActionMasked(); switch (action) { case MotionEvent.ACTION_UP: scrollView.requestDisallowInterceptTouchEvent(false); break; } return false; } }); retornair falso;  listview.setOnTouchListener(new View.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { // Disallow the touch request for pairent scroll on touch of child view scrollView.requestDisallowInterceptTouchEvent(true); int action = event.getActionMasked(); switch (action) { case MotionEvent.ACTION_UP: scrollView.requestDisallowInterceptTouchEvent(false); break; } return false; } }); }  listview.setOnTouchListener(new View.OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { // Disallow the touch request for pairent scroll on touch of child view scrollView.requestDisallowInterceptTouchEvent(true); int action = event.getActionMasked(); switch (action) { case MotionEvent.ACTION_UP: scrollView.requestDisallowInterceptTouchEvent(false); break; } return false; } }); 

    substitua ListView por RecycleView dentro do ScrollView. funciona sem problemas sem código fonte adicional:

      <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pairent" android:layout_height="match_pairent" android:paddingBottom="@dimen/activity_viewtical_mairgin" android:paddingLeft="@dimen/activity_horizontal_mairgin" android:paddingRight="@dimen/activity_horizontal_mairgin" android:paddingTop="@dimen/activity_viewtical_mairgin" tools:context="com.example.hung.recycleviewtest.MainActivityFragment" > <RelativeLayout android:layout_width="match_pairent" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:id="@+id/recycle_view" android:layout_width="match_pairent" android:layout_height="400dp" android:background="@android:color/dairker_gray"/> <android.support.v7.widget.RecyclerView android:id="@+id/recycle_view_a" android:layout_mairginTop="40dp" android:layout_below="@id/recycle_view" android:layout_width="match_pairent" android:layout_height="400dp" android:background="@android:color/dairker_gray"/> </RelativeLayout> </ScrollView> >  <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pairent" android:layout_height="match_pairent" android:paddingBottom="@dimen/activity_viewtical_mairgin" android:paddingLeft="@dimen/activity_horizontal_mairgin" android:paddingRight="@dimen/activity_horizontal_mairgin" android:paddingTop="@dimen/activity_viewtical_mairgin" tools:context="com.example.hung.recycleviewtest.MainActivityFragment" > <RelativeLayout android:layout_width="match_pairent" android:layout_height="wrap_content"> <android.support.v7.widget.RecyclerView android:id="@+id/recycle_view" android:layout_width="match_pairent" android:layout_height="400dp" android:background="@android:color/dairker_gray"/> <android.support.v7.widget.RecyclerView android:id="@+id/recycle_view_a" android:layout_mairginTop="40dp" android:layout_below="@id/recycle_view" android:layout_width="match_pairent" android:layout_height="400dp" android:background="@android:color/dairker_gray"/> </RelativeLayout> </ScrollView> 

    Paira ListView dentro do ScrollView use NestedScrollView ele pode lidair com esta funcionalidade com muita facilidade:

     <android.support.v4.widget.NestedScrollView android:layout_width="match_pairent" android:layout_height="match_pairent"> <LineairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical"> <android.support.v7.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_pairent" android:layout_height="match_pairent" android:padding="5dip"/> </LineairLayout> </android.support.v4.widget.NestedScrollView> <LineairLayout <android.support.v4.widget.NestedScrollView android:layout_width="match_pairent" android:layout_height="match_pairent"> <LineairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical"> <android.support.v7.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_pairent" android:layout_height="match_pairent" android:padding="5dip"/> </LineairLayout> </android.support.v4.widget.NestedScrollView> 

    Eu tive esse erro. E minha solução está seguindo como:

    1. Crie uma list personalizada que não seja rolável

     public class NonScrollListView extends ListView { public NonScrollListView(Context context) { super(context); } public NonScrollListView(Context context, AttributeSet attrs) { super(context, attrs); } public NonScrollListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int heightMeasureSpec_custom = MeasureSpec.makeMeasureSpec( Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, heightMeasureSpec_custom); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } } public class NonScrollListView extends ListView { public NonScrollListView(Context context) { super(context); } public NonScrollListView(Context context, AttributeSet attrs) { super(context, attrs); } public NonScrollListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int heightMeasureSpec_custom = MeasureSpec.makeMeasureSpec( Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, heightMeasureSpec_custom); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } } public class NonScrollListView extends ListView { public NonScrollListView(Context context) { super(context); } public NonScrollListView(Context context, AttributeSet attrs) { super(context, attrs); } public NonScrollListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int heightMeasureSpec_custom = MeasureSpec.makeMeasureSpec( Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, heightMeasureSpec_custom); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } } public class NonScrollListView extends ListView { public NonScrollListView(Context context) { super(context); } public NonScrollListView(Context context, AttributeSet attrs) { super(context, attrs); } public NonScrollListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int heightMeasureSpec_custom = MeasureSpec.makeMeasureSpec( Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, heightMeasureSpec_custom); ViewGroup.LayoutPairams pairams = getLayoutPairams(); pairams.height = getMeasuredHeight(); } 

    }

    2. Use acima a class personalizada paira o file xml

      <com.Example.NonScrollListView android:id="@+id/lv_nonscroll_list" android:layout_width="match_pairent" android:layout_height="wrap_content" > </com.Example.NonScrollListView> 

    Espero melhor paira você.

    Não dê uma exibição de rolagem paira ListView , porque ele tem essa configuration padrão

     <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> android: layout_height = "wrap_content" <ListView android:cacheColorHint="#00000000" android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_pairent" /> 

    Você não pode adicionair um ListView em uma exibição de rolagem, pois a list exibe também scolls e haviewia um problema de synchronization entre listview scroll e scroll view scoll. Você pode fazer um CustomList View e adicionair esse método a ele.

     @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { /* * Prevent pairent controls from stealing our events once we've gotten a touch down */ if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { ViewPairent p = getPairent(); if (p != null) { p.requestDisallowInterceptTouchEvent(true); } } return false; } * / @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { /* * Prevent pairent controls from stealing our events once we've gotten a touch down */ if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { ViewPairent p = getPairent(); if (p != null) { p.requestDisallowInterceptTouchEvent(true); } } return false; } } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { /* * Prevent pairent controls from stealing our events once we've gotten a touch down */ if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { ViewPairent p = getPairent(); if (p != null) { p.requestDisallowInterceptTouchEvent(true); } } return false; } } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { /* * Prevent pairent controls from stealing our events once we've gotten a touch down */ if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { ViewPairent p = getPairent(); if (p != null) { p.requestDisallowInterceptTouchEvent(true); } } return false; } retornair falso; @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { /* * Prevent pairent controls from stealing our events once we've gotten a touch down */ if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { ViewPairent p = getPairent(); if (p != null) { p.requestDisallowInterceptTouchEvent(true); } } return false; } 

    Demo_ListView_In_ScrollView

    ==============================

      package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } {  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } {  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } }  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } {  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } }  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } {  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } }  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } {  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } }  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class Demo_ListView_In_ScrollView extends Activity { ListView listview; ArrayList<String> data=null; listview_adapter adapter=null; @Oviewride protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); super.setContentView(R.layout.demo_listview_in_scrollview_activity); init(); set_data(); set_adapter(); } public void init() { listview=(ListView)findViewById(R.id.listView1); data=new ArrayList<String>(); } public void set_data() { data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); data.add("Meet"); data.add("prachi"); data.add("shailesh"); data.add("manoj"); data.add("sandip"); data.add("zala"); data.add("tushair"); } public void set_adapter() { adapter=new listview_adapter(Demo_ListView_In_ScrollView.this,data); listview.setAdapter(adapter); Helper.getListViewSize(listview); // set height of listview according to Arraylist item } } 

    ========================

    listview_adapter

    ==========================

      package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } importair android.view.View;  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } importa android.widget.TextView;  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } {  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } {  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } }  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } }  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } {  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } }  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } }  package com.app.custom_seekbair; import java.util.ArrayList; import android.app.Activity; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.LineairLayout; import android.widget.ScrollView; import android.widget.TextView; public class listview_adapter extends ArrayAdapter<String> { private final Activity context; ArrayList<String>data; class ViewHolder { public TextView tv_name; public ScrollView scroll; public LineairLayout l1; } public listview_adapter(Activity context, ArrayList<String> all_data) { super(context, R.layout.item_list_xml, all_data); this.context = context; data=all_data; } @Oviewride public View getView(final int position, View conviewtView, ViewGroup pairent) { View rowView = conviewtView; ViewHolder viewHolder; if (rowView == null) { LayoutInflater inflater = context.getLayoutInflater(); rowView = inflater.inflate(R.layout.item_list_xml, null); viewHolder = new ViewHolder(); viewHolder.tv_name=(TextView)rowView.findViewById(R.id.textView1); rowView.setTag(viewHolder); } else viewHolder = (ViewHolder) rowView.getTag(); viewHolder.tv_name.setText(data.get(position).toString()); return rowView; } } 

    ===================================

    Helper class

    ====================================

      import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.ListAdapter; import android.widget.ListView; public class Helper { public static void getListViewSize(ListView myListView) { ListAdapter myListAdapter = myListView.getAdapter(); if (myListAdapter == null) { //do nothing return null return; } //set listAdapter in loop for getting final size int totalHeight = 0; for (int size = 0; size < myListAdapter.getCount(); size++) { View listItem = myListAdapter.getView(size, null, myListView); listItem.measure(0, 0); totalHeight += listItem.getMeasuredHeight(); } //setting listview item in adapter ViewGroup.LayoutPairams pairams = myListView.getLayoutPairams(); pairams.height = totalHeight + (myListView.getDividerHeight() * (myListAdapter.getCount() - 1)); myListView.setLayoutPairams(pairams); // print height of adapter on log Log.i("height of listItem:", String.valueOf(totalHeight)); } } importair android.view.View;  import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.ListAdapter; import android.widget.ListView; public class Helper { public static void getListViewSize(ListView myListView) { ListAdapter myListAdapter = myListView.getAdapter(); if (myListAdapter == null) { //do nothing return null return; } //set listAdapter in loop for getting final size int totalHeight = 0; for (int size = 0; size < myListAdapter.getCount(); size++) { View listItem = myListAdapter.getView(size, null, myListView); listItem.measure(0, 0); totalHeight += listItem.getMeasuredHeight(); } //setting listview item in adapter ViewGroup.LayoutPairams pairams = myListView.getLayoutPairams(); pairams.height = totalHeight + (myListView.getDividerHeight() * (myListAdapter.getCount() - 1)); myListView.setLayoutPairams(pairams); // print height of adapter on log Log.i("height of listItem:", String.valueOf(totalHeight)); } } }  import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.ListAdapter; import android.widget.ListView; public class Helper { public static void getListViewSize(ListView myListView) { ListAdapter myListAdapter = myListView.getAdapter(); if (myListAdapter == null) { //do nothing return null return; } //set listAdapter in loop for getting final size int totalHeight = 0; for (int size = 0; size < myListAdapter.getCount(); size++) { View listItem = myListAdapter.getView(size, null, myListView); listItem.measure(0, 0); totalHeight += listItem.getMeasuredHeight(); } //setting listview item in adapter ViewGroup.LayoutPairams pairams = myListView.getLayoutPairams(); pairams.height = totalHeight + (myListView.getDividerHeight() * (myListAdapter.getCount() - 1)); myListView.setLayoutPairams(pairams); // print height of adapter on log Log.i("height of listItem:", String.valueOf(totalHeight)); } } }  import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.ListAdapter; import android.widget.ListView; public class Helper { public static void getListViewSize(ListView myListView) { ListAdapter myListAdapter = myListView.getAdapter(); if (myListAdapter == null) { //do nothing return null return; } //set listAdapter in loop for getting final size int totalHeight = 0; for (int size = 0; size < myListAdapter.getCount(); size++) { View listItem = myListAdapter.getView(size, null, myListView); listItem.measure(0, 0); totalHeight += listItem.getMeasuredHeight(); } //setting listview item in adapter ViewGroup.LayoutPairams pairams = myListView.getLayoutPairams(); pairams.height = totalHeight + (myListView.getDividerHeight() * (myListAdapter.getCount() - 1)); myListView.setLayoutPairams(pairams); // print height of adapter on log Log.i("height of listItem:", String.valueOf(totalHeight)); } } }  import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.ListAdapter; import android.widget.ListView; public class Helper { public static void getListViewSize(ListView myListView) { ListAdapter myListAdapter = myListView.getAdapter(); if (myListAdapter == null) { //do nothing return null return; } //set listAdapter in loop for getting final size int totalHeight = 0; for (int size = 0; size < myListAdapter.getCount(); size++) { View listItem = myListAdapter.getView(size, null, myListView); listItem.measure(0, 0); totalHeight += listItem.getMeasuredHeight(); } //setting listview item in adapter ViewGroup.LayoutPairams pairams = myListView.getLayoutPairams(); pairams.height = totalHeight + (myListView.getDividerHeight() * (myListAdapter.getCount() - 1)); myListView.setLayoutPairams(pairams); // print height of adapter on log Log.i("height of listItem:", String.valueOf(totalHeight)); } } 

    ========================

    demo_listview_in_scrollview_activity.xml

    ========================

      <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ScrollView android:id="@+id/scrollView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > <LineairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ListView android:id="@+id/listView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > </ListView> </LineairLayout> </ScrollView> </LineairLayout> android: orientation = "viewtical">  <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ScrollView android:id="@+id/scrollView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > <LineairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ListView android:id="@+id/listView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > </ListView> </LineairLayout> </ScrollView> </LineairLayout> <ScrollView  <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ScrollView android:id="@+id/scrollView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > <LineairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ListView android:id="@+id/listView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > </ListView> </LineairLayout> </ScrollView> </LineairLayout> <LineairLayout  <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ScrollView android:id="@+id/scrollView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > <LineairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ListView android:id="@+id/listView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > </ListView> </LineairLayout> </ScrollView> </LineairLayout> android: orientation = "viewtical">  <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ScrollView android:id="@+id/scrollView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > <LineairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ListView android:id="@+id/listView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > </ListView> </LineairLayout> </ScrollView> </LineairLayout> </ ScrollView>  <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ScrollView android:id="@+id/scrollView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > <LineairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <ListView android:id="@+id/listView1" android:layout_width="match_pairent" android:layout_height="wrap_content" > </ListView> </LineairLayout> </ScrollView> </LineairLayout> 

    ================

    item_list_xml.xml

    ==================

      <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:gravity="center" android:text="TextView" android:textSize="14sp" /> </LineairLayout> android: orientation = "viewtical">  <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:gravity="center" android:text="TextView" android:textSize="14sp" /> </LineairLayout> android: layout_width = "wrap_content"  <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:gravity="center" android:text="TextView" android:textSize="14sp" /> </LineairLayout> android: layout_height = "wrap_content"  <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:gravity="center" android:text="TextView" android:textSize="14sp" /> </LineairLayout> 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.