Skip to content

Instantly share code, notes, and snippets.

@Krumelur
Created September 18, 2015 09:15
Show Gist options
  • Save Krumelur/c36adec9710c5e73acb8 to your computer and use it in GitHub Desktop.
Save Krumelur/c36adec9710c5e73acb8 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
custom:cardElevation="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/nameTextView"
android:layout_alignParentBottom="true"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_width="200dp"
android:layout_height="wrap_content" />
<RatingBar
android:id="@+id/ratingBar"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="?android:attr/ratingBarStyleSmall"
android:numStars="5" />
</LinearLayout>
</android.support.v7.widget.CardView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment