Skip to content

Instantly share code, notes, and snippets.

@akexorcist
Created January 21, 2021 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akexorcist/f8307829ebb483503be71c34feffdee1 to your computer and use it in GitHub Desktop.
Save akexorcist/f8307829ebb483503be71c34feffdee1 to your computer and use it in GitHub Desktop.
Build Coupon UI - Implementation
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:orientation="horizontal">
<com.lmwn.library.ui.CouponLayout
android:layout_width="80dp"
android:layout_height="match_parent"
app:coupon_backgroundColor="#007565"
app:coupon_borderColor="#007565"
app:coupon_borderWidth="2dp"
app:coupon_cornerDirection="left"
app:coupon_cornerRadius="4dp"
app:coupon_semiCircleDirection="left"
app:coupon_semiCircleRadius="12dp">
<!-- Contents -->
</com.lmwn.library.ui.CouponLayout>
<com.lmwn.library.ui.CouponLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
app:coupon_backgroundColor="#FAFAFA"
app:coupon_borderColor="#98C6C0"
app:coupon_borderWidth="2dp"
app:coupon_cornerDirection="right"
app:coupon_cornerRadius="4dp"
app:coupon_semiCircleDirection="right"
app:coupon_semiCircleRadius="12dp">
<!-- Contents -->
</com.lmwn.library.ui.CouponLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment