android中去掉button的边框和EditText中的那条线,并自己画一条线

来源:互联网 发布:蒙特卡洛算法matlab 编辑:程序博客网 时间:2024/05/21 06:21

这里写图片描述

如上图。

//@null是去掉边框    <RadioGroup        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:orientation="horizontal" >        <RadioButton             android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:drawableLeft="@drawable/event_icon"            android:text="事件"            android:button="@null"            /><!--设置background="@null"去掉原来的那条线-->        <EditText             android:layout_width="match_parent"            android:layout_height="wrap_content"            android:hint="请输入事件名称"            android:gravity="right"            android:background="@null"            />    </RadioGroup><!--重新画一条线-->    <View                android:layout_width="match_parent"                android:layout_height="2dp"                android:layout_margin="5dp"                android:background="@android:color/darker_gray" />
0 0
原创粉丝点击