Understanding Switch in Android

在安卓4.0之后,Switch控件成为了一种流行的选择。它提供了一个简单的自定义样式接口,让开发者能够根据需求调整Switch的外观。当前的Switch样式不仅功能性强,还可以通过不同的样式配置实现更符合设计需求的视觉效果。

zip
SwitchExample.zip 预估大小:58个文件
folder
SwitchExample 文件夹
file
gradlew.bat 2KB
file
gradlew 5KB
file
gradle.properties 872B
file
SwitchExample.iml 12KB
folder
.gradle 文件夹
folder
2.2.1 文件夹
folder
taskArtifacts 文件夹
file
fileHashes.bin 83KB
file
cache.properties.lock 17B
file
taskArtifacts.bin 35KB
file
fileSnapshots.bin 490KB
file
cache.properties 31B
file
outputFileStates.bin 19KB
folder
app 文件夹
file
proguard-rules.pro 662B
folder
src 文件夹
folder
androidTest 文件夹
folder
java 文件夹
folder
com 文件夹
folder
example 文件夹
folder
switchexample 文件夹
file
ApplicationTest.java 368B
folder
main 文件夹
folder
res 文件夹
folder
menu 文件夹
file
menu_main.xml 367B
folder
drawable-hdpi 文件夹
file
ic_launcher.png 9KB
folder
drawable-xhdpi 文件夹
file
ic_launcher.png 14KB
folder
drawable 文件夹
file
thumb_pressed.xml 407B
file
thumb_on.xml 417B
file
track.xml 371B
file
thumb.xml 372B
file
unable.png 4KB
file
track_on.xml 345B
file
thumb_off.xml 409B
file
track_off.xml 366B
file
able.png 3KB
folder
drawable-xxhdpi 文件夹
file
ic_launcher.png 19KB
folder
values 文件夹
file
strings.xml 231B
file
styles.xml 202B
file
dimens.xml 216B
folder
drawable-mdpi 文件夹
file
ic_launcher.png 5KB
folder
layout 文件夹
file
activity_main.xml 1KB
folder
values-w820dp 文件夹
file
dimens.xml 364B
folder
java 文件夹
folder
com 文件夹
folder
example 文件夹
folder
switchexample 文件夹
file
MainActivity.java 1KB
file
AndroidManifest.xml 714B
file
app.iml 18KB
file
.gitignore 8B
file
build.gradle 616B
folder
libs 文件夹
folder
gradle 文件夹
folder
wrapper 文件夹
file
gradle-wrapper.jar 49KB
file
gradle-wrapper.properties 232B
folder
.idea 文件夹
folder
scopes 文件夹
file
scope_settings.xml 143B
file
gradle.xml 580B
file
misc.xml 840B
file
vcs.xml 173B
file
.name 13B
folder
copyright 文件夹
file
profiles_settings.xml 76B
file
modules.xml 375B
file
encodings.xml 171B
file
findbugs-idea.xml 13KB
file
compiler.xml 734B
file
workspace.xml 84KB
folder
libraries 文件夹
file
support_annotations_21_0_3.xml 495B
file
support_v4_21_0_3.xml 564B
file
appcompat_v7_21_0_3.xml 421B
file
.gitignore 87B
file
local.properties 428B
file
settings.gradle 16B
folder
build 文件夹
folder
intermediates 文件夹
file
model_data.bin 67KB
folder
dex-cache 文件夹
file
cache.xml 2KB
file
build.gradle 455B
...
zip 文件大小:277.08KB