Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 2.03 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why I am not able to get two list views which are deviding equally the alert dialog window?
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:orientation="vertical"
  5. android:layout_width="fill_parent"
  6. android:layout_height="fill_parent"
  7. android:background="@drawable/header_strip">
  8.  
  9. <LinearLayout
  10. xmlns:android="http://schemas.android.com/apk/res/android"
  11. android:layout_width="fill_parent"
  12. android:layout_height="fill_parent"
  13. android:paddingBottom="2dp"
  14. android:layout_weight="1"
  15. android:orientation="vertical" >    
  16.  
  17.  
  18.   <ListView
  19.     android:id="@+id/cartList"
  20.     android:layout_width="fill_parent"
  21.     android:layout_height="fill_parent"
  22.     android:scrollingCache="false"
  23.     android:layout_weight="1"
  24.     android:longClickable="true"
  25.     android:background="@drawable/list_bg"/>
  26.  
  27.  
  28.  
  29. </LinearLayout>
  30.  
  31.  
  32.  
  33. <LinearLayout
  34. xmlns:android="http://schemas.android.com/apk/res/android"
  35. android:layout_width="fill_parent"
  36. android:paddingTop="2dp"
  37. android:layout_height="fill_parent"
  38. android:layout_weight="1"
  39. android:orientation="vertical" >  
  40.  
  41.  
  42.  
  43. <ListView
  44.     android:id="@+id/shopList"
  45.     android:layout_width="fill_parent"
  46.     android:layout_height="fill_parent"
  47.     android:scrollingCache="false"
  48.     android:layout_weight="1"
  49.     android:background="@drawable/list_bg"/>
  50. </LinearLayout>
  51.        
  52. <?xml version="1.0" encoding="utf-8"?>
  53. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  54.     android:layout_width="fill_parent"
  55.     android:layout_height="fill_parent"
  56.     android:orientation="vertical" >
  57.  
  58.     <ListView
  59.         android:id="@+id/cartList"
  60.         android:layout_width="fill_parent"
  61.         android:layout_height="fill_parent"
  62.         android:layout_weight="1"
  63.         android:longClickable="true"
  64.         android:scrollingCache="false" />
  65.  
  66.     <ListView
  67.         android:id="@+id/shopList"
  68.         android:layout_width="fill_parent"
  69.         android:layout_height="fill_parent"
  70.         android:layout_weight="1"
  71.         android:scrollingCache="false" />
  72.  
  73. </LinearLayout>