android中去掉button的边框和EditText中的那条线,并自己画一条线
16lz
2021-01-23
如上图。
//@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" /> <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" />
更多相关文章
- 背景及边框处理
- android framework 输入事件分析
- android hover监控鼠标移动事件
- Android按钮事件响应顺序
- 【Android View】Android中View对触摸事件的处理和传递dispatchT