Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public View getView(int position, View convertView, ViewGroup parent) {
- @Override
- public void onClick(View v) {
- Log.i("DBG", "CLICK");
- }
- }
- <GridView
- android:id="@+id/sensorsGrid"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:background="#FF408368"
- android:gravity="center"
- android:numColumns="6"
- android:stretchMode="none" >
- </GridView>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/gridItemLayout"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:padding="7dp" >
- <ImageView
- android:id="@+id/icon"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center_horizontal"
- android:adjustViewBounds="true"
- android:scaleType="fitXY"
- android:contentDescription="@null" />
- <TextView
- android:id="@+id/griditem_text"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center_horizontal"
- android:textColor="#000000"
- android:textSize="7sp" >
- </TextView>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement