color布局文件
<color name="cash">#C0FF8C</color> <color name="wechat">#FFF78C</color> <color name="alipay">#FFD08B</color> <color name="bankcard">#8BEAFD</color> <color name="membershipcard">#FF8C9C</color> <color name="coupon">#D94E8A</color> <color name="discount">#FE9506</color>
string布局文件
<string name="CashText">现金</string> <string name="WeChatText">微信</string> <string name="AliPayText">支付宝</string> <string name="BankcardText">银行卡</string> <string name="MembershipText">会员卡</string> <string name="CouponsText">优惠券</string> <string name="DiscountText">打折</string>
有颜色提示的饼图布局
<LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:orientation="horizontal"> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_weight="1" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:layout_width="20dp" android:layout_height="8dp" android:background="@color/cash" /> <TextView android:id="@+id/textView6" android:layout_width=