I found the checkbox loading is very slow. For example:
If there are 3 or 5 checkbox in activity_main.xml, will cost 1s. What happend?
Obviously Switch is very very better than Checkbox. If i want to keep to use Checkbox, what should i do?
This is happening because the Checkbox<\/code> class is very complicated(too much code 😠).
<\/h2>
<\/li> - <\/li><\/ol>
How to implement ?<\/h2>
<\/h3>
- First create a
LinearLayout<\/code> with horizontal<\/code> orientation.
<\/li>
<\/li>
<\/li><\/ul> In your class add this
<\/h3>
- Use this<\/a> library. <\/li><\/ul>
Sample usage
<\/blockquote>
<\/h3>
Attr<\/th>
Type<\/th>
Description<\/th><\/tr><\/thead>
duration<\/td>
integer<\/td>
Animation Duration<\/td><\/tr>
stroke_width<\/td>
dimension<\/td>
The border width when unchecked<\/td><\/tr>
color_tick <\/td>
color<\/td>
Tick color (visible only when checked)<\/td><\/tr>
color_checked <\/td>
color<\/td>
Fill color when selected<\/td><\/tr>
color_unchecked <\/td>
color<\/td>
Fill color when unchecked<\/td><\/tr>
color_unchecked_stroke <\/td>
color<\/td>
Border color when unchecked<\/td><\/tr><\/tbody><\/table>References<\/h2>
"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.