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
5cd15980
Commit
5cd15980
authored
Apr 10, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页图标区分
parent
02dbf89f
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
69 additions
and
55 deletions
+69
-55
config.gradle
config.gradle
+2
-1
consultant_assistant_dialog_img.png
m-consultant/src/xlzx/res/drawable-xhdpi/consultant_assistant_dialog_img.png
+0
-0
consultant_assistant_dialog_text_bg.xml
m-consultant/src/xlzx/res/drawable/consultant_assistant_dialog_text_bg.xml
+13
-0
consultant_assistant_dialog_img.png
m-consultant/src/ydl/res/drawable-xhdpi/consultant_assistant_dialog_img.png
+0
-0
consultant_assistant_dialog_text_bg.xml
m-consultant/src/ydl/res/drawable/consultant_assistant_dialog_text_bg.xml
+0
-0
HomeButtonBannerView.kt
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeButtonBannerView.kt
+25
-0
home_course_bt_bg_huawei.png
m-home/src/xlzx/res/drawable-xhdpi/home_course_bt_bg_huawei.png
+0
-0
home_dcotor_bt_bg_huawei.png
m-home/src/xlzx/res/drawable-xhdpi/home_dcotor_bt_bg_huawei.png
+0
-0
home_listen_bt_bg_huawei.png
m-home/src/xlzx/res/drawable-xhdpi/home_listen_bt_bg_huawei.png
+0
-0
home_test_bt_bg_hauwei.png
m-home/src/xlzx/res/drawable-xhdpi/home_test_bt_bg_hauwei.png
+0
-0
home_button_banner_view.xml
m-home/src/xlzx/res/layout/home_button_banner_view.xml
+29
-54
No files found.
config.gradle
View file @
5cd15980
ext
{
kotlin_version
=
"1.3.21"
dev_mode
=
false
dev_mode
=
true
ydl_app
=
[
appName
:
"心理咨询壹点灵"
,
...
...
m-consultant/src/xlzx/res/drawable-xhdpi/consultant_assistant_dialog_img.png
0 → 100644
View file @
5cd15980
49.9 KB
m-consultant/src/xlzx/res/drawable/consultant_assistant_dialog_text_bg.xml
0 → 100644
View file @
5cd15980
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:topLeftRadius=
"8dp"
android:bottomLeftRadius=
"8dp"
/>
<gradient
android:angle=
"0"
android:startColor=
"#CC1DA1F2"
android:endColor=
"#CC1DA1F2"
/>
</shape>
\ No newline at end of file
m-consultant/src/
main
/res/drawable-xhdpi/consultant_assistant_dialog_img.png
→
m-consultant/src/
ydl
/res/drawable-xhdpi/consultant_assistant_dialog_img.png
View file @
5cd15980
File moved
m-consultant/src/
main
/res/drawable/consultant_assistant_dialog_text_bg.xml
→
m-consultant/src/
ydl
/res/drawable/consultant_assistant_dialog_text_bg.xml
View file @
5cd15980
File moved
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeButtonBannerView.kt
View file @
5cd15980
package
com.yidianling.home.ui.view
import
android.content.Context
import
android.graphics.Color
import
android.support.v7.widget.RecyclerView
import
android.text.TextUtils
import
android.view.View
import
android.view.ViewGroup
import
android.widget.FrameLayout
import
android.widget.LinearLayout
import
com.ydl.ydlcommon.data.PlatformDataManager
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.home.R
import
com.yidianling.home.event.IHomeBaseEvent
...
...
@@ -56,6 +59,28 @@ class HomeButtonBannerView(private val mContext: Context, private var homeEvent:
// initButtonView()
val
ffrom
=
PlatformDataManager
.
getRam
().
getChannelName
()
if
(!
TextUtils
.
isEmpty
(
ffrom
)
&&
ffrom
.
endsWith
(
"huawei"
))
{
homeModuleButtonBannerFirst
.
background
=
resources
.
getDrawable
(
R
.
drawable
.
home_dcotor_bt_bg_huawei
)
homeModuleButtonBannerSecond
.
background
=
resources
.
getDrawable
(
R
.
drawable
.
home_test_bt_bg_hauwei
)
homeModuleButtonBannerThird
.
background
=
resources
.
getDrawable
(
R
.
drawable
.
home_course_bt_bg_huawei
)
homeModuleButtonBannerFourth
.
background
=
resources
.
getDrawable
(
R
.
drawable
.
home_listen_bt_bg_huawei
)
homeModuleButtonBannerFirstTitle
.
setTextColor
(
Color
.
WHITE
)
tv_first_text
.
setTextColor
(
Color
.
WHITE
)
homeModuleButtonBannerFourthTitle
.
setTextColor
(
Color
.
WHITE
)
tv_second_text
.
setTextColor
(
Color
.
WHITE
)
homeModuleButtonBannerThirdTitle
.
setTextColor
(
Color
.
WHITE
)
tv_third_text
.
setTextColor
(
Color
.
WHITE
)
homeModuleButtonBannerSecondTitle
.
setTextColor
(
Color
.
WHITE
)
tv_fourth_text
.
setTextColor
(
Color
.
WHITE
)
}
homeModuleButtonBannerFirst
.
setOnClickListener
{
homeEvent
?.
reservationExpertsClick
()
}
...
...
m-home/src/xlzx/res/drawable-xhdpi/home_course_bt_bg_huawei.png
0 → 100644
View file @
5cd15980
21.9 KB
m-home/src/xlzx/res/drawable-xhdpi/home_dcotor_bt_bg_huawei.png
0 → 100644
View file @
5cd15980
21.4 KB
m-home/src/xlzx/res/drawable-xhdpi/home_listen_bt_bg_huawei.png
0 → 100644
View file @
5cd15980
21.5 KB
m-home/src/xlzx/res/drawable-xhdpi/home_test_bt_bg_hauwei.png
0 → 100644
View file @
5cd15980
20.8 KB
m-home/src/xlzx/res/layout/home_button_banner_view.xml
View file @
5cd15980
...
...
@@ -12,8 +12,7 @@
android:layout_marginTop=
"8dp"
android:layout_marginRight=
"15dp"
android:gravity=
"center_horizontal"
android:orientation=
"horizontal"
android:paddingBottom=
"20dp"
>
android:orientation=
"horizontal"
>
<RelativeLayout
...
...
@@ -24,22 +23,23 @@
android:layout_marginRight=
"8dp"
android:layout_weight=
"1"
android:background=
"@drawable/home_dcotor_bt_bg"
android:gravity=
"center"
>
android:gravity=
"center
_horizontal
"
>
<TextView
android:id=
"@+id/homeModuleButtonBannerFirstTitle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"7dp"
android:text=
"预约咨询"
android:textColor=
"@color/platform_black"
android:textSize=
"@dimen/platform_dp_16"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_first_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/homeModuleButtonBannerFirstTitle"
android:layout_marginTop=
"2dp"
android:text=
"1W+师资"
android:textColor=
"@color/platform_color_444444"
android:textSize=
"@dimen/platform_dp_11"
/>
...
...
@@ -53,22 +53,23 @@
android:layout_marginRight=
"8dp"
android:layout_weight=
"1"
android:background=
"@drawable/home_listen_bt_bg"
android:gravity=
"center"
>
android:gravity=
"center
_horizontal
"
>
<TextView
android:id=
"@+id/homeModuleButtonBannerFourthTitle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"7dp"
android:text=
"心理测试"
android:textColor=
"@color/platform_black"
android:textSize=
"@dimen/platform_dp_16"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_second_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/homeModuleButtonBannerFourthTitle"
android:layout_marginTop=
"2dp"
android:text=
"专业权威"
android:textColor=
"@color/platform_color_444444"
android:textSize=
"@dimen/platform_dp_11"
/>
...
...
@@ -82,23 +83,24 @@
android:layout_marginRight=
"8dp"
android:layout_weight=
"1"
android:background=
"@drawable/home_course_bt_bg"
android:gravity=
"center"
android:gravity=
"center
_horizontal
"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/homeModuleButtonBannerThirdTitle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"7dp"
android:text=
"心理课堂"
android:textColor=
"@color/platform_black"
android:textSize=
"@dimen/platform_dp_16"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_third_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/homeModuleButtonBannerThirdTitle"
android:layout_marginTop=
"2dp"
android:text=
"学习与成长"
android:textColor=
"@color/platform_color_444444"
android:textSize=
"@dimen/platform_dp_11"
/>
...
...
@@ -109,56 +111,29 @@
android:layout_width=
"0dp"
android:layout_height=
"78dp"
android:layout_weight=
"1"
android:background=
"@drawable/home_test_bt_bg"
>
android:background=
"@drawable/home_test_bt_bg"
android:gravity=
"center_horizontal"
>
<RelativeLayout
<TextView
android:id=
"@+id/homeModuleButtonBannerSecondTitle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginTop=
"7dp"
android:text=
"即时倾诉"
android:textColor=
"@color/platform_black"
android:textSize=
"@dimen/platform_dp_16"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_fourth_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:background=
"@drawable/home_button_first_free_bg"
android:paddingLeft=
"5dp"
android:paddingTop=
"1dp"
android:paddingRight=
"5dp"
android:paddingBottom=
"1dp"
android:visibility=
"gone"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/homeModuleButtonBannerSecondTitle"
android:layout_centerVertical=
"true"
android:layout_gravity=
"center_horizontal"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/homeModuleButtonBannerSecondTitle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"即时倾诉"
android:textColor=
"@color/platform_black"
android:textSize=
"@dimen/platform_dp_16"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/homeModuleButtonBannerSecondTitle"
android:layout_centerVertical=
"true"
android:layout_marginTop=
"2dp"
android:text=
"专业解忧"
android:textColor=
"@color/platform_color_444444"
android:textSize=
"@dimen/platform_dp_11"
/>
</LinearLayout>
</LinearLayout>
android:text=
"专业解忧"
android:textColor=
"@color/platform_color_444444"
android:textSize=
"@dimen/platform_dp_11"
/>
</RelativeLayout>
...
...
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