自定义的布局文件

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:android_custom="http://schemas.android.com/apk/res/com.example.crmsunrun"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ffffff"
    android:orientation="vertical" >
    <ScrollView 
        android:id="@+id/sv"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <LinearLayout 
          android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center_horizontal"
            android:orientation="vertical" >
            <!-- elipsize的属性android:ellipsize="start" 省略号在开头

         android:ellipsize="middle" 省略号在中间

         android:ellipsize="end" 省略号在结尾

         android:ellipsize="marquee" 跑马灯显示 -->
        
             <com.example.view.MarqueeTextView 
                android:id="@+id/st"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="@color/pmd"
                android:ellipsize="marquee"
                android:marqueeRepeatLimit="marquee_forever"
                android:padding="10dp"
                android:singleLine="true"
                android:textColor="@color/pmdtext"
                android:textSize="14sp" />
            <com.example.view.RoundProgressBar
                android:id="@+id/roundProgressBars"
                android:layout_width="170dip"
                android:layout_height="170dip"
                android:layout_alignParentBottom="true"
                android:layout_centerHorizontal="true"
                android:layout_margin="10dp"
                android:padding="10dp"
                android_custom:roundColor="#eaeaea"
                android_custom:roundProgressColor="@color/sylan"
                android_custom:roundWidth="10dip"
                android_custom:textColor="#024184"
                android_custom:textSize="30sp" />
            <LinearLayout 
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                >
                <RelativeLayout 
                    android:id="@+id/Subscribe"
                    style="@style/home_button_stylesa"
                    android:layout_marginLeft="15dp"
                    android:orientation="vertical" >
                   <TextView
                        android:id="@+id/textView1"
                        style="@style/sy_text"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentTop="true"
                        android:text="@string/Subscribe" />

                    <TextView
                        android:id="@+id/roundProgressBartext"
                        android:layout_width="70dip"
                        android:layout_height="70dip"
                        android:layout_alignParentBottom="true"
                        android:layout_marginBottom="10dp"
                        android:layout_marginTop="20dp"
                        android:gravity="center"
                        android:padding="10dp"
                        android:text="0"
                        android:textColor="#ea9157"
                        android:textSize="20sp"
                        android:visibility="gone" />
                     <com.example.view.RoundProgressBar
                         android:id="@+id/roundProgressBar1"
                        android:layout_width="70dip"
                        android:layout_height="70dip"
                        android:layout_alignParentBottom="true"
                        android:layout_marginBottom="10dp"
                        android:layout_marginTop="20dp"
                        android:padding="10dp"
                        android_custom:roundColor="@color/white"
                        android_custom:roundProgressColor="#EA9157"
                        android_custom:roundWidth="5dp"
                        android_custom:textColor="#EA9157"
                        android_custom:textSize="20sp" />
                    
                </RelativeLayout>
                <RelativeLayout
                    android:id="@+id/Backcopy"
                    style="@style/home_button_stylesa"
                    android:layout_marginLeft="15dp"
                    android:orientation="vertical" >

                    <TextView
                        style="@style/sy_text"
                        android:paddingLeft="23dp"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/Backcopy" />

                    <com.example.view.RoundProgressBar
                        android:id="@+id/roundProgressBar2"
                        android:layout_width="70dip"
                        android:layout_height="70dip"
                        android:layout_alignParentBottom="true"
                        android:layout_marginBottom="10dp"
                        android:layout_marginTop="20dp"
                        android:padding="10dp"
                        android_custom:roundColor="@color/white"
                        android_custom:roundProgressColor="#68bdd9"
                        android_custom:roundWidth="5dp"
                        android_custom:textColor="#68bdd9"
                        android_custom:textSize="20sp" />

                    <TextView
                        android:id="@+id/roundProgressBar2text"
                        android:layout_width="70dip"
                        android:layout_height="70dip"
                        android:layout_alignParentBottom="true"
                        android:layout_marginBottom="10dp"
                        android:layout_marginTop="20dp"
                        android:gravity="center"
                        android:padding="10dp"
                        android:text="0"
                        android:textColor="#68bdd9"
                        android:textSize="20sp"
                        android:visibility="gone" />
                </RelativeLayout>
                 <RelativeLayout
                    android:id="@+id/receivable "
                    style="@style/home_button_stylesa"
                    android:layout_marginLeft="15dp"
                    android:orientation="vertical" >

                    <TextView
                        style="@style/sy_text"
                        android:paddingLeft="23dp"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/receivable" />

                   <com.example.view.RoundProgressBar
                        android:id="@+id/roundProgressBar3"
                        android:layout_width="70dip"
                        android:layout_height="70dip"
                        android:layout_alignParentBottom="true"
                        android:layout_marginBottom="10dp"
                        android:layout_marginTop="20dp"
                        android:padding="10dp"
                        android_custom:roundColor="@color/white"
                        android_custom:roundProgressColor="#f19aa3"
                        android_custom:roundWidth="5dp"
                        android_custom:textColor="#f19aa3"
                        android_custom:textSize="20sp" />

                    <TextView
                        android:id="@+id/roundProgressBar3text"
                        android:layout_width="70dip"
                        android:layout_height="70dip"
                        android:layout_alignParentBottom="true"
                        android:layout_marginBottom="10dp"
                        android:layout_marginTop="20dp"
                        android:gravity="center"
                        android:padding="10dp"
                        android:text="0"
                        android:textColor="#f19aa3"
                        android:textSize="20sp"
                        android:visibility="gone" />
                </RelativeLayout>

                <RelativeLayout
                    android:id="@+id/mortgage "
                    style="@style/home_button_stylesa"
                    android:layout_marginLeft="15dp"
                    android:orientation="vertical" >

                    <TextView
                        style="@style/sy_text"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                       android:paddingLeft="7dp"
                        android:text="@string/mortgage" />

                   <com.example.view.RoundProgressBar
                        android:id="@+id/roundProgressBar4"
                        android:layout_width="70dip"
                        android:layout_height="70dip"
                        android:layout_alignParentBottom="true"
                        android:layout_marginBottom="10dp"
                        android:layout_marginRight="10dp"
                        android:layout_marginTop="20dp"
                        android:padding="10dp"
                        android_custom:roundColor="@color/white"
                        android_custom:roundProgressColor="#7dd3e4"
                        android_custom:roundWidth="5dp"
                        android_custom:textColor="#7dd3e4"
                        android_custom:textSize="20sp" />

                    <TextView
                        android:id="@+id/roundProgressBar4text"
                        android:layout_width="70dip"
                        android:layout_height="70dip"
                        android:layout_alignParentBottom="true"
                        android:layout_marginBottom="10dp"
                        android:layout_marginRight="10dp"
                        android:layout_marginTop="20dp"
                        android:gravity="center"
                        android:padding="10dp"
                        android:text="0"
                        android:textColor="#7dd3e4"
                        android:textSize="20sp"
                        android:visibility="gone" />
                </RelativeLayout>
            </LinearLayout>
            
            <TextView
                android:layout_width="match_parent"
                android:layout_height="5dp"
                android:background="#4e75b0" />
            <LinearLayout 
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                >
                <RelativeLayout
                    android:id="@+id/TaskAgentss"
                    style="@style/home_button_style"
                    android:background="@color/white" >
                    
                    <Button 
                        android:id="@+id/TaskAgents"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="@color/transparent"
                        android:text="@string/TaskAgents"
                        android:paddingTop="10dp"
                        android:paddingBottom="10dp"
                        android:layout_centerHorizontal="true"
                   
                        />
                    
                    <TextView
                        android:id="@+id/TaskAgentstext"
                        android:layout_width="match_parent"
                        android:layout_height="1dp"
                        android:layout_alignParentBottom="true"
                        android:background="#d8d8d8"
                        android:visibility="gone" 
                        />
                    
                </RelativeLayout>
                  <TextView
                    android:layout_width="1dp"
                    android:layout_height="match_parent"
                    android:background="#d8d8d8" /> 
                    
                  <RelativeLayout
                    android:id="@+id/Todaystatisticss"
                    style="@style/home_button_style"
                    android:background="@color/syhui" >

                    <Button
                        android:id="@+id/Todaystatistics"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:background="@color/transparent"
                        android:paddingBottom="10dp"
                        android:paddingTop="10dp"
                        android:text="@string/Todaystatistics" />

                    <TextView
                        android:id="@+id/Todaystatisticstext"
                        android:layout_width="match_parent"
                        android:layout_height="1dp"
                        android:layout_alignParentBottom="true"
                        android:background="#d8d8d8" />
                </RelativeLayout>

                <TextView
                    android:layout_width="1dp"
                    android:layout_height="match_parent"
                    android:background="#d8d8d8" />

                <RelativeLayout
                    android:id="@+id/Monthlystatisticss"
                    style="@style/home_button_style"
                    android:background="@color/syhui" >

                    <Button
                        android:id="@+id/Monthlystatistics"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:background="@color/transparent"
                        android:paddingBottom="10dp"
                        android:paddingTop="10dp"
                        android:text="@string/Monthlystatistics" />

                    <TextView
                        android:id="@+id/Monthlystatisticstext"
                        android:layout_width="match_parent"
                        android:layout_height="1dp"
                        android:layout_alignParentBottom="true"
                        android:background="#d8d8d8" />
                </RelativeLayout>
            </LinearLayout>
               
            
        </LinearLayout>
    </ScrollView>

    

</LinearLayout>



自定义的布局文件:圆环颜色被截掉一些

button设置为透明

显示设置为gone

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值