Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private RecyclerView mRecyclerView;
- mRecyclerView = (RecyclerView) findViewById(R.id.list);
- mRecyclerView.setLayoutManager(new GridLayoutManager(this, 7));
- <android.support.v7.widget.RecyclerView
- android:id="@+id/list"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="8dp"
- android:clipToPadding="false">
- </android.support.v7.widget.RecyclerView>
- <android.support.v7.widget.CardView
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:card_view="http://schemas.android.com/apk/res-auto"
- android:id="@+id/cv"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_centerHorizontal="true"
- card_view:cardCornerRadius="5dp"
- card_view:cardElevation="2dp"
- card_view:contentPadding="10dp">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <TextView
- android:id="@+id/text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:text="@string/text"
- android:layout_centerVertical="true"
- android:textColor="@color/primary_text_default_material_light"
- android:textSize="16sp"/>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement