Skip to content

Instantly share code, notes, and snippets.

@griajobag
Created May 24, 2018 15:36
Show Gist options
  • Save griajobag/96262a9ef443bcb0166b3425122ad9a5 to your computer and use it in GitHub Desktop.
Save griajobag/96262a9ef443bcb0166b3425122ad9a5 to your computer and use it in GitHub Desktop.
Rating
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_value_10dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_nama_pasien"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/margin_value_10dp"
android:layout_marginRight="@dimen/margin_value_10dp"
android:textStyle="bold"
tools:text="Nama Pasien" />
<me.zhanghai.android.materialratingbar.MaterialRatingBar
android:id="@+id/total_star_rating"
style="@style/Widget.MaterialRatingBar.RatingBar"
android:layout_width="wrap_content"
android:layout_height="15dp"
android:layout_gravity="center"
android:layout_marginBottom="@dimen/margin_value_5dp"
android:layout_marginTop="@dimen/margin_value_5dp"
android:isIndicator="true"
android:maxHeight="20dp"
android:minHeight="20dp"
android:numStars="5"
android:stepSize="0.25"
app:mrb_progressBackgroundTint="@color/colorPrimary"
app:mrb_progressTint="@color/colorPrimary"
app:mrb_secondaryProgressTint="@color/colorPrimary" />
</LinearLayout>
<TextView
android:id="@+id/tv_tgl_rating"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/margin_value_10dp"
android:textSize="10sp"
android:textStyle="bold"
tools:text="12:23:34"/>
<TextView
android:id="@+id/tv_desc_review"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/margin_value_10dp"
tools:text="Lambat!!! apa yang saya minta selalu saya dapatkan dan tidak pernah buruk pelayanannya, Good Job ya" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="@dimen/margin_value_10dp"
android:layout_marginRight="@dimen/margin_value_10dp"
android:layout_marginTop="@dimen/margin_value_10dp"
android:background="@android:color/darker_gray" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment