Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
ae56153c
Commit
ae56153c
authored
Jun 03, 2020
by
ydl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backup
parent
effb01e8
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
build.gradle
build.gradle
+7
-6
HomeModuleCategoryView.kt
m-home/src/xlzx/java/com/yidianling/home/ui/widget/HomeModuleCategoryView.kt
+5
-5
home_banner_tip_unselect.png
m-home/src/xlzx/res/drawable-xhdpi/home_banner_tip_unselect.png
+0
-0
home_confide_view.xml
m-home/src/xlzx/res/layout/home_confide_view.xml
+0
-1
home_layout_home_module_input.xml
m-home/src/xlzx/res/layout/home_layout_home_module_input.xml
+1
-1
home_test_view.xml
m-home/src/xlzx/res/layout/home_test_view.xml
+1
-1
No files found.
build.gradle
View file @
ae56153c
...
...
@@ -19,14 +19,14 @@ buildscript {
google
()
//壹点灵android maven私服 开发版
maven
{
maven
{
url
'http://nexus.yidianling.com/repository/AndroidRepository/'
credentials
{
username
"admin"
password
"fjoi#1+#@"
}
}
maven
{
maven
{
url
'http://nexus.yidianling.com/repository/AndroidReleases/'
credentials
{
username
"admin"
...
...
@@ -35,7 +35,7 @@ buildscript {
}
//Umeng sdk maven 地址
maven
{
url
'https://dl.bintray.com/umsdk/release'
}
maven
{
url
'http://maven.aliyun.com/nexus/content/groups/public/'
}
maven
{
url
'http://maven.aliyun.com/nexus/content/groups/public/'
}
maven
{
url
'https://dl.bintray.com/zouyuhan/maven'
...
...
@@ -67,14 +67,14 @@ buildscript {
allprojects
{
repositories
{
//壹点灵android maven私服 开发版
maven
{
maven
{
url
'http://nexus.yidianling.com/repository/AndroidRepository/'
credentials
{
username
"admin"
password
"fjoi#1+#@"
}
}
maven
{
maven
{
url
'http://nexus.yidianling.com/repository/AndroidReleases/'
credentials
{
username
"admin"
...
...
@@ -83,7 +83,7 @@ allprojects {
}
//Umeng sdk maven 地址
maven
{
url
'https://dl.bintray.com/umsdk/release'
}
maven
{
url
'http://maven.aliyun.com/nexus/content/groups/public/'
}
maven
{
url
'http://maven.aliyun.com/nexus/content/groups/public/'
}
// maven { url'http://developer.huawei.com/repo/' }
maven
{
url
"https://jitpack.io"
}
maven
{
...
...
@@ -94,6 +94,7 @@ allprojects {
}
google
()
jcenter
()
maven
{
url
'https://maven.aliyun.com/repository/releases'
}
}
}
...
...
m-home/src/xlzx/java/com/yidianling/home/ui/widget/HomeModuleCategoryView.kt
View file @
ae56153c
...
...
@@ -244,11 +244,11 @@ class HomeModuleCategoryView : FrameLayout {
if
(
i
>
3
)
{
multiple
=
2
imageParams
.
topMargin
=
imageEightViewWidth
+
dp8
+
textViewHeight
+
dp8
+
RxImageTool
.
dip2px
(
1f
)
-
dp3
-
dp1
-
dp1
imageEightViewWidth
+
dp8
+
textViewHeight
+
dp8
+
RxImageTool
.
dip2px
(
1f
)
-
dp3
-
dp1
-
dp1
-
dp1
-
dp1
imageParams
.
leftMargin
=
dp15
+
margin
*
(
i
-
3
)
+
(
i
-
4
)
*
(
imageEightViewWidth
+
margin
)
}
else
{
multiple
=
1
imageParams
.
topMargin
=
(
dp8
+
dp3
-
dp6
)
imageParams
.
topMargin
=
(
dp8
+
dp3
-
dp6
-
dp1
-
dp1
)
imageParams
.
leftMargin
=
dp15
+
margin
*
(
i
+
1
)
+
i
*
(
imageEightViewWidth
+
margin
)
}
imageView
.
layoutParams
=
imageParams
...
...
@@ -264,13 +264,13 @@ class HomeModuleCategoryView : FrameLayout {
val
textView
=
TextView
(
context
)
textView
.
setTextColor
(
Color
.
parseColor
(
"#666666"
))
textView
.
setTextSize
(
TypedValue
.
COMPLEX_UNIT_SP
,
1
1
f
)
textView
.
setTextSize
(
TypedValue
.
COMPLEX_UNIT_SP
,
1
2
f
)
textView
.
gravity
=
Gravity
.
CENTER_HORIZONTAL
if
(
index
>
3
)
{
textParams
.
topMargin
=
2
*
(
imageEightViewWidth
+
dp8
)
+
textViewHeight
+
dp8
-
dp3
-
dp3
-
dp1
-
dp1
textParams
.
topMargin
=
2
*
(
imageEightViewWidth
+
dp8
)
+
textViewHeight
+
dp8
-
dp3
-
dp3
-
dp1
-
dp1
-
dp1
-
dp1
textParams
.
leftMargin
=
dp15
+
textViewWidth
*
(
index
-
4
)
}
else
{
textParams
.
topMargin
=
imageEightViewWidth
+
(
dp8
+
dp3
-
dp6
)
+
dp8
-
dp3
textParams
.
topMargin
=
imageEightViewWidth
+
(
dp8
+
dp3
-
dp6
)
+
dp8
-
dp3
-
dp1
-
dp1
textParams
.
leftMargin
=
dp15
+
textViewWidth
*
(
index
)
}
textView
.
layoutParams
=
textParams
...
...
m-home/src/xlzx/res/drawable-xhdpi/home_banner_tip_unselect.png
View replaced file @
effb01e8
View file @
ae56153c
1.45 KB
|
W:
|
H:
1.08 KB
|
W:
|
H:
2-up
Swipe
Onion skin
m-home/src/xlzx/res/layout/home_confide_view.xml
View file @
ae56153c
...
...
@@ -14,7 +14,6 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:clipChildren=
"false"
...
...
m-home/src/xlzx/res/layout/home_layout_home_module_input.xml
View file @
ae56153c
...
...
@@ -44,7 +44,7 @@
<ImageView
android:id=
"@+id/iv_search_icon"
android:layout_marginLeft=
"18dp"
android:layout_marginRight=
"
11
dp"
android:layout_marginRight=
"
8
dp"
android:layout_width=
"18dp"
android:layout_height=
"18dp"
android:scaleType=
"centerCrop"
...
...
m-home/src/xlzx/res/layout/home_test_view.xml
View file @
ae56153c
...
...
@@ -15,7 +15,7 @@
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/platform_dp_8"
android:layout_marginRight=
"@dimen/platform_dp_8"
android:layout_marginTop=
"@dimen/platform_dp_
10
"
android:layout_marginTop=
"@dimen/platform_dp_
6
"
android:orientation=
"vertical"
android:background=
"@drawable/home_view_shadow_bg"
/>
...
...
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