Android 折线图之hellocharts (饼状图)饼图

本文详细介绍了如何在Android中使用HelloCharts库创建饼状图,强调了学习过程中需理解原理并动手实践的重要性。
摘要由CSDN通过智能技术生成
 
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=
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值