Commit bfcb0e38 by 严久程

Merge branch 'feature/改bug_5_26' of…

Merge branch 'feature/改bug_5_26' of ssh://gitlab.yidianling.com:2224/app_android_lib/YDL-Component into feature/改bug_5_26
parents 59de1fd2 090a0310
...@@ -19,14 +19,14 @@ buildscript { ...@@ -19,14 +19,14 @@ buildscript {
google() google()
//壹点灵android maven私服 开发版 //壹点灵android maven私服 开发版
maven{ maven {
url 'http://nexus.yidianling.com/repository/AndroidRepository/' url 'http://nexus.yidianling.com/repository/AndroidRepository/'
credentials { credentials {
username "admin" username "admin"
password "fjoi#1+#@" password "fjoi#1+#@"
} }
} }
maven{ maven {
url 'http://nexus.yidianling.com/repository/AndroidReleases/' url 'http://nexus.yidianling.com/repository/AndroidReleases/'
credentials { credentials {
username "admin" username "admin"
...@@ -35,7 +35,7 @@ buildscript { ...@@ -35,7 +35,7 @@ buildscript {
} }
//Umeng sdk maven 地址 //Umeng sdk maven 地址
maven { url 'https://dl.bintray.com/umsdk/release' } 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 { maven {
url 'https://dl.bintray.com/zouyuhan/maven' url 'https://dl.bintray.com/zouyuhan/maven'
...@@ -67,14 +67,14 @@ buildscript { ...@@ -67,14 +67,14 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
//壹点灵android maven私服 开发版 //壹点灵android maven私服 开发版
maven{ maven {
url 'http://nexus.yidianling.com/repository/AndroidRepository/' url 'http://nexus.yidianling.com/repository/AndroidRepository/'
credentials { credentials {
username "admin" username "admin"
password "fjoi#1+#@" password "fjoi#1+#@"
} }
} }
maven{ maven {
url 'http://nexus.yidianling.com/repository/AndroidReleases/' url 'http://nexus.yidianling.com/repository/AndroidReleases/'
credentials { credentials {
username "admin" username "admin"
...@@ -83,7 +83,7 @@ allprojects { ...@@ -83,7 +83,7 @@ allprojects {
} }
//Umeng sdk maven 地址 //Umeng sdk maven 地址
maven { url 'https://dl.bintray.com/umsdk/release' } 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'http://developer.huawei.com/repo/' }
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
maven { maven {
...@@ -94,6 +94,7 @@ allprojects { ...@@ -94,6 +94,7 @@ allprojects {
} }
google() google()
jcenter() jcenter()
maven { url 'https://maven.aliyun.com/repository/releases' }
} }
} }
......
...@@ -244,11 +244,11 @@ class HomeModuleCategoryView : FrameLayout { ...@@ -244,11 +244,11 @@ class HomeModuleCategoryView : FrameLayout {
if (i > 3) { if (i > 3) {
multiple = 2 multiple = 2
imageParams.topMargin = 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) imageParams.leftMargin = dp15 + margin * (i - 3) + (i - 4) * (imageEightViewWidth + margin)
} else { } else {
multiple = 1 multiple = 1
imageParams.topMargin = (dp8 + dp3 - dp6) imageParams.topMargin = (dp8 + dp3 - dp6 - dp1 - dp1)
imageParams.leftMargin = dp15 + margin * (i + 1) + i * (imageEightViewWidth + margin) imageParams.leftMargin = dp15 + margin * (i + 1) + i * (imageEightViewWidth + margin)
} }
imageView.layoutParams = imageParams imageView.layoutParams = imageParams
...@@ -264,13 +264,13 @@ class HomeModuleCategoryView : FrameLayout { ...@@ -264,13 +264,13 @@ class HomeModuleCategoryView : FrameLayout {
val textView = TextView(context) val textView = TextView(context)
textView.setTextColor(Color.parseColor("#666666")) textView.setTextColor(Color.parseColor("#666666"))
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 11f) textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12f)
textView.gravity = Gravity.CENTER_HORIZONTAL textView.gravity = Gravity.CENTER_HORIZONTAL
if (index > 3) { 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) textParams.leftMargin = dp15 + textViewWidth * (index - 4)
} else { } else {
textParams.topMargin = imageEightViewWidth + (dp8 + dp3 - dp6) + dp8 - dp3 textParams.topMargin = imageEightViewWidth + (dp8 + dp3 - dp6) + dp8 - dp3 - dp1 - dp1
textParams.leftMargin = dp15 + textViewWidth * (index) textParams.leftMargin = dp15 + textViewWidth * (index)
} }
textView.layoutParams = textParams textView.layoutParams = textParams
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal" android:orientation="horizontal"
android:clipChildren="false" android:clipChildren="false"
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<ImageView <ImageView
android:id="@+id/iv_search_icon" android:id="@+id/iv_search_icon"
android:layout_marginLeft="18dp" android:layout_marginLeft="18dp"
android:layout_marginRight="11dp" android:layout_marginRight="8dp"
android:layout_width="18dp" android:layout_width="18dp"
android:layout_height="18dp" android:layout_height="18dp"
android:scaleType="centerCrop" android:scaleType="centerCrop"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/platform_dp_8" android:layout_marginLeft="@dimen/platform_dp_8"
android:layout_marginRight="@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:orientation="vertical"
android:background="@drawable/home_view_shadow_bg"/> android:background="@drawable/home_view_shadow_bg"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment