Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fastdevelop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高超
fastdevelop
Commits
d323f1ad
Commit
d323f1ad
authored
Jan 06, 2020
by
gao.chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仿IOS 开关控件
parent
b8181690
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
287 additions
and
4 deletions
+287
-4
app/build.gradle
+1
-1
app/src/main/res/layout/test_layout.xml
+13
-0
fastDevelop/build.gradle
+1
-1
fastDevelop/src/main/java/com/mayi/fastdevelop/view/IOSSwitchView.java
+257
-0
fastDevelop/src/main/res/values/attrs.xml
+13
-0
map/build.gradle
+1
-1
web/build.gradle
+1
-1
No files found.
app/build.gradle
View file @
d323f1ad
...
@@ -4,7 +4,7 @@ android {
...
@@ -4,7 +4,7 @@ android {
compileSdkVersion
28
compileSdkVersion
28
defaultConfig
{
defaultConfig
{
applicationId
"com.mayi.demo"
applicationId
"com.mayi.demo"
minSdkVersion
2
0
minSdkVersion
2
1
targetSdkVersion
28
targetSdkVersion
28
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
...
...
app/src/main/res/layout/test_layout.xml
View file @
d323f1ad
...
@@ -9,6 +9,19 @@
...
@@ -9,6 +9,19 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"仿IOS 开关控件"
android:textColor=
"@color/color_666666"
/>
<com.mayi.fastdevelop.view.IOSSwitchView
android:id=
"@+id/s"
android:layout_width=
"@dimen/size_36"
android:layout_height=
"@dimen/size_18"
android:layout_margin=
"@dimen/size_15"
/>
<Button
<Button
android:id=
"@+id/b1"
android:id=
"@+id/b1"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
...
fastDevelop/build.gradle
View file @
d323f1ad
...
@@ -4,7 +4,7 @@ android {
...
@@ -4,7 +4,7 @@ android {
compileSdkVersion
28
compileSdkVersion
28
defaultConfig
{
defaultConfig
{
minSdkVersion
2
0
minSdkVersion
2
1
targetSdkVersion
28
targetSdkVersion
28
versionCode
3
versionCode
3
versionName
"1.2"
versionName
"1.2"
...
...
fastDevelop/src/main/java/com/mayi/fastdevelop/view/IOSSwitchView.java
0 → 100644
View file @
d323f1ad
This diff is collapsed.
Click to expand it.
fastDevelop/src/main/res/values/attrs.xml
View file @
d323f1ad
...
@@ -17,4 +17,16 @@
...
@@ -17,4 +17,16 @@
<attr
name=
"label_text"
format=
"string"
/>
<attr
name=
"label_text"
format=
"string"
/>
<attr
name=
"label_text_size"
format=
"float"
/>
<attr
name=
"label_text_size"
format=
"float"
/>
</declare-styleable>
</declare-styleable>
<declare-styleable
name=
"IOSSwitchView"
>
<attr
name=
"default_stroke_color"
format=
"color"
/>
<attr
name=
"target_stroke_color"
format=
"color"
/>
<attr
name=
"default_circle_color"
format=
"color"
/>
<attr
name=
"default_solid_color"
format=
"color"
/>
<attr
name=
"target_circle_color"
format=
"color"
/>
<attr
name=
"target_solid_color"
format=
"color"
/>
<attr
name=
"checked"
format=
"boolean"
/>
</declare-styleable>
</resources>
</resources>
\ No newline at end of file
map/build.gradle
View file @
d323f1ad
...
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
...
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
android
{
android
{
compileSdkVersion
28
compileSdkVersion
28
defaultConfig
{
defaultConfig
{
minSdkVersion
2
0
minSdkVersion
2
1
targetSdkVersion
28
targetSdkVersion
28
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
...
...
web/build.gradle
View file @
d323f1ad
...
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
...
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
android
{
android
{
compileSdkVersion
28
compileSdkVersion
28
defaultConfig
{
defaultConfig
{
minSdkVersion
2
0
minSdkVersion
2
1
targetSdkVersion
28
targetSdkVersion
28
versionCode
2
versionCode
2
versionName
"1.1"
versionName
"1.1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment