Advertisement
Guest User

grid

a guest
Dec 14th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. manifest in activity > android:configChanges="orientation"
  2.  
  3. land - main.xml (dir res > layout-land > main.xml )
  4.  
  5. <GridView xmlns:android="http://schemas.android.com/apk/res/android"
  6. android:id="@+id/MyGrid"
  7. android:layout_width="wrap_content"
  8. android:layout_height="wrap_content"
  9. android:background="#ffffff"
  10. android:columnWidth="90dp"
  11. android:gravity="center"
  12. android:horizontalSpacing="3dp"
  13. android:numColumns="4"
  14. android:stretchMode="columnWidth" >
  15.  
  16. </GridView>
  17.  
  18. port main.xml (dir res > layout > main.xml )
  19.  
  20. <GridView xmlns:android="http://schemas.android.com/apk/res/android"
  21. android:id="@+id/MyGrid"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:background="#ffffff"
  25. android:columnWidth="90dp"
  26. android:gravity="center"
  27. android:horizontalSpacing="3dp"
  28. android:numColumns="3"
  29. android:stretchMode="columnWidth" >
  30.  
  31. </GridView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement