Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. @Override
  2. public View getView(int position, View convertView, ViewGroup parent) {
  3.  
  4. @Override
  5. public void onClick(View v) {
  6. Log.i("DBG", "CLICK");
  7. }
  8. }
  9.  
  10. <GridView
  11. android:id="@+id/sensorsGrid"
  12. android:layout_width="wrap_content"
  13. android:layout_height="wrap_content"
  14. android:layout_margin="5dp"
  15. android:background="#FF408368"
  16. android:gravity="center"
  17. android:numColumns="6"
  18. android:stretchMode="none" >
  19. </GridView>
  20.  
  21. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  22. xmlns:tools="http://schemas.android.com/tools"
  23. android:id="@+id/gridItemLayout"
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:orientation="vertical"
  27. android:padding="7dp" >
  28.  
  29. <ImageView
  30. android:id="@+id/icon"
  31. android:layout_width="match_parent"
  32. android:layout_height="match_parent"
  33. android:gravity="center_horizontal"
  34. android:adjustViewBounds="true"
  35. android:scaleType="fitXY"
  36. android:contentDescription="@null" />
  37.  
  38. <TextView
  39. android:id="@+id/griditem_text"
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent"
  42. android:gravity="center_horizontal"
  43. android:textColor="#000000"
  44. android:textSize="7sp" >
  45. </TextView>
  46.  
  47. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement