1.自定义RadioButton
(1)首先res\values\目录下建attrs.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="radioButton">
<attr name="title" format="reference"/>
<attr name="content" format="reference"/>
<attr name="left" format="dimension"/>
<attr name="top" format="dimension"/>
<attr name="right" format="dimension"/>
<attr name="bottom" format="dimension"/>
<attr name="space_font" format="dimension"/>
</declare-styleable>
</resources>
(2)自定义RadioButton
package com.sund.fly;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Colo
自定义Radio
最新推荐文章于 2024-01-25 14:08:54 发布