Skip to content

Instantly share code, notes, and snippets.

@fede1608
Created August 17, 2016 13:05
Show Gist options
  • Save fede1608/221c347de762c770089ff1762d648dbe to your computer and use it in GitHub Desktop.
Save fede1608/221c347de762c770089ff1762d648dbe to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:id="@+id/sell_your_stuff_card"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:elevation="4dp"
app:cardBackgroundColor="@color/theme_primary"
app:cardCornerRadius="35dp"
app:cardElevation="4dp"
app:cardPreventCornerOverlap="false"
app:cardUseCompatPadding="true">
<RelativeLayout
android:id="@+id/sell_your_stuff_long_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:paddingBottom="12dp"
android:paddingLeft="25dp"
android:paddingRight="25dp"
android:paddingTop="12dp"
android:visibility="visible">
<TextView
android:id="@+id/sell_your_stuff_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:text="@string/MPE191"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"/>
<ImageView
android:id="@+id/sell_your_stuff_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@id/sell_your_stuff_text"
android:src="@drawable/icon_camera_new"/>
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment