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
5c7df153
Commit
5c7df153
authored
Nov 15, 2019
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
倾诉模块资源重命名、页面差异化
parent
1591b992
Show whitespace changes
Inline
Side-by-side
Showing
161 changed files
with
534 additions
and
485 deletions
+534
-485
MainActivity.kt
app/src/main/java/com/ydl/component/MainActivity.kt
+10
-9
build.gradle
m-audioim/build.gradle
+4
-1
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+17
-17
AxbConfirmDialog.kt
m-audioim/src/main/java/com/ydl/audioim/widget/AxbConfirmDialog.kt
+2
-2
audioim_head_place_hold_pic.png
m-audioim/src/main/res/drawable-xhdpi/audioim_head_place_hold_pic.png
+0
-0
audioim_ic_close_24dp.png
m-audioim/src/main/res/drawable-xhdpi/audioim_ic_close_24dp.png
+0
-0
audioim_ic_phone.png
m-audioim/src/main/res/drawable-xhdpi/audioim_ic_phone.png
+0
-0
audioim_img_choose_arrow.png
m-audioim/src/main/res/drawable-xhdpi/audioim_img_choose_arrow.png
+0
-0
audioim_img_choose_arrow_unuse.png
m-audioim/src/main/res/drawable-xhdpi/audioim_img_choose_arrow_unuse.png
+0
-0
audioim_img_hands_free.png
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free.png
+0
-0
audioim_img_hands_free_unuse.png
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free_unuse.png
+0
-0
audioim_img_hang_up.png
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hang_up.png
+0
-0
audioim_img_hang_up_unuse.png
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hang_up_unuse.png
+0
-0
audioim_privacy_ico.png
m-audioim/src/main/res/drawable-xhdpi/audioim_privacy_ico.png
+0
-0
audioim_head_background.xml
m-audioim/src/main/res/drawable/audioim_head_background.xml
+0
-0
audioim_privacy_background.xml
m-audioim/src/main/res/drawable/audioim_privacy_background.xml
+0
-0
audioim_toast_view_background.xml
m-audioim/src/main/res/drawable/audioim_toast_view_background.xml
+0
-0
audioim_activity_audio_home.xml
m-audioim/src/main/res/layout/audioim_activity_audio_home.xml
+6
-6
audioim_dialog_axb_confirm.xml
m-audioim/src/main/res/layout/audioim_dialog_axb_confirm.xml
+4
-4
audioim_audio_music_1.mp3
m-audioim/src/main/res/raw/audioim_audio_music_1.mp3
+0
-0
audioim_audio_music_2.mp3
m-audioim/src/main/res/raw/audioim_audio_music_2.mp3
+0
-0
audioim_hand_down_music.mp3
m-audioim/src/main/res/raw/audioim_hand_down_music.mp3
+0
-0
audioim_last_1_min.mp3
m-audioim/src/main/res/raw/audioim_last_1_min.mp3
+0
-0
audioim_last_3_min.mp3
m-audioim/src/main/res/raw/audioim_last_3_min.mp3
+0
-0
audioim_loop_music.mp3
m-audioim/src/main/res/raw/audioim_loop_music.mp3
+0
-0
colors.xml
m-audioim/src/main/res/values/colors.xml
+5
-5
strings.xml
m-audioim/src/main/res/values/strings.xml
+2
-2
build.gradle
m-confide/build.gradle
+8
-12
AndroidManifest.xml
m-confide/src/main/AndroidManifest.xml
+3
-2
ConfideHomeActivity.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
+25
-7
ConfideHomeAdapter.kt
m-confide/src/main/java/com/ydl/confide/home/adapter/ConfideHomeAdapter.kt
+1
-1
IConfideHomeContract.kt
m-confide/src/main/java/com/ydl/confide/home/contract/IConfideHomeContract.kt
+1
-1
ConfideHomeGoodPopupWindow.kt
m-confide/src/main/java/com/ydl/confide/home/popwindow/ConfideHomeGoodPopupWindow.kt
+3
-4
ConfideHomeSexAgePopupWindow.kt
m-confide/src/main/java/com/ydl/confide/home/popwindow/ConfideHomeSexAgePopupWindow.kt
+6
-7
ConfideHomeSortPopupWindow.kt
m-confide/src/main/java/com/ydl/confide/home/popwindow/ConfideHomeSortPopupWindow.kt
+2
-2
ConfideHomeGoodAdapter.kt
m-confide/src/main/java/com/ydl/confide/home/popwindow/adapter/ConfideHomeGoodAdapter.kt
+4
-4
ConfideHomeSortAdapter.kt
m-confide/src/main/java/com/ydl/confide/home/popwindow/adapter/ConfideHomeSortAdapter.kt
+3
-4
ConfideHomePresenterImpl.kt
m-confide/src/main/java/com/ydl/confide/home/presenter/ConfideHomePresenterImpl.kt
+20
-8
ConfideHomeBannerSection.kt
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeBannerSection.kt
+1
-1
ConfideHomeCategorySection.kt
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeCategorySection.kt
+1
-1
ConfideHomeFilterSection.kt
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeFilterSection.kt
+1
-1
ConfideHomeFooterSection.kt
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeFooterSection.kt
+1
-1
ConfideHomeRecommendExpertSection.kt
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeRecommendExpertSection.kt
+1
-1
ConfideHomeUtils.kt
m-confide/src/main/java/com/ydl/confide/home/util/ConfideHomeUtils.kt
+6
-6
ConfideHomeBannerView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeBannerView.kt
+3
-3
ConfideHomeCategoryItemView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeCategoryItemView.kt
+4
-4
ConfideHomeCategoryView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeCategoryView.kt
+3
-3
ConfideHomeFilterView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeFilterView.kt
+3
-3
ConfideHomeFooterView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeFooterView.kt
+2
-2
ConfideHomeHeadView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeHeadView.kt
+5
-5
ConfideHomeListenAndFoundItemView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeListenAndFoundItemView.kt
+11
-11
ConfideHomeListenAndFoundView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeListenAndFoundView.kt
+2
-2
ConfideHomeRecentView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecentView.kt
+4
-4
ConfideHomeRecommendExpertItemView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecommendExpertItemView.kt
+10
-10
ConfideHomeRecommendExpertView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecommendExpertView.kt
+2
-2
ConfideHomeRecommendView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecommendView.kt
+14
-14
ConfidePlayerFloatView.java
m-confide/src/main/java/com/ydl/confide/home/widget/ConfidePlayerFloatView.java
+5
-5
confide_activity_open_down.xml
m-confide/src/main/res/anim/confide_activity_open_down.xml
+0
-0
confide_play_anim.xml
m-confide/src/main/res/anim/confide_play_anim.xml
+0
-0
confide_color_filter_selector.xml
m-confide/src/main/res/color/confide_color_filter_selector.xml
+2
-1
confide_back.png
m-confide/src/main/res/drawable-xhdpi/confide_back.png
+0
-0
confide_downgrey.png
m-confide/src/main/res/drawable-xhdpi/confide_downgrey.png
+0
-0
confide_float_head.png
m-confide/src/main/res/drawable-xhdpi/confide_float_head.png
+0
-0
confide_ic_close_orange_18dp.png
m-confide/src/main/res/drawable-xhdpi/confide_ic_close_orange_18dp.png
+0
-0
confide_ico_info.png
m-confide/src/main/res/drawable-xhdpi/confide_ico_info.png
+0
-0
confide_line_1.png
m-confide/src/main/res/drawable-xhdpi/confide_line_1.png
+0
-0
confide_line_2.png
m-confide/src/main/res/drawable-xhdpi/confide_line_2.png
+0
-0
confide_line_3.png
m-confide/src/main/res/drawable-xhdpi/confide_line_3.png
+0
-0
confide_line_4.png
m-confide/src/main/res/drawable-xhdpi/confide_line_4.png
+0
-0
confide_listen.png
m-confide/src/main/res/drawable-xhdpi/confide_listen.png
+0
-0
confide_listen_bg.png
m-confide/src/main/res/drawable-xhdpi/confide_listen_bg.png
+0
-0
confide_listen_disc.png
m-confide/src/main/res/drawable-xhdpi/confide_listen_disc.png
+0
-0
confide_listen_mask.png
m-confide/src/main/res/drawable-xhdpi/confide_listen_mask.png
+0
-0
confide_listen_play.png
m-confide/src/main/res/drawable-xhdpi/confide_listen_play.png
+0
-0
confide_mine.png
m-confide/src/main/res/drawable-xhdpi/confide_mine.png
+0
-0
confide_more.png
m-confide/src/main/res/drawable-xhdpi/confide_more.png
+0
-0
confide_new_female.png
m-confide/src/main/res/drawable-xhdpi/confide_new_female.png
+0
-0
confide_new_male.png
m-confide/src/main/res/drawable-xhdpi/confide_new_male.png
+0
-0
confide_new_play.png
m-confide/src/main/res/drawable-xhdpi/confide_new_play.png
+0
-0
confide_paused.png
m-confide/src/main/res/drawable-xhdpi/confide_paused.png
+0
-0
confide_play_close.png
m-confide/src/main/res/drawable-xhdpi/confide_play_close.png
+0
-0
confide_play_pause.png
m-confide/src/main/res/drawable-xhdpi/confide_play_pause.png
+0
-0
confide_play_stop.png
m-confide/src/main/res/drawable-xhdpi/confide_play_stop.png
+0
-0
confide_playing.png
m-confide/src/main/res/drawable-xhdpi/confide_playing.png
+0
-0
confide_pop_dongtai.png
m-confide/src/main/res/drawable-xhdpi/confide_pop_dongtai.png
+0
-0
confide_recommend.png
m-confide/src/main/res/drawable-xhdpi/confide_recommend.png
+0
-0
confide_sond_play.png
m-confide/src/main/res/drawable-xhdpi/confide_sond_play.png
+0
-0
confide_state_call.png
m-confide/src/main/res/drawable-xhdpi/confide_state_call.png
+0
-0
confide_state_offline.png
m-confide/src/main/res/drawable-xhdpi/confide_state_offline.png
+0
-0
confide_state_stop.png
m-confide/src/main/res/drawable-xhdpi/confide_state_stop.png
+0
-0
confide_voice_1.png
m-confide/src/main/res/drawable-xhdpi/confide_voice_1.png
+0
-0
confide_voice_2.png
m-confide/src/main/res/drawable-xhdpi/confide_voice_2.png
+0
-0
confide_voice_3.png
m-confide/src/main/res/drawable-xhdpi/confide_voice_3.png
+0
-0
confide_zuijin.png
m-confide/src/main/res/drawable-xhdpi/confide_zuijin.png
+0
-0
confide_bg_color_666666.xml
m-confide/src/main/res/drawable/confide_bg_color_666666.xml
+0
-0
confide_bg_color_ff5b05.xml
m-confide/src/main/res/drawable/confide_bg_color_ff5b05.xml
+1
-1
confide_bg_color_ff8f38.xml
m-confide/src/main/res/drawable/confide_bg_color_ff8f38.xml
+0
-0
confide_bg_main_color.xml
m-confide/src/main/res/drawable/confide_bg_main_color.xml
+0
-0
confide_bg_radius_line_gray_20.xml
m-confide/src/main/res/drawable/confide_bg_radius_line_gray_20.xml
+0
-0
confide_bg_sound_selected.xml
m-confide/src/main/res/drawable/confide_bg_sound_selected.xml
+1
-1
confide_bg_sound_unselect.xml
m-confide/src/main/res/drawable/confide_bg_sound_unselect.xml
+0
-0
confide_bg_tag.xml
m-confide/src/main/res/drawable/confide_bg_tag.xml
+0
-0
confide_card_consult_bg.xml
m-confide/src/main/res/drawable/confide_card_consult_bg.xml
+0
-0
confide_common_bg.xml
m-confide/src/main/res/drawable/confide_common_bg.xml
+3
-2
confide_confidehome_bg.xml
m-confide/src/main/res/drawable/confide_confidehome_bg.xml
+3
-2
confide_consult_btn_bg.xml
m-confide/src/main/res/drawable/confide_consult_btn_bg.xml
+0
-0
confide_filter_btn_bg.xml
m-confide/src/main/res/drawable/confide_filter_btn_bg.xml
+4
-3
confide_filter_reset_btn_bg.xml
m-confide/src/main/res/drawable/confide_filter_reset_btn_bg.xml
+2
-1
confide_filter_select_nor.xml
m-confide/src/main/res/drawable/confide_filter_select_nor.xml
+0
-0
confide_filter_select_sel.xml
m-confide/src/main/res/drawable/confide_filter_select_sel.xml
+3
-2
confide_recent_btn_on_bg.xml
m-confide/src/main/res/drawable/confide_recent_btn_on_bg.xml
+2
-1
confide_recommend_expert_bg.xml
m-confide/src/main/res/drawable/confide_recommend_expert_bg.xml
+0
-0
confide_recommend_expert_btn_bg.xml
m-confide/src/main/res/drawable/confide_recommend_expert_btn_bg.xml
+0
-0
confide_recommend_expert_line_bg.xml
m-confide/src/main/res/drawable/confide_recommend_expert_line_bg.xml
+2
-1
confide_recommend_expert_title_bg.xml
m-confide/src/main/res/drawable/confide_recommend_expert_title_bg.xml
+0
-0
confide_shape_alpha_left.xml
m-confide/src/main/res/drawable/confide_shape_alpha_left.xml
+0
-0
confide_shape_alpha_right.xml
m-confide/src/main/res/drawable/confide_shape_alpha_right.xml
+0
-0
confide_shape_circle_white_bg.xml
m-confide/src/main/res/drawable/confide_shape_circle_white_bg.xml
+0
-0
confide_shape_gray_round.xml
m-confide/src/main/res/drawable/confide_shape_gray_round.xml
+1
-1
confide_show_online_tv.xml
m-confide/src/main/res/drawable/confide_show_online_tv.xml
+0
-0
confide_show_unonline_tv.xml
m-confide/src/main/res/drawable/confide_show_unonline_tv.xml
+0
-0
confide_text_select_green_grey.xml
m-confide/src/main/res/drawable/confide_text_select_green_grey.xml
+2
-1
confide_banner.xml
m-confide/src/main/res/layout/confide_banner.xml
+2
-2
confide_banner_view.xml
m-confide/src/main/res/layout/confide_banner_view.xml
+4
-4
confide_category_view.xml
m-confide/src/main/res/layout/confide_category_view.xml
+6
-6
confide_empty.xml
m-confide/src/main/res/layout/confide_empty.xml
+0
-0
confide_footer.xml
m-confide/src/main/res/layout/confide_footer.xml
+1
-1
confide_fragment_dialog_phone_call.xml
m-confide/src/main/res/layout/confide_fragment_dialog_phone_call.xml
+9
-9
confide_good_item.xml
m-confide/src/main/res/layout/confide_good_item.xml
+3
-3
confide_good_popup_window.xml
m-confide/src/main/res/layout/confide_good_popup_window.xml
+9
-9
confide_home_activity.xml
m-confide/src/main/res/layout/confide_home_activity.xml
+26
-19
confide_item_category.xml
m-confide/src/main/res/layout/confide_item_category.xml
+4
-4
confide_item_header.xml
m-confide/src/main/res/layout/confide_item_header.xml
+2
-2
confide_listen_and_found_item_view.xml
m-confide/src/main/res/layout/confide_listen_and_found_item_view.xml
+25
-25
confide_playing_float_btn.xml
m-confide/src/main/res/layout/confide_playing_float_btn.xml
+3
-3
confide_recent_view.xml
m-confide/src/main/res/layout/confide_recent_view.xml
+3
-3
confide_recommend_expert_head.xml
m-confide/src/main/res/layout/confide_recommend_expert_head.xml
+1
-1
confide_recommend_expert_item_view.xml
m-confide/src/main/res/layout/confide_recommend_expert_item_view.xml
+36
-36
confide_recommend_expert_view.xml
m-confide/src/main/res/layout/confide_recommend_expert_view.xml
+1
-1
confide_recommend_view.xml
m-confide/src/main/res/layout/confide_recommend_view.xml
+43
-43
confide_sexage_popup_window.xml
m-confide/src/main/res/layout/confide_sexage_popup_window.xml
+14
-14
confide_sort_item.xml
m-confide/src/main/res/layout/confide_sort_item.xml
+1
-1
confide_sort_popup_window.xml
m-confide/src/main/res/layout/confide_sort_popup_window.xml
+1
-1
confide_title_bar.xml
m-confide/src/main/res/layout/confide_title_bar.xml
+9
-10
confide_view_empty.xml
m-confide/src/main/res/layout/confide_view_empty.xml
+0
-0
color_confidehome.xml
m-confide/src/main/res/layouts/confidehome/values/color_confidehome.xml
+0
-7
string_confide.xml
m-confide/src/main/res/layouts/confidehome/values/string_confide.xml
+0
-5
confide_coupon_rule.png
m-confide/src/main/res/mipmap-xhdpi/confide_coupon_rule.png
+0
-0
confide_coupon_selected.png
m-confide/src/main/res/mipmap-xhdpi/confide_coupon_selected.png
+0
-0
confide_coupon_unselected.png
m-confide/src/main/res/mipmap-xhdpi/confide_coupon_unselected.png
+0
-0
confide_img_popupwindow_close.png
m-confide/src/main/res/mipmap-xhdpi/confide_img_popupwindow_close.png
+0
-0
confide_item_coupon_background.png
m-confide/src/main/res/mipmap-xhdpi/confide_item_coupon_background.png
+0
-0
confide_item_unuse_coupon_background.png
m-confide/src/main/res/mipmap-xhdpi/confide_item_unuse_coupon_background.png
+0
-0
colors.xml
m-confide/src/main/res/values/colors.xml
+5
-2
dimens.xml
m-confide/src/main/res/values/dimens.xml
+78
-78
ids.xml
m-confide/src/main/res/values/ids.xml
+0
-0
strings.xml
m-confide/src/main/res/values/strings.xml
+2
-1
styles.xml
m-confide/src/main/res/values/styles.xml
+14
-0
confide_ic_arrow_drop_down_green_18dp.png
m-confide/src/xlzx/res/drawable-xhdpi/confide_ic_arrow_drop_down_green_18dp.png
+0
-0
colors.xml
m-confide/src/xlzx/res/values/colors.xml
+1
-1
confide_ic_arrow_drop_down_green_18dp.png
m-confide/src/ydl/res/drawable-xhdpi/confide_ic_arrow_drop_down_green_18dp.png
+0
-0
No files found.
app/src/main/java/com/ydl/component/MainActivity.kt
View file @
5c7df153
...
@@ -24,6 +24,7 @@ import com.ydl.ydlcommon.modular.ModularServiceManager
...
@@ -24,6 +24,7 @@ import com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.mvp.lce.BaseLceActivity
import
com.ydl.ydlcommon.mvp.lce.BaseLceActivity
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.consultant.ExpertSearchActivity.Companion.HOT_SEARCH_DOCTOR_NAME
import
com.yidianling.fm.api.service.IFMService
import
com.yidianling.fm.api.service.IFMService
import
com.yidianling.tests.home.TestHomeActivity
import
com.yidianling.tests.home.TestHomeActivity
import
kotlinx.android.synthetic.main.activity_main.*
import
kotlinx.android.synthetic.main.activity_main.*
...
@@ -76,15 +77,15 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
...
@@ -76,15 +77,15 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
.
withBoolean
(
"isFromGuide"
,
true
)
.
withBoolean
(
"isFromGuide"
,
true
)
.
navigation
()
.
navigation
()
}
}
//
bt_to_consultant.setOnClickListener {
bt_to_consultant
.
setOnClickListener
{
//
ARouter.getInstance()
ARouter
.
getInstance
()
//
.build("/consult/hot_search")
.
build
(
"/consult/hot_search"
)
//
.withString(
.
withString
(
//
HOT_SEARCH_DOCTOR_NAME,
HOT_SEARCH_DOCTOR_NAME
,
//
this.resources?.getString(R.string.platform_search_hint)
this
.
resources
?.
getString
(
R
.
string
.
platform_search_hint
)
//
)
)
//
.navigation()
.
navigation
()
//
}
}
bt_to_music
.
setOnClickListener
{
bt_to_music
.
setOnClickListener
{
startActivity
(
Intent
(
this
,
MusicPlayActivity
::
class
.
java
))
startActivity
(
Intent
(
this
,
MusicPlayActivity
::
class
.
java
))
}
}
...
...
m-audioim/build.gradle
View file @
5c7df153
...
@@ -8,7 +8,7 @@ apply plugin: 'plugin.resTools' // 资源重命名插件
...
@@ -8,7 +8,7 @@ apply plugin: 'plugin.resTools' // 资源重命名插件
// 配置资源重命名插件
// 配置资源重命名插件
resConfig
{
resConfig
{
new_prefix
=
'audioim_'
// 资源前缀
new_prefix
=
'audioim_'
// 资源前缀
old_prefix
=
'
audio_home_
'
// 老前缀,可为''空字符串
old_prefix
=
''
// 老前缀,可为''空字符串
}
}
kapt
{
kapt
{
...
@@ -37,6 +37,9 @@ android {
...
@@ -37,6 +37,9 @@ android {
flavorDimensions
"versionCode"
flavorDimensions
"versionCode"
}
}
//前缀的名字
resourcePrefix
"audioim_"
buildTypes
{
buildTypes
{
release
{
release
{
minifyEnabled
false
minifyEnabled
false
...
...
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
5c7df153
...
@@ -62,7 +62,7 @@ import io.reactivex.Observable
...
@@ -62,7 +62,7 @@ import io.reactivex.Observable
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.disposables.Disposable
import
io.reactivex.disposables.Disposable
import
io.reactivex.schedulers.Schedulers
import
io.reactivex.schedulers.Schedulers
import
kotlinx.android.synthetic.main.activity_audio_home.*
import
kotlinx.android.synthetic.main.a
udioim_a
ctivity_audio_home.*
import
java.util.concurrent.TimeUnit
import
java.util.concurrent.TimeUnit
...
@@ -294,7 +294,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -294,7 +294,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
}
}
override
fun
layoutResId
():
Int
{
override
fun
layoutResId
():
Int
{
return
R
.
layout
.
activity_audio_home
return
R
.
layout
.
a
udioim_a
ctivity_audio_home
}
}
override
fun
initDataAndEvent
()
{
override
fun
initDataAndEvent
()
{
...
@@ -315,7 +315,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -315,7 +315,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
}
}
private
fun
setWindowStatusBarColor
()
{
private
fun
setWindowStatusBarColor
()
{
StatusBarUtils
.
setWindowStatusBarColor
(
this
,
R
.
color
.
color_40353535
)
StatusBarUtils
.
setWindowStatusBarColor
(
this
,
R
.
color
.
audioim_
color_40353535
)
}
}
@SuppressLint
(
"InvalidWakeLockTag"
)
@SuppressLint
(
"InvalidWakeLockTag"
)
...
@@ -366,8 +366,8 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -366,8 +366,8 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
if
(!
TextUtils
.
isEmpty
(
expertHeadUrl
))
{
if
(!
TextUtils
.
isEmpty
(
expertHeadUrl
))
{
var
option
=
SimpleImageOpConfiger
()
var
option
=
SimpleImageOpConfiger
()
option
.
errorPic
=
R
.
drawable
.
head_place_hold_pic
option
.
errorPic
=
R
.
drawable
.
audioim_
head_place_hold_pic
option
.
loadingPic
=
R
.
drawable
.
head_place_hold_pic
option
.
loadingPic
=
R
.
drawable
.
audioim_
head_place_hold_pic
option
.
transform
=
0
option
.
transform
=
0
YDLImageCacheManager
.
showImage
(
this
,
expertHeadUrl
,
iv_head
,
option
)
YDLImageCacheManager
.
showImage
(
this
,
expertHeadUrl
,
iv_head
,
option
)
}
}
...
@@ -388,10 +388,10 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -388,10 +388,10 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
iv_hands_free
.
setOnClickListener
{
iv_hands_free
.
setOnClickListener
{
if
(
iv_hands_free
.
isSelected
)
{
if
(
iv_hands_free
.
isSelected
)
{
iv_hands_free
.
isSelected
=
false
iv_hands_free
.
isSelected
=
false
iv_hands_free
.
setImageResource
(
R
.
drawable
.
audio
_home
_img_hands_free_unuse
)
iv_hands_free
.
setImageResource
(
R
.
drawable
.
audio
im
_img_hands_free_unuse
)
}
else
{
}
else
{
iv_hands_free
.
isSelected
=
true
iv_hands_free
.
isSelected
=
true
iv_hands_free
.
setImageResource
(
R
.
drawable
.
audio
_home
_img_hands_free
)
iv_hands_free
.
setImageResource
(
R
.
drawable
.
audio
im
_img_hands_free
)
}
}
//已经接通
//已经接通
...
@@ -501,7 +501,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -501,7 +501,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
}
else
if
(
permission
.
shouldShowRequestPermissionRationale
)
{
}
else
if
(
permission
.
shouldShowRequestPermissionRationale
)
{
requestPermission
()
requestPermission
()
}
else
{
}
else
{
ToastUtil
.
toastLong
(
this
,
getString
(
R
.
string
.
need_storage_permission_hint
))
ToastUtil
.
toastLong
(
this
,
getString
(
R
.
string
.
audioim_
need_storage_permission_hint
))
val
intent
=
Intent
(
Settings
.
ACTION_APPLICATION_DETAILS_SETTINGS
)
val
intent
=
Intent
(
Settings
.
ACTION_APPLICATION_DETAILS_SETTINGS
)
val
uri
=
Uri
.
fromParts
(
"package"
,
packageName
,
null
)
val
uri
=
Uri
.
fromParts
(
"package"
,
packageName
,
null
)
intent
.
data
=
uri
intent
.
data
=
uri
...
@@ -672,7 +672,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -672,7 +672,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
private
fun
waittingStatus
()
{
private
fun
waittingStatus
()
{
//挂断按钮可点击
//挂断按钮可点击
iv_hang_up
.
isEnabled
=
true
iv_hang_up
.
isEnabled
=
true
iv_hang_up
.
setImageResource
(
R
.
drawable
.
audio
_home
_img_hang_up
)
iv_hang_up
.
setImageResource
(
R
.
drawable
.
audio
im
_img_hang_up
)
if
(!
isConnectSuccess
)
{
if
(!
isConnectSuccess
)
{
//页面等待文案调整
//页面等待文案调整
tv_waiting
.
visibility
=
View
.
GONE
tv_waiting
.
visibility
=
View
.
GONE
...
@@ -682,7 +682,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -682,7 +682,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
//切换线路按钮可见
//切换线路按钮可见
tv_change_route
.
isEnabled
=
true
tv_change_route
.
isEnabled
=
true
tv_change_route
.
setTextColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
white
))
tv_change_route
.
setTextColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
white
))
tv_change_route
.
setCompoundDrawablesWithIntrinsicBounds
(
null
,
null
,
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
audio
_home
_img_choose_arrow
),
null
)
tv_change_route
.
setCompoundDrawablesWithIntrinsicBounds
(
null
,
null
,
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
audio
im
_img_choose_arrow
),
null
)
}
}
/**
/**
...
@@ -732,9 +732,9 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -732,9 +732,9 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
mPlayer
=
AudioPlayer
(
this
)
mPlayer
=
AudioPlayer
(
this
)
}
}
if
((
Math
.
random
()
*
10
+
1
).
toInt
()
>=
5
)
{
if
((
Math
.
random
()
*
10
+
1
).
toInt
()
>=
5
)
{
mPlayer
!!
.
setTwoDataAndStart
(
R
.
raw
.
audio
_music_1
,
R
.
raw
.
loop_music
)
mPlayer
!!
.
setTwoDataAndStart
(
R
.
raw
.
audio
im_audio_music_1
,
R
.
raw
.
audioim_
loop_music
)
}
else
{
}
else
{
mPlayer
!!
.
setTwoDataAndStart
(
R
.
raw
.
audio
_music_2
,
R
.
raw
.
loop_music
)
mPlayer
!!
.
setTwoDataAndStart
(
R
.
raw
.
audio
im_audio_music_2
,
R
.
raw
.
audioim_
loop_music
)
}
}
}
}
...
@@ -745,7 +745,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -745,7 +745,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
if
(
mPlayer
==
null
)
{
if
(
mPlayer
==
null
)
{
mPlayer
=
AudioPlayer
(
this
)
mPlayer
=
AudioPlayer
(
this
)
}
}
mPlayer
!!
.
setDataSource
(
R
.
raw
.
hand_down_music
)
mPlayer
!!
.
setDataSource
(
R
.
raw
.
audioim_
hand_down_music
)
mPlayer
!!
.
switchPlayType
(
iv_hands_free
.
isSelected
)
mPlayer
!!
.
switchPlayType
(
iv_hands_free
.
isSelected
)
mPlayer
!!
.
setCompletionListener
(
MediaPlayer
.
OnCompletionListener
{
mPlayer
!!
.
setCompletionListener
(
MediaPlayer
.
OnCompletionListener
{
//通话剩余时间不足60s时,默认
//通话剩余时间不足60s时,默认
...
@@ -816,8 +816,8 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -816,8 +816,8 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
if
(
localRemainTime
!!
<=
60
)
{
if
(
localRemainTime
!!
<=
60
)
{
if
(
tv_change_route
.
isEnabled
)
{
if
(
tv_change_route
.
isEnabled
)
{
tv_change_route
.
isEnabled
=
false
tv_change_route
.
isEnabled
=
false
tv_change_route
.
setTextColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
color_50ffffff
))
tv_change_route
.
setTextColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
audioim_
color_50ffffff
))
tv_change_route
.
setCompoundDrawablesWithIntrinsicBounds
(
null
,
null
,
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
audio
_home
_img_choose_arrow_unuse
),
null
)
tv_change_route
.
setCompoundDrawablesWithIntrinsicBounds
(
null
,
null
,
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
audio
im
_img_choose_arrow_unuse
),
null
)
}
}
}
}
tv_remain_time
.
text
=
DateUtils
.
formatTime
(
localRemainTime
.
toString
())
tv_remain_time
.
text
=
DateUtils
.
formatTime
(
localRemainTime
.
toString
())
...
@@ -840,9 +840,9 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
...
@@ -840,9 +840,9 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
mPlayer
=
AudioPlayer
(
this
)
mPlayer
=
AudioPlayer
(
this
)
}
}
if
(
3
==
min
)
{
if
(
3
==
min
)
{
mPlayer
!!
.
setDataSource
(
R
.
raw
.
last_3_min
)
mPlayer
!!
.
setDataSource
(
R
.
raw
.
audioim_
last_3_min
)
}
else
{
}
else
{
mPlayer
!!
.
setDataSource
(
R
.
raw
.
last_1_min
)
mPlayer
!!
.
setDataSource
(
R
.
raw
.
audioim_
last_1_min
)
}
}
mPlayer
!!
.
switchPlayType
(
iv_hands_free
.
isSelected
)
mPlayer
!!
.
switchPlayType
(
iv_hands_free
.
isSelected
)
mPlayer
!!
.
start
(
false
,
false
)
mPlayer
!!
.
start
(
false
,
false
)
...
...
m-audioim/src/main/java/com/ydl/audioim/widget/AxbConfirmDialog.kt
View file @
5c7df153
...
@@ -5,7 +5,7 @@ import android.app.Dialog
...
@@ -5,7 +5,7 @@ import android.app.Dialog
import
android.graphics.drawable.ColorDrawable
import
android.graphics.drawable.ColorDrawable
import
android.os.Bundle
import
android.os.Bundle
import
com.ydl.audioim.R
import
com.ydl.audioim.R
import
kotlinx.android.synthetic.main.dialog_axb_confirm.*
import
kotlinx.android.synthetic.main.
audioim_
dialog_axb_confirm.*
/**
/**
* @author jiucheng
* @author jiucheng
...
@@ -25,7 +25,7 @@ class AxbConfirmDialog : Dialog {
...
@@ -25,7 +25,7 @@ class AxbConfirmDialog : Dialog {
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
dialog_axb_confirm
)
setContentView
(
R
.
layout
.
audioim_
dialog_axb_confirm
)
setCanceledOnTouchOutside
(
false
)
setCanceledOnTouchOutside
(
false
)
window
.
setBackgroundDrawable
(
ColorDrawable
())
window
.
setBackgroundDrawable
(
ColorDrawable
())
ic_close
.
setOnClickListener
{
ic_close
.
setOnClickListener
{
...
...
m-audioim/src/main/res/drawable-xhdpi/head_place_hold_pic.png
→
m-audioim/src/main/res/drawable-xhdpi/
audioim_
head_place_hold_pic.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable-xhdpi/audio
_home
_ic_close_24dp.png
→
m-audioim/src/main/res/drawable-xhdpi/audio
im
_ic_close_24dp.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable-xhdpi/audio
_home
_ic_phone.png
→
m-audioim/src/main/res/drawable-xhdpi/audio
im
_ic_phone.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable-xhdpi/audio
_home
_img_choose_arrow.png
→
m-audioim/src/main/res/drawable-xhdpi/audio
im
_img_choose_arrow.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable-xhdpi/audio
_home
_img_choose_arrow_unuse.png
→
m-audioim/src/main/res/drawable-xhdpi/audio
im
_img_choose_arrow_unuse.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable-xhdpi/audio
_home
_img_hands_free.png
→
m-audioim/src/main/res/drawable-xhdpi/audio
im
_img_hands_free.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable-xhdpi/audio
_home
_img_hands_free_unuse.png
→
m-audioim/src/main/res/drawable-xhdpi/audio
im
_img_hands_free_unuse.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable-xhdpi/audio
_home
_img_hang_up.png
→
m-audioim/src/main/res/drawable-xhdpi/audio
im
_img_hang_up.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable-xhdpi/audio
_home
_img_hang_up_unuse.png
→
m-audioim/src/main/res/drawable-xhdpi/audio
im
_img_hang_up_unuse.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable-xhdpi/audio
_home
_privacy_ico.png
→
m-audioim/src/main/res/drawable-xhdpi/audio
im
_privacy_ico.png
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable/audio
_home
_head_background.xml
→
m-audioim/src/main/res/drawable/audio
im
_head_background.xml
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable/audio
_home
_privacy_background.xml
→
m-audioim/src/main/res/drawable/audio
im
_privacy_background.xml
View file @
5c7df153
File moved
m-audioim/src/main/res/drawable/audio
_home
_toast_view_background.xml
→
m-audioim/src/main/res/drawable/audio
im
_toast_view_background.xml
View file @
5c7df153
File moved
m-audioim/src/main/res/layout/activity_audio_home.xml
→
m-audioim/src/main/res/layout/a
udioim_a
ctivity_audio_home.xml
View file @
5c7df153
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
android:layout_marginTop=
"25dp"
android:layout_marginTop=
"25dp"
android:layout_marginRight=
"10dp"
android:layout_marginRight=
"10dp"
android:background=
"?android:attr/selectableItemBackground"
android:background=
"?android:attr/selectableItemBackground"
android:drawableRight=
"@drawable/audio
_home_img_choose_arrow_unuse"
android:drawableRight=
"@drawable/audio
im_img_choose_arrow_unuse"
android:drawablePadding=
"6dp"
android:drawablePadding=
"6dp"
android:padding=
"5dp"
android:padding=
"5dp"
android:text=
"切换至传统电话"
android:text=
"切换至传统电话"
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
android:layout_width=
"126dp"
android:layout_width=
"126dp"
android:layout_height=
"126dp"
android:layout_height=
"126dp"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:background=
"@drawable/audio
_home_head_background"
/>
android:background=
"@drawable/audio
im_head_background"
/>
<ImageView
<ImageView
android:id=
"@+id/iv_head"
android:id=
"@+id/iv_head"
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
android:layout_height=
"120dp"
android:layout_height=
"120dp"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:scaleType=
"centerCrop"
android:scaleType=
"centerCrop"
android:src=
"@drawable/
head_place_hold_pic"
/>
android:src=
"@drawable/
audioim_head_place_hold_pic"
/>
</RelativeLayout>
</RelativeLayout>
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
android:layout_height=
"66dp"
android:layout_height=
"66dp"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"1dp"
android:layout_marginTop=
"1dp"
android:src=
"@drawable/audio
_home_img_hang_up_unuse"
android:src=
"@drawable/audio
im_img_hang_up_unuse"
android:visibility=
"visible"
/>
android:visibility=
"visible"
/>
<TextView
<TextView
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
android:layout_width=
"66dp"
android:layout_width=
"66dp"
android:layout_height=
"66dp"
android:layout_height=
"66dp"
android:layout_marginTop=
"1dp"
android:layout_marginTop=
"1dp"
android:src=
"@drawable/audio
_home_img_hands_free_unuse"
/>
android:src=
"@drawable/audio
im_img_hands_free_unuse"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
android:layout_below=
"@+id/tv_tips"
android:layout_below=
"@+id/tv_tips"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"34dp"
android:layout_marginTop=
"34dp"
android:background=
"@drawable/audio
_home_toast_view_background"
android:background=
"@drawable/audio
im_toast_view_background"
android:elevation=
"6dp"
android:elevation=
"6dp"
android:paddingLeft=
"11dp"
android:paddingLeft=
"11dp"
android:paddingTop=
"4dp"
android:paddingTop=
"4dp"
...
...
m-audioim/src/main/res/layout/dialog_axb_confirm.xml
→
m-audioim/src/main/res/layout/
audioim_
dialog_axb_confirm.xml
View file @
5c7df153
...
@@ -20,13 +20,13 @@
...
@@ -20,13 +20,13 @@
android:layout_marginTop=
"7dp"
android:layout_marginTop=
"7dp"
android:layout_marginRight=
"10dp"
android:layout_marginRight=
"10dp"
android:padding=
"5dp"
android:padding=
"5dp"
android:src=
"@drawable/audio
_home_ic_close_24dp"
/>
android:src=
"@drawable/audio
im_ic_close_24dp"
/>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"6dp"
android:layout_marginTop=
"6dp"
android:src=
"@drawable/audio
_home_privacy_ico"
/>
android:src=
"@drawable/audio
im_privacy_ico"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -87,14 +87,14 @@
...
@@ -87,14 +87,14 @@
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginTop=
"11dp"
android:layout_marginTop=
"11dp"
android:layout_marginBottom=
"20dp"
android:layout_marginBottom=
"20dp"
android:background=
"@drawable/audio
_home_privacy_background"
>
android:background=
"@drawable/audio
im_privacy_background"
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:drawableLeft=
"@drawable/audio
_home_ic_phone"
android:drawableLeft=
"@drawable/audio
im_ic_phone"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:text=
"呼叫"
android:text=
"呼叫"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
...
...
m-audioim/src/main/res/raw/audio_music_1.mp3
→
m-audioim/src/main/res/raw/audio
im_audio
_music_1.mp3
View file @
5c7df153
File moved
m-audioim/src/main/res/raw/audio_music_2.mp3
→
m-audioim/src/main/res/raw/audio
im_audio
_music_2.mp3
View file @
5c7df153
File moved
m-audioim/src/main/res/raw/hand_down_music.mp3
→
m-audioim/src/main/res/raw/
audioim_
hand_down_music.mp3
View file @
5c7df153
File moved
m-audioim/src/main/res/raw/last_1_min.mp3
→
m-audioim/src/main/res/raw/
audioim_
last_1_min.mp3
View file @
5c7df153
File moved
m-audioim/src/main/res/raw/last_3_min.mp3
→
m-audioim/src/main/res/raw/
audioim_
last_3_min.mp3
View file @
5c7df153
File moved
m-audioim/src/main/res/raw/loop_music.mp3
→
m-audioim/src/main/res/raw/
audioim_
loop_music.mp3
View file @
5c7df153
File moved
m-audioim/src/main/res/values/colors.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources>
<color
name=
"
color_40353535"
>
#66353535
</color>
<color
name=
"
audioim_color_40353535"
>
#66353535
</color>
<color
name=
"
color_80353535"
>
#CC353535
</color>
<color
name=
"
audioim_color_80353535"
>
#CC353535
</color>
<color
name=
"
color_50ffffff"
>
#B3ffffff
</color>
<color
name=
"
audioim_color_50ffffff"
>
#B3ffffff
</color>
<color
name=
"
color_30FFFFFF"
>
#4DFFFFFF
</color>
<color
name=
"
audioim_color_30FFFFFF"
>
#4DFFFFFF
</color>
<color
name=
"
color_70FFFFFF"
>
#B3FFFFFF
</color>
<color
name=
"
audioim_color_70FFFFFF"
>
#B3FFFFFF
</color>
</resources>
</resources>
m-audioim/src/main/res/values/strings.xml
View file @
5c7df153
<resources>
<resources>
<string
name=
"a
pp_name"
>
av
</string>
<string
name=
"a
udioim_app_name"
>
av
</string>
<string
name=
"
need_storage_permission_hint"
>
App正常工作需要内部存储使用权限,请开启
</string>
<string
name=
"
audioim_need_storage_permission_hint"
>
App正常工作需要内部存储使用权限,请开启
</string>
</resources>
</resources>
m-confide/build.gradle
View file @
5c7df153
...
@@ -2,6 +2,14 @@ apply plugin: 'com.android.library'
...
@@ -2,6 +2,14 @@ apply plugin: 'com.android.library'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'kotlin-kapt'
apply
plugin:
'kotlin-kapt'
apply
plugin:
'plugin.resTools'
// 资源重命名插件
// 配置资源重命名插件
resConfig
{
new_prefix
=
'confide_'
// 资源前缀
old_prefix
=
''
// 老前缀,可为''空字符串
}
kapt
{
kapt
{
arguments
{
arguments
{
arg
(
"AROUTER_MODULE_NAME"
,
project
.
getName
())
arg
(
"AROUTER_MODULE_NAME"
,
project
.
getName
())
...
@@ -54,18 +62,6 @@ android {
...
@@ -54,18 +62,6 @@ android {
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
}
sourceSets
{
main
{
res
.
srcDirs
=
[
'src/main/res/layouts/confidehome'
,
'src/main/res/layouts'
,
'src/main/res'
]
}
}
}
}
dependencies
{
dependencies
{
...
...
m-confide/src/main/AndroidManifest.xml
View file @
5c7df153
...
@@ -3,8 +3,9 @@
...
@@ -3,8 +3,9 @@
<application>
<application>
<activity
android:name=
".home.ConfideHomeActivity"
<activity
android:name=
".home.ConfideHomeActivity"
android:screenOrientation=
"portrait"
>
android:screenOrientation=
"portrait"
android:theme=
"@style/confide_NoTitleTheme"
>
</activity>
</activity>
</application>
</application>
</manifest>
</manifest>
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
View file @
5c7df153
package
com.ydl.confide.home
package
com.ydl.confide.home
import
android.content.Context
import
android.content.Context
import
android.os.Build
import
android.support.v7.widget.LinearLayoutManager
import
android.support.v7.widget.LinearLayoutManager
import
android.support.v7.widget.RecyclerView
import
android.support.v7.widget.RecyclerView
import
android.support.v7.widget.SimpleItemAnimator
import
android.support.v7.widget.SimpleItemAnimator
import
android.view.View
import
android.view.View
import
android.widget.LinearLayout
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.jcodecraeer.xrecyclerview.ProgressStyle
import
com.jcodecraeer.xrecyclerview.ProgressStyle
import
com.jcodecraeer.xrecyclerview.XRecyclerView
import
com.jcodecraeer.xrecyclerview.XRecyclerView
import
com.ydl.ydl_image.listener.YDLImageRecyclerOnScrollListener
import
com.yidianling.common.tools.RxImageTool
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.adapter.ConfideHomeAdapter
import
com.ydl.confide.home.adapter.ConfideHomeAdapter
import
com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
import
com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
...
@@ -24,13 +24,16 @@ import com.ydl.confide.home.listener.ConfideHomeRecycleViewListener
...
@@ -24,13 +24,16 @@ import com.ydl.confide.home.listener.ConfideHomeRecycleViewListener
import
com.ydl.confide.home.listener.ConfideHomeRecyleSuspendListener
import
com.ydl.confide.home.listener.ConfideHomeRecyleSuspendListener
import
com.ydl.confide.home.presenter.ConfideHomePresenterImpl
import
com.ydl.confide.home.presenter.ConfideHomePresenterImpl
import
com.ydl.confide.home.util.ConfideHomeUtils
import
com.ydl.confide.home.util.ConfideHomeUtils
import
com.ydl.ydl_image.listener.YDLImageRecyclerOnScrollListener
import
com.ydl.ydlcommon.mvp.lce.BaseLceActivity
import
com.ydl.ydlcommon.mvp.lce.BaseLceActivity
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.ydl.ydlcommon.view.DrawableRightTextView
import
com.ydl.ydlcommon.view.DrawableRightTextView
import
com.ydl.ydlcommon.view.WrapContentLinearLayoutManager
import
com.ydl.ydlcommon.view.WrapContentLinearLayoutManager
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.router.RouterManager
import
com.yidianling.router.RouterManager
import
kotlinx.android.synthetic.main.confide
home
_home_activity.*
import
kotlinx.android.synthetic.main.confide_home_activity.*
import
kotlinx.android.synthetic.main.confide
home
_title_bar.*
import
kotlinx.android.synthetic.main.confide_title_bar.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -112,7 +115,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
...
@@ -112,7 +115,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
}
}
override
fun
layoutResId
():
Int
{
override
fun
layoutResId
():
Int
{
return
R
.
layout
.
confide
home
_home_activity
return
R
.
layout
.
confide_home_activity
}
}
/**
/**
...
@@ -122,7 +125,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
...
@@ -122,7 +125,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
//重置页
//重置页
page
=
2
page
=
2
allFiltersBean
!!
.
page
=
page
allFiltersBean
!!
.
page
=
page
mPresenter
.
confideHomeRequest
()
mPresenter
.
confideHomeRequest
(
true
)
}
}
/**
/**
...
@@ -174,6 +177,21 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
...
@@ -174,6 +177,21 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
initClick
()
initClick
()
initQuickConsultDialog
()
initQuickConsultDialog
()
initStatus
();
}
/**
* 初始化状态栏位置
*/
private
fun
initStatus
()
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
KITKAT
)
{
//4.4以下不支持状态栏变色
StatusBarUtils
.
setTransparentForImageView
(
this
,
null
)
val
statusBarHeight
=
StatusBarUtils
.
getStatusBarHeight
(
this
)
val
lp1
=
rl_confide_title_layout
.
layoutParams
as
LinearLayout
.
LayoutParams
lp1
.
height
=
(
RxImageTool
.
dp2px
(
48f
)
+
statusBarHeight
)
rl_confide_title_layout
.
setPadding
(
0
,
statusBarHeight
,
0
,
0
)
}
}
}
/**
/**
...
@@ -245,7 +263,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
...
@@ -245,7 +263,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
rv_list
.
layoutManager
=
layoutManager
rv_list
.
layoutManager
=
layoutManager
rv_list
.
setRefreshProgressStyle
(
ProgressStyle
.
BallSpinFadeLoader
)
rv_list
.
setRefreshProgressStyle
(
ProgressStyle
.
BallSpinFadeLoader
)
rv_list
.
setRefreshProgressStyle
(
ProgressStyle
.
BallSpinFadeLoader
)
rv_list
.
setRefreshProgressStyle
(
ProgressStyle
.
BallSpinFadeLoader
)
rv_list
.
setArrowImageView
(
R
.
drawable
.
confide
home
_downgrey
)
rv_list
.
setArrowImageView
(
R
.
drawable
.
confide_downgrey
)
rv_list
.
setLoadingListener
(
this
)
rv_list
.
setLoadingListener
(
this
)
rv_list
.
adapter
=
mConfideAdapter
rv_list
.
adapter
=
mConfideAdapter
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/adapter/ConfideHomeAdapter.kt
View file @
5c7df153
...
@@ -97,7 +97,7 @@ class ConfideHomeAdapter(private val mContext: Context,
...
@@ -97,7 +97,7 @@ class ConfideHomeAdapter(private val mContext: Context,
return
ConfideHomeListenAndFoundViewHolder
(
ConfideHomeListenAndFoundView
(
parent
.
context
,
confideHomeEvent
))
return
ConfideHomeListenAndFoundViewHolder
(
ConfideHomeListenAndFoundView
(
parent
.
context
,
confideHomeEvent
))
}
}
else
->
{
else
->
{
return
EmptyViewHolder
(
View
.
inflate
(
parent
.
context
,
R
.
layout
.
confide
home
_empty
,
null
))
return
EmptyViewHolder
(
View
.
inflate
(
parent
.
context
,
R
.
layout
.
confide_empty
,
null
))
}
}
}
}
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/contract/IConfideHomeContract.kt
View file @
5c7df153
...
@@ -93,7 +93,7 @@ interface IConfideHomeContract{
...
@@ -93,7 +93,7 @@ interface IConfideHomeContract{
/**
/**
* 倾诉首页数据请求
* 倾诉首页数据请求
*/
*/
fun
confideHomeRequest
()
fun
confideHomeRequest
(
isRefresh
:
Boolean
=
true
)
/**
/**
* 为你推荐列表(筛选调用)
* 为你推荐列表(筛选调用)
...
...
m-confide/src/main/java/com/ydl/confide/home/popwindow/ConfideHomeGoodPopupWindow.kt
View file @
5c7df153
package
com.ydl.confide.home.popwindow
package
com.ydl.confide.home.popwindow
import
android.content.Context
import
android.content.Context
import
android.graphics.Typeface
import
android.graphics.drawable.BitmapDrawable
import
android.graphics.drawable.BitmapDrawable
import
android.support.v7.widget.GridLayoutManager
import
android.support.v7.widget.GridLayoutManager
import
android.support.v7.widget.LinearLayoutManager
import
android.support.v7.widget.LinearLayoutManager
import
android.view.LayoutInflater
import
android.view.LayoutInflater
import
android.view.ViewGroup
import
android.view.ViewGroup
import
android.widget.PopupWindow
import
android.widget.PopupWindow
import
com.yidianling.common.tools.RxImageTool
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
com.ydl.confide.home.popwindow.adapter.ConfideHomeGoodAdapter
import
com.ydl.confide.home.popwindow.adapter.ConfideHomeGoodAdapter
import
com.ydl.ydlcommon.view.SpaceItemDecorator
import
com.ydl.ydlcommon.view.SpaceItemDecorator
import
kotlinx.android.synthetic.main.confidehome_good_popup_window.view.*
import
com.yidianling.common.tools.RxImageTool
import
kotlinx.android.synthetic.main.confide_good_popup_window.view.*
...
@@ -33,7 +32,7 @@ class ConfideHomeGoodPopupWindow(context: Context, goodsList: ArrayList<ConfideH
...
@@ -33,7 +32,7 @@ class ConfideHomeGoodPopupWindow(context: Context, goodsList: ArrayList<ConfideH
private
var
selectedGoodsList
:
ArrayList
<
ConfideHomeFiterItemBean
>?
=
null
private
var
selectedGoodsList
:
ArrayList
<
ConfideHomeFiterItemBean
>?
=
null
init
{
init
{
val
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide
home
_good_popup_window
,
null
)
val
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide_good_popup_window
,
null
)
this
.
contentView
=
view
this
.
contentView
=
view
this
.
isFocusable
=
true
this
.
isFocusable
=
true
@Suppress
(
"DEPRECATION"
)
@Suppress
(
"DEPRECATION"
)
...
...
m-confide/src/main/java/com/ydl/confide/home/popwindow/ConfideHomeSexAgePopupWindow.kt
View file @
5c7df153
package
com.ydl.confide.home.popwindow
package
com.ydl.confide.home.popwindow
import
android.content.Context
import
android.content.Context
import
android.graphics.Typeface
import
android.graphics.drawable.BitmapDrawable
import
android.graphics.drawable.BitmapDrawable
import
android.support.v7.widget.GridLayoutManager
import
android.support.v7.widget.GridLayoutManager
import
android.support.v7.widget.LinearLayoutManager
import
android.support.v7.widget.LinearLayoutManager
...
@@ -11,13 +10,13 @@ import android.view.View
...
@@ -11,13 +10,13 @@ import android.view.View
import
android.view.ViewGroup
import
android.view.ViewGroup
import
android.widget.PopupWindow
import
android.widget.PopupWindow
import
android.widget.TextView
import
android.widget.TextView
import
com.yidianling.common.tools.RxImageTool
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
import
com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
com.ydl.confide.home.popwindow.adapter.ConfideHomeGoodAdapter
import
com.ydl.confide.home.popwindow.adapter.ConfideHomeGoodAdapter
import
com.ydl.ydlcommon.view.SpaceItemDecorator
import
com.ydl.ydlcommon.view.SpaceItemDecorator
import
kotlinx.android.synthetic.main.confidehome_sexage_popup_window.view.*
import
com.yidianling.common.tools.RxImageTool
import
kotlinx.android.synthetic.main.confide_sexage_popup_window.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -43,7 +42,7 @@ class ConfideHomeSexAgePopupWindow(context: Context, sexData: ArrayList<ConfideH
...
@@ -43,7 +42,7 @@ class ConfideHomeSexAgePopupWindow(context: Context, sexData: ArrayList<ConfideH
private
var
mAllFiltersBean
:
ConfideHomeAllFiltersBean
?
=
null
private
var
mAllFiltersBean
:
ConfideHomeAllFiltersBean
?
=
null
init
{
init
{
val
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide
home
_sexage_popup_window
,
null
)
val
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide_sexage_popup_window
,
null
)
this
.
contentView
=
view
this
.
contentView
=
view
this
.
isFocusable
=
true
this
.
isFocusable
=
true
@Suppress
(
"DEPRECATION"
)
@Suppress
(
"DEPRECATION"
)
...
@@ -164,10 +163,10 @@ class ConfideHomeSexAgePopupWindow(context: Context, sexData: ArrayList<ConfideH
...
@@ -164,10 +163,10 @@ class ConfideHomeSexAgePopupWindow(context: Context, sexData: ArrayList<ConfideH
*/
*/
private
fun
setSelect
(
tvSex1
:
TextView
,
boolean
:
Boolean
){
private
fun
setSelect
(
tvSex1
:
TextView
,
boolean
:
Boolean
){
if
(
boolean
){
if
(
boolean
){
tvSex1
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_filter_select_sel
)
tvSex1
.
setBackgroundResource
(
R
.
drawable
.
confide_filter_select_sel
)
tvSex1
.
setTextColor
(
tvSex1
.
context
.
resources
.
getColor
(
R
.
color
.
baby_blu
e
))
tvSex1
.
setTextColor
(
tvSex1
.
context
.
resources
.
getColor
(
R
.
color
.
confide_main_them
e
))
}
else
{
}
else
{
tvSex1
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_filter_select_nor
)
tvSex1
.
setBackgroundResource
(
R
.
drawable
.
confide_filter_select_nor
)
tvSex1
.
setTextColor
(
tvSex1
.
context
.
resources
.
getColor
(
R
.
color
.
_6
))
tvSex1
.
setTextColor
(
tvSex1
.
context
.
resources
.
getColor
(
R
.
color
.
_6
))
}
}
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/popwindow/ConfideHomeSortPopupWindow.kt
View file @
5c7df153
...
@@ -10,7 +10,7 @@ import android.widget.PopupWindow
...
@@ -10,7 +10,7 @@ import android.widget.PopupWindow
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
com.ydl.confide.home.popwindow.adapter.ConfideHomeSortAdapter
import
com.ydl.confide.home.popwindow.adapter.ConfideHomeSortAdapter
import
kotlinx.android.synthetic.main.confide
home
_sort_popup_window.view.*
import
kotlinx.android.synthetic.main.confide_sort_popup_window.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -25,7 +25,7 @@ class ConfideHomeSortPopupWindow(val context: Context, private val sortItems: Ar
...
@@ -25,7 +25,7 @@ class ConfideHomeSortPopupWindow(val context: Context, private val sortItems: Ar
private
var
adapter
:
ConfideHomeSortAdapter
?
=
null
private
var
adapter
:
ConfideHomeSortAdapter
?
=
null
init
{
init
{
val
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide
home
_sort_popup_window
,
null
)
val
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide_sort_popup_window
,
null
)
this
.
contentView
=
view
this
.
contentView
=
view
this
.
isFocusable
=
true
this
.
isFocusable
=
true
@Suppress
(
"DEPRECATION"
)
@Suppress
(
"DEPRECATION"
)
...
...
m-confide/src/main/java/com/ydl/confide/home/popwindow/adapter/ConfideHomeGoodAdapter.kt
View file @
5c7df153
...
@@ -8,7 +8,7 @@ import android.view.ViewGroup
...
@@ -8,7 +8,7 @@ import android.view.ViewGroup
import
android.widget.TextView
import
android.widget.TextView
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
kotlinx.android.synthetic.main.confide
home
_good_item.view.*
import
kotlinx.android.synthetic.main.confide_good_item.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -25,9 +25,9 @@ class ConfideHomeGoodAdapter(private val context: Context, private val goods: Ar
...
@@ -25,9 +25,9 @@ class ConfideHomeGoodAdapter(private val context: Context, private val goods: Ar
holder
.
tvGoodName
.
text
=
goods
[
position
].
name
holder
.
tvGoodName
.
text
=
goods
[
position
].
name
holder
.
tvGoodName
.
isSelected
=
selectedGood
.
contains
(
category
)
holder
.
tvGoodName
.
isSelected
=
selectedGood
.
contains
(
category
)
if
(
holder
.
tvGoodName
.
isSelected
)
{
if
(
holder
.
tvGoodName
.
isSelected
)
{
holder
.
tvGoodName
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_filter_select_sel
)
holder
.
tvGoodName
.
setBackgroundResource
(
R
.
drawable
.
confide_filter_select_sel
)
}
else
{
}
else
{
holder
.
tvGoodName
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_filter_select_nor
)
holder
.
tvGoodName
.
setBackgroundResource
(
R
.
drawable
.
confide_filter_select_nor
)
}
}
}
}
}
}
...
@@ -38,7 +38,7 @@ class ConfideHomeGoodAdapter(private val context: Context, private val goods: Ar
...
@@ -38,7 +38,7 @@ class ConfideHomeGoodAdapter(private val context: Context, private val goods: Ar
}
}
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
?,
viewType
:
Int
):
ViewHolder
{
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
?,
viewType
:
Int
):
ViewHolder
{
val
itemView
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide
home
_good_item
,
parent
,
false
)
val
itemView
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide_good_item
,
parent
,
false
)
return
ViewHolder
(
itemView
)
return
ViewHolder
(
itemView
)
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/popwindow/adapter/ConfideHomeSortAdapter.kt
View file @
5c7df153
package
com.ydl.confide.home.popwindow.adapter
package
com.ydl.confide.home.popwindow.adapter
import
android.content.Context
import
android.content.Context
import
android.graphics.Color
import
android.support.v4.content.ContextCompat
import
android.support.v4.content.ContextCompat
import
android.support.v7.widget.RecyclerView
import
android.support.v7.widget.RecyclerView
import
android.view.LayoutInflater
import
android.view.LayoutInflater
...
@@ -10,7 +9,7 @@ import android.view.ViewGroup
...
@@ -10,7 +9,7 @@ import android.view.ViewGroup
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import
com.ydl.confide.home.popwindow.ConfideHomeSortPopupWindow
import
com.ydl.confide.home.popwindow.ConfideHomeSortPopupWindow
import
kotlinx.android.synthetic.main.confide
home
_sort_item.view.*
import
kotlinx.android.synthetic.main.confide_sort_item.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -27,7 +26,7 @@ class ConfideHomeSortAdapter(private val context: Context,
...
@@ -27,7 +26,7 @@ class ConfideHomeSortAdapter(private val context: Context,
override
fun
getItemCount
():
Int
=
sortItems
.
size
override
fun
getItemCount
():
Int
=
sortItems
.
size
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
?,
viewType
:
Int
):
ViewHolder
{
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
?,
viewType
:
Int
):
ViewHolder
{
val
itemView
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide
home
_sort_item
,
parent
,
false
)
val
itemView
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide_sort_item
,
parent
,
false
)
return
ViewHolder
(
itemView
)
return
ViewHolder
(
itemView
)
}
}
...
@@ -36,7 +35,7 @@ class ConfideHomeSortAdapter(private val context: Context,
...
@@ -36,7 +35,7 @@ class ConfideHomeSortAdapter(private val context: Context,
if
(
holder
!=
null
)
{
if
(
holder
!=
null
)
{
holder
.
tvSort
.
text
=
item
.
name
holder
.
tvSort
.
text
=
item
.
name
if
(
item
.
id
==
selectedSort
.
id
)
{
if
(
item
.
id
==
selectedSort
.
id
)
{
holder
.
tvSort
.
setTextColor
(
Color
.
parseColor
(
"#1DA1F2"
))
holder
.
tvSort
.
setTextColor
(
context
.
resources
.
getColor
(
R
.
color
.
confide_main_theme
))
}
else
{
}
else
{
holder
.
tvSort
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
_6
))
holder
.
tvSort
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
_6
))
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/presenter/ConfideHomePresenterImpl.kt
View file @
5c7df153
...
@@ -4,7 +4,6 @@ import android.content.Context
...
@@ -4,7 +4,6 @@ import android.content.Context
import
android.text.TextUtils
import
android.text.TextUtils
import
com.google.gson.Gson
import
com.google.gson.Gson
import
com.google.gson.reflect.TypeToken
import
com.google.gson.reflect.TypeToken
import
com.yidianling.common.tools.RxNetTool
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.confide.home.http.ConfideRecommendParam
import
com.ydl.confide.home.http.ConfideRecommendParam
...
@@ -13,12 +12,14 @@ import com.ydl.confide.home.util.ConfideHomeUtils
...
@@ -13,12 +12,14 @@ import com.ydl.confide.home.util.ConfideHomeUtils
import
com.ydl.ydlcommon.data.http.RxUtils
import
com.ydl.ydlcommon.data.http.RxUtils
import
com.ydl.ydlcommon.data.http.ThrowableConsumer
import
com.ydl.ydlcommon.data.http.ThrowableConsumer
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.mvp.base.BasePresenter
import
com.ydl.ydlcommon.mvp.
lce.ILce
View
import
com.ydl.ydlcommon.mvp.
base.I
View
import
com.ydl.ydlcommon.utils.RxLifecycleUtils
import
com.ydl.ydlcommon.utils.RxLifecycleUtils
import
com.ydl.ydlcommon.utils.YDLAsyncUtils
import
com.ydl.ydlcommon.utils.YDLAsyncUtils
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.yidianling.common.tools.RxNetTool
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.functions.Consumer
import
io.reactivex.functions.Consumer
import
io.reactivex.schedulers.Schedulers
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -65,7 +66,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
...
@@ -65,7 +66,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
mView
.
confideHomeResponse
(
list
)
mView
.
confideHomeResponse
(
list
)
}
}
}
}
confideHomeRequest
()
confideHomeRequest
(
false
)
}
}
})
})
}
}
...
@@ -73,7 +74,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
...
@@ -73,7 +74,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
/**
/**
* 请求首页数据
* 请求首页数据
*/
*/
override
fun
confideHomeRequest
()
{
override
fun
confideHomeRequest
(
isRefresh
:
Boolean
)
{
if
(!
RxNetTool
.
isConnected
(
mView
.
getContext
())){
if
(!
RxNetTool
.
isConnected
(
mView
.
getContext
())){
mView
.
confideHomeRequestFail
()
mView
.
confideHomeRequestFail
()
return
return
...
@@ -81,9 +82,20 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
...
@@ -81,9 +82,20 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
val
disposable
=
mModel
.
confideHomeRequest
()
val
disposable
=
mModel
.
confideHomeRequest
()
.
map
{
it
}
.
map
{
it
}
.
filter
{
it
!=
null
}
.
filter
{
it
!=
null
}
.
compose
(
RxUtils
.
applySchedulers
(
mView
))
.
subscribeOn
(
Schedulers
.
io
())
.
compose
(
RxLifecycleUtils
.
bindToLifecycle
(
mView
!!
))
//使用 Rxlifecycle,使 Disposable 和 Activity 一起销毁
.
doOnSubscribe
{
if
(!
isRefresh
){
mView
.
showLoading
()
//显示进度条
}
}
.
subscribeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
doFinally
{
if
(!
isRefresh
){
mView
.
hideLoading
()
//隐藏进度条
}
}.
compose
(
RxLifecycleUtils
.
bindToLifecycle
(
mView
))
.
subscribe
(
Consumer
{
.
subscribe
(
Consumer
{
mView
.
confideHomeResponse
(
it
)
mView
.
confideHomeResponse
(
it
)
updateCache
(
it
)
updateCache
(
it
)
...
@@ -128,7 +140,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
...
@@ -128,7 +140,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
val
disposable
=
mModel
.
recommendList
(
param
)
val
disposable
=
mModel
.
recommendList
(
param
)
.
map
{
it
}
.
map
{
it
}
.
filter
{
it
!=
null
}
.
filter
{
it
!=
null
}
.
compose
(
RxUtils
.
applySchedulers
(
mView
))
.
compose
(
RxUtils
.
applySchedulers
(
mView
as
IView
))
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
Consumer
{
.
subscribe
(
Consumer
{
mView
.
recommendListResponse
(
it
)
mView
.
recommendListResponse
(
it
)
...
@@ -150,7 +162,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
...
@@ -150,7 +162,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
val
disposable
=
mModel
.
recommendList
(
param
)
val
disposable
=
mModel
.
recommendList
(
param
)
.
map
{
it
}
.
map
{
it
}
.
filter
{
it
!=
null
}
.
filter
{
it
!=
null
}
.
compose
(
RxUtils
.
applySchedulers
(
mView
))
.
compose
(
RxUtils
.
applySchedulers
(
mView
as
IView
))
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
Consumer
{
.
subscribe
(
Consumer
{
mView
.
recommendListMoreResponse
(
it
)
mView
.
recommendListMoreResponse
(
it
)
...
...
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeBannerSection.kt
View file @
5c7df153
...
@@ -44,7 +44,7 @@ class ConfideHomeBannerSection(var context: Context, private var confideHomeEven
...
@@ -44,7 +44,7 @@ class ConfideHomeBannerSection(var context: Context, private var confideHomeEven
BannerViewHolder
(
ConfideHomeBannerView
(
context
,
confideHomeEvent
))
BannerViewHolder
(
ConfideHomeBannerView
(
context
,
confideHomeEvent
))
}
}
else
->
{
else
->
{
EmptyViewHolder
(
View
.
inflate
(
context
,
R
.
layout
.
view_empty
,
null
))
EmptyViewHolder
(
View
.
inflate
(
context
,
R
.
layout
.
confide_
view_empty
,
null
))
}
}
}
}
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeCategorySection.kt
View file @
5c7df153
...
@@ -45,7 +45,7 @@ class ConfideHomeCategorySection(var context: Context, var confideHomeEvent : IC
...
@@ -45,7 +45,7 @@ class ConfideHomeCategorySection(var context: Context, var confideHomeEvent : IC
CategoryViewHolder
(
ConfideHomeCategoryView
(
context
,
confideHomeEvent
,
homeView
))
CategoryViewHolder
(
ConfideHomeCategoryView
(
context
,
confideHomeEvent
,
homeView
))
}
}
else
->
{
else
->
{
EmptyViewHolder
(
View
.
inflate
(
context
,
R
.
layout
.
view_empty
,
null
))
EmptyViewHolder
(
View
.
inflate
(
context
,
R
.
layout
.
confide_
view_empty
,
null
))
}
}
}
}
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeFilterSection.kt
View file @
5c7df153
...
@@ -66,7 +66,7 @@ class ConfideHomeFilterSection(var context: Context,var view : IConfideHomeContr
...
@@ -66,7 +66,7 @@ class ConfideHomeFilterSection(var context: Context,var view : IConfideHomeContr
var
dp15
=
RxImageTool
.
dip2px
(
15f
)
var
dp15
=
RxImageTool
.
dip2px
(
15f
)
param
.
setMargins
(
dp15
,
0
,
dp15
,
0
)
param
.
setMargins
(
dp15
,
0
,
dp15
,
0
)
var
footerView
=
View
(
context
)
var
footerView
=
View
(
context
)
footerView
.
setBackgroundColor
(
context
.
resources
.
getColor
(
R
.
color
.
confide
home
_filters_line
))
footerView
.
setBackgroundColor
(
context
.
resources
.
getColor
(
R
.
color
.
confide_filters_line
))
footerView
.
layoutParams
=
param
footerView
.
layoutParams
=
param
return
FooterViewHolder
(
footerView
)
return
FooterViewHolder
(
footerView
)
}
else
{
}
else
{
...
...
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeFooterSection.kt
View file @
5c7df153
...
@@ -37,7 +37,7 @@ class ConfideHomeFooterSection(var context: Context, private var confideHomeEven
...
@@ -37,7 +37,7 @@ class ConfideHomeFooterSection(var context: Context, private var confideHomeEven
FooterViewHolder
(
ConfideHomeFooterView
(
context
,
confideHomeEvent
))
FooterViewHolder
(
ConfideHomeFooterView
(
context
,
confideHomeEvent
))
}
}
else
->
{
else
->
{
EmptyViewHolder
(
View
.
inflate
(
context
,
R
.
layout
.
view_empty
,
null
))
EmptyViewHolder
(
View
.
inflate
(
context
,
R
.
layout
.
confide_
view_empty
,
null
))
}
}
}
}
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/section/ConfideHomeRecommendExpertSection.kt
View file @
5c7df153
...
@@ -59,7 +59,7 @@ class ConfideHomeRecommendExpertSection(var context: Context, var confideHomeEve
...
@@ -59,7 +59,7 @@ class ConfideHomeRecommendExpertSection(var context: Context, var confideHomeEve
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
?,
viewType
:
Int
):
RecyclerView
.
ViewHolder
{
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
?,
viewType
:
Int
):
RecyclerView
.
ViewHolder
{
if
(
viewType
==
combineType
(
IConfideHomeConfig
.
SECTION_CONSULTANT
,
HEADER
))
{
if
(
viewType
==
combineType
(
IConfideHomeConfig
.
SECTION_CONSULTANT
,
HEADER
))
{
return
HeadViewHolder
(
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide
home
_recommend_expert_head
,
parent
,
false
))
return
HeadViewHolder
(
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
confide_recommend_expert_head
,
parent
,
false
))
}
else
{
}
else
{
return
ConfideHomeRecommendExpertViewHolder
(
ConfideHomeRecommendExpertView
(
context
,
confideHomeEvent
))
return
ConfideHomeRecommendExpertViewHolder
(
ConfideHomeRecommendExpertView
(
context
,
confideHomeEvent
))
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/util/ConfideHomeUtils.kt
View file @
5c7df153
...
@@ -11,7 +11,6 @@ import android.view.View
...
@@ -11,7 +11,6 @@ import android.view.View
import
android.view.animation.AnimationUtils
import
android.view.animation.AnimationUtils
import
android.view.animation.LinearInterpolator
import
android.view.animation.LinearInterpolator
import
android.widget.ImageView
import
android.widget.ImageView
import
com.yidianling.common.tools.LogUtil
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.adapter.ConfideHomeAdapter
import
com.ydl.confide.home.adapter.ConfideHomeAdapter
import
com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
import
com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
...
@@ -27,6 +26,7 @@ import com.ydl.confide.home.widget.ConfideHomeFilterView
...
@@ -27,6 +26,7 @@ import com.ydl.confide.home.widget.ConfideHomeFilterView
import
com.ydl.confide.home.widget.ConfidePlayerFloatView
import
com.ydl.confide.home.widget.ConfidePlayerFloatView
import
com.ydl.ydlcommon.adapter.section.SectionAdapter
import
com.ydl.ydlcommon.adapter.section.SectionAdapter
import
com.ydl.ydlcommon.utils.MainUtils
import
com.ydl.ydlcommon.utils.MainUtils
import
com.yidianling.common.tools.LogUtil
import
java.io.BufferedInputStream
import
java.io.BufferedInputStream
import
java.io.IOException
import
java.io.IOException
import
java.io.InputStream
import
java.io.InputStream
...
@@ -461,8 +461,8 @@ class ConfideHomeUtils {
...
@@ -461,8 +461,8 @@ class ConfideHomeUtils {
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
platform_ic_arrow_drop_down_grey_500_18dp
,
0
)
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
platform_ic_arrow_drop_down_grey_500_18dp
,
0
)
}
}
IConfideHomeConfig
.
FILTER_STATUS_FILTERED
,
IConfideHomeConfig
.
FILTER_STATUS_OPEN
->
{
IConfideHomeConfig
.
FILTER_STATUS_FILTERED
,
IConfideHomeConfig
.
FILTER_STATUS_OPEN
->
{
tv
.
setTextColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
baby_blu
e
))
tv
.
setTextColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
confide_main_them
e
))
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
platform
_ic_arrow_drop_down_green_18dp
,
0
)
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
confide
_ic_arrow_drop_down_green_18dp
,
0
)
}
}
}
}
}
}
...
@@ -475,7 +475,7 @@ class ConfideHomeUtils {
...
@@ -475,7 +475,7 @@ class ConfideHomeUtils {
tv
.
setTextColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
_6
))
tv
.
setTextColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
_6
))
}
}
IConfideHomeConfig
.
FILTER_STATUS_FILTERED
,
IConfideHomeConfig
.
FILTER_STATUS_OPEN
->
{
IConfideHomeConfig
.
FILTER_STATUS_FILTERED
,
IConfideHomeConfig
.
FILTER_STATUS_OPEN
->
{
tv
.
setTextColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
baby_blu
e
))
tv
.
setTextColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
confide_main_them
e
))
}
}
}
}
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
platform_ic_arrow_drop_down_grey_500_18dp
,
0
)
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
platform_ic_arrow_drop_down_grey_500_18dp
,
0
)
...
@@ -488,7 +488,7 @@ class ConfideHomeUtils {
...
@@ -488,7 +488,7 @@ class ConfideHomeUtils {
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
platform_ic_arrow_drop_down_grey_500_18dp
,
0
)
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
platform_ic_arrow_drop_down_grey_500_18dp
,
0
)
}
}
IConfideHomeConfig
.
FILTER_STATUS_FILTERED
,
IConfideHomeConfig
.
FILTER_STATUS_OPEN
->
{
IConfideHomeConfig
.
FILTER_STATUS_FILTERED
,
IConfideHomeConfig
.
FILTER_STATUS_OPEN
->
{
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
platform
_ic_arrow_drop_down_green_18dp
,
0
)
tv
.
setCompoundDrawablesWithIntrinsicBounds
(
0
,
0
,
R
.
drawable
.
confide
_ic_arrow_drop_down_green_18dp
,
0
)
}
}
}
}
}
}
...
@@ -497,7 +497,7 @@ class ConfideHomeUtils {
...
@@ -497,7 +497,7 @@ class ConfideHomeUtils {
* 启动 播放动画
* 启动 播放动画
*/
*/
fun
startPlayAnim
(
context
:
Context
,
imageView
:
ImageView
)
{
fun
startPlayAnim
(
context
:
Context
,
imageView
:
ImageView
)
{
var
animation
=
AnimationUtils
.
loadAnimation
(
context
,
R
.
anim
.
confide
home
_play_anim
)
var
animation
=
AnimationUtils
.
loadAnimation
(
context
,
R
.
anim
.
confide_play_anim
)
var
lin
=
LinearInterpolator
()
//设置动画匀速运动
var
lin
=
LinearInterpolator
()
//设置动画匀速运动
animation
.
interpolator
=
lin
animation
.
interpolator
=
lin
imageView
.
startAnimation
(
animation
)
imageView
.
startAnimation
(
animation
)
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeBannerView.kt
View file @
5c7df153
...
@@ -10,7 +10,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
...
@@ -10,7 +10,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.ydlcommon.view.banner.GlideImageLoader
import
com.ydl.ydlcommon.view.banner.GlideImageLoader
import
kotlinx.android.synthetic.main.confide
home
_banner_view.view.*
import
kotlinx.android.synthetic.main.confide_banner_view.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -39,7 +39,7 @@ class ConfideHomeBannerView(context: Context,
...
@@ -39,7 +39,7 @@ class ConfideHomeBannerView(context: Context,
private
fun
initView
()
{
private
fun
initView
()
{
val
params
=
FrameLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
val
params
=
FrameLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_banner_view
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_banner_view
,
this
)
layoutParams
=
params
layoutParams
=
params
margin
=
RxImageTool
.
dip2px
(
2.5f
)
margin
=
RxImageTool
.
dip2px
(
2.5f
)
}
}
...
@@ -67,7 +67,7 @@ class ConfideHomeBannerView(context: Context,
...
@@ -67,7 +67,7 @@ class ConfideHomeBannerView(context: Context,
for
(
index
in
0
..
count
)
{
for
(
index
in
0
..
count
)
{
urlLists
.
add
((
mDataList
as
ArrayList
<
ConfideHomeBodyBean
>)[
index
].
bannerImageUrl
!!
)
urlLists
.
add
((
mDataList
as
ArrayList
<
ConfideHomeBodyBean
>)[
index
].
bannerImageUrl
!!
)
}
}
banner
.
setImageLoader
(
GlideImageLoader
(
R
.
color
.
new_divide_color
,
6
)).
setImages
(
urlLists
).
start
()
banner
.
setImageLoader
(
GlideImageLoader
(
R
.
color
.
confide_
new_divide_color
,
6
)).
setImages
(
urlLists
).
start
()
banner
.
setOnBannerListener
{
banner
.
setOnBannerListener
{
confideHomeEvent
!!
.
bannerClick
((
mDataList
as
ArrayList
<
ConfideHomeBodyBean
>)[
it
].
bannerLinkUrl
,
it
,
(
mDataList
as
ArrayList
<
ConfideHomeBodyBean
>)[
it
].
bannerTitle
)
confideHomeEvent
!!
.
bannerClick
((
mDataList
as
ArrayList
<
ConfideHomeBodyBean
>)[
it
].
bannerLinkUrl
,
it
,
(
mDataList
as
ArrayList
<
ConfideHomeBodyBean
>)[
it
].
bannerTitle
)
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeCategoryItemView.kt
View file @
5c7df153
...
@@ -6,13 +6,13 @@ import android.support.v7.widget.CardView
...
@@ -6,13 +6,13 @@ import android.support.v7.widget.CardView
import
android.text.TextUtils
import
android.text.TextUtils
import
android.util.AttributeSet
import
android.util.AttributeSet
import
android.view.View
import
android.view.View
import
com.ydl.ydl_image.module.GlideApp
import
com.yidianling.common.tools.RxImageTool
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeBodyBean
import
com.ydl.confide.home.bean.ConfideHomeBodyBean
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
kotlinx.android.synthetic.main.confidehome_item_category.view.*
import
com.ydl.ydl_image.module.GlideApp
import
com.yidianling.common.tools.RxImageTool
import
kotlinx.android.synthetic.main.confide_item_category.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -32,7 +32,7 @@ class ConfideHomeCategoryItemView(mContext: Context, @Nullable attrs: AttributeS
...
@@ -32,7 +32,7 @@ class ConfideHomeCategoryItemView(mContext: Context, @Nullable attrs: AttributeS
}
}
private
fun
initView
()
{
private
fun
initView
()
{
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_item_category
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_item_category
,
this
)
dp35
=
RxImageTool
.
dip2px
(
35f
)
dp35
=
RxImageTool
.
dip2px
(
35f
)
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeCategoryView.kt
View file @
5c7df153
...
@@ -10,7 +10,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
...
@@ -10,7 +10,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
kotlinx.android.synthetic.main.confide
home
_category_view.view.*
import
kotlinx.android.synthetic.main.confide_category_view.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -30,10 +30,10 @@ class ConfideHomeCategoryView(mContext: Context,
...
@@ -30,10 +30,10 @@ class ConfideHomeCategoryView(mContext: Context,
private
fun
initView
(){
private
fun
initView
(){
var
params
=
ViewGroup
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
RxImageTool
.
dip2px
(
106f
))
var
params
=
ViewGroup
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
RxImageTool
.
dip2px
(
106f
))
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_category_view
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_category_view
,
this
)
layoutParams
=
params
layoutParams
=
params
orientation
=
HORIZONTAL
orientation
=
HORIZONTAL
setBackgroundResource
(
R
.
color
.
confide
home
_category_bg
)
setBackgroundResource
(
R
.
color
.
confide_category_bg
)
}
}
fun
initData
(
bean
:
ConfideHomeDataBean
?){
fun
initData
(
bean
:
ConfideHomeDataBean
?){
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeFilterView.kt
View file @
5c7df153
...
@@ -9,13 +9,13 @@ import android.view.Gravity
...
@@ -9,13 +9,13 @@ import android.view.Gravity
import
android.view.View
import
android.view.View
import
android.view.ViewGroup
import
android.view.ViewGroup
import
android.widget.LinearLayout
import
android.widget.LinearLayout
import
com.yidianling.common.tools.RxImageTool
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeBodyBean
import
com.ydl.confide.home.bean.ConfideHomeBodyBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.ydlcommon.utils.ScreenUtil
import
com.ydl.ydlcommon.utils.ScreenUtil
import
com.ydl.ydlcommon.view.DrawableRightTextView
import
com.ydl.ydlcommon.view.DrawableRightTextView
import
com.yidianling.common.tools.RxImageTool
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -93,7 +93,7 @@ class ConfideHomeFilterView(mContext: Context, @Nullable attrs: AttributeSet?, d
...
@@ -93,7 +93,7 @@ class ConfideHomeFilterView(mContext: Context, @Nullable attrs: AttributeSet?, d
textView
.
text
=
bodyBean
.
filterName
textView
.
text
=
bodyBean
.
filterName
textView
.
setTag
(
R
.
id
.
tv_title
,
bodyBean
)
textView
.
setTag
(
R
.
id
.
tv_title
,
bodyBean
)
if
(
"排序"
==
bodyBean
.
filterName
){
if
(
"排序"
==
bodyBean
.
filterName
){
textView
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
baby_blu
e
))
textView
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
confide_main_them
e
))
// textView.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_arrow_drop_down_green_18dp, 0)
// textView.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_arrow_drop_down_green_18dp, 0)
}
}
textView
.
setOnClickListener
{
textView
.
setOnClickListener
{
...
@@ -127,7 +127,7 @@ class ConfideHomeFilterView(mContext: Context, @Nullable attrs: AttributeSet?, d
...
@@ -127,7 +127,7 @@ class ConfideHomeFilterView(mContext: Context, @Nullable attrs: AttributeSet?, d
var
view
=
getChildAt
(
index
)
var
view
=
getChildAt
(
index
)
if
(
view
is
DrawableRightTextView
){
if
(
view
is
DrawableRightTextView
){
if
(
"排序"
==
view
.
text
){
if
(
"排序"
==
view
.
text
){
view
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
baby_blu
e
))
view
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
confide_main_them
e
))
}
else
{
}
else
{
view
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
_6
))
view
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
_6
))
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeFooterView.kt
View file @
5c7df153
...
@@ -7,7 +7,7 @@ import android.widget.LinearLayout
...
@@ -7,7 +7,7 @@ import android.widget.LinearLayout
import
android.widget.RelativeLayout
import
android.widget.RelativeLayout
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
kotlinx.android.synthetic.main.confide
home
_footer.view.*
import
kotlinx.android.synthetic.main.confide_footer.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -27,7 +27,7 @@ class ConfideHomeFooterView(var mContext: Context,var confideHomeEvent : IConfid
...
@@ -27,7 +27,7 @@ class ConfideHomeFooterView(var mContext: Context,var confideHomeEvent : IConfid
*/
*/
private
fun
initView
()
{
private
fun
initView
()
{
var
params
=
ViewGroup
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
var
params
=
ViewGroup
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_footer
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_footer
,
this
)
tv_footer
.
setOnClickListener
{
tv_footer
.
setOnClickListener
{
confideHomeEvent
.
consultantMoreClick
(
"app://listen/list"
)
confideHomeEvent
.
consultantMoreClick
(
"app://listen/list"
)
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeHeadView.kt
View file @
5c7df153
...
@@ -9,7 +9,7 @@ import com.ydl.confide.R
...
@@ -9,7 +9,7 @@ import com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.config.IConfideHomeConfig
import
com.ydl.confide.home.config.IConfideHomeConfig
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
kotlinx.android.synthetic.main.confide
home
_item_header.view.*
import
kotlinx.android.synthetic.main.confide_item_header.view.*
@Suppress
(
"DEPRECATION"
)
@Suppress
(
"DEPRECATION"
)
/**
/**
...
@@ -27,7 +27,7 @@ class ConfideHomeHeadView(context: Context, private var confideHomeEvent: IConfi
...
@@ -27,7 +27,7 @@ class ConfideHomeHeadView(context: Context, private var confideHomeEvent: IConfi
private
fun
initView
()
{
private
fun
initView
()
{
orientation
=
HORIZONTAL
orientation
=
HORIZONTAL
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_item_header
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_item_header
,
this
)
var
params
=
LinearLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
RxImageTool
.
dip2px
(
25f
))
var
params
=
LinearLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
RxImageTool
.
dip2px
(
25f
))
params
.
setMargins
(
0
,
RxImageTool
.
dip2px
(
30f
),
0
,
RxImageTool
.
dip2px
(
18f
))
params
.
setMargins
(
0
,
RxImageTool
.
dip2px
(
30f
),
0
,
RxImageTool
.
dip2px
(
18f
))
layoutParams
=
params
layoutParams
=
params
...
@@ -46,18 +46,18 @@ class ConfideHomeHeadView(context: Context, private var confideHomeEvent: IConfi
...
@@ -46,18 +46,18 @@ class ConfideHomeHeadView(context: Context, private var confideHomeEvent: IConfi
when
(
bean
.
type
)
{
when
(
bean
.
type
)
{
IConfideHomeConfig
.
TYPE_RECOMMEND
->
{
IConfideHomeConfig
.
TYPE_RECOMMEND
->
{
setPadding
(
0
,
RxImageTool
.
dip2px
(
30f
),
0
,
0
)
setPadding
(
0
,
RxImageTool
.
dip2px
(
30f
),
0
,
0
)
iv_recently_talk
.
setImageResource
(
R
.
drawable
.
confide
home
_recommend
)
iv_recently_talk
.
setImageResource
(
R
.
drawable
.
confide_recommend
)
iv_recently_title
.
text
=
bean
.
head
.
title
iv_recently_title
.
text
=
bean
.
head
.
title
iv_recently_more
.
visibility
=
View
.
GONE
iv_recently_more
.
visibility
=
View
.
GONE
}
}
IConfideHomeConfig
.
TYPE_RECENTLY_CONFIDED
->
{
IConfideHomeConfig
.
TYPE_RECENTLY_CONFIDED
->
{
setPadding
(
0
,
RxImageTool
.
dip2px
(
30f
),
0
,
RxImageTool
.
dip2px
(
18f
))
setPadding
(
0
,
RxImageTool
.
dip2px
(
30f
),
0
,
RxImageTool
.
dip2px
(
18f
))
iv_recently_talk
.
setImageResource
(
R
.
drawable
.
confide
home
_zuijin
)
iv_recently_talk
.
setImageResource
(
R
.
drawable
.
confide_zuijin
)
iv_recently_title
.
text
=
bean
.
head
.
title
iv_recently_title
.
text
=
bean
.
head
.
title
iv_recently_more
.
visibility
=
View
.
GONE
iv_recently_more
.
visibility
=
View
.
GONE
}
}
IConfideHomeConfig
.
TYPE_SOUND
->
{
IConfideHomeConfig
.
TYPE_SOUND
->
{
iv_recently_talk
.
setImageResource
(
R
.
drawable
.
confide
home
_listen
)
iv_recently_talk
.
setImageResource
(
R
.
drawable
.
confide_listen
)
iv_recently_title
.
text
=
bean
.
head
.
title
iv_recently_title
.
text
=
bean
.
head
.
title
iv_recently_more
.
visibility
=
View
.
GONE
iv_recently_more
.
visibility
=
View
.
GONE
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeListenAndFoundItemView.kt
View file @
5c7df153
...
@@ -9,7 +9,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
...
@@ -9,7 +9,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import
com.ydl.confide.home.config.IConfideHomeConfig
import
com.ydl.confide.home.config.IConfideHomeConfig
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.util.ConfideHomeUtils
import
com.ydl.confide.home.util.ConfideHomeUtils
import
kotlinx.android.synthetic.main.confide
home
_listen_and_found_item_view.view.*
import
kotlinx.android.synthetic.main.confide_listen_and_found_item_view.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -24,7 +24,7 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
...
@@ -24,7 +24,7 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
}
}
private
fun
initView
()
{
private
fun
initView
()
{
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_listen_and_found_item_view
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_listen_and_found_item_view
,
this
)
}
}
/**
/**
...
@@ -66,15 +66,15 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
...
@@ -66,15 +66,15 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
when
(
bodyBean
.
confideLine
)
{
//1在线 2离线 3通话中
when
(
bodyBean
.
confideLine
)
{
//1在线 2离线 3通话中
1
->
{
1
->
{
tv_isLine
.
text
=
"在线"
tv_isLine
.
text
=
"在线"
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_main_color
)
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_main_color
)
}
}
2
->
{
2
->
{
tv_isLine
.
text
=
"离线"
tv_isLine
.
text
=
"离线"
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_color_666666
)
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_color_666666
)
}
}
3
->
{
3
->
{
tv_isLine
.
text
=
"通话中"
tv_isLine
.
text
=
"通话中"
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_color_ff8f38
)
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_color_ff8f38
)
}
}
else
->
{
else
->
{
...
@@ -111,9 +111,9 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
...
@@ -111,9 +111,9 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
*/
*/
private
fun
setSex
(
bodyBean
:
ConfideHomeBodyBean
)
{
private
fun
setSex
(
bodyBean
:
ConfideHomeBodyBean
)
{
if
(
bodyBean
.
confideSex
==
1
)
{
if
(
bodyBean
.
confideSex
==
1
)
{
img_sex
.
setImageResource
(
R
.
drawable
.
confide
home
_new_male
)
img_sex
.
setImageResource
(
R
.
drawable
.
confide_new_male
)
}
else
{
}
else
{
img_sex
.
setImageResource
(
R
.
drawable
.
confide
home
_new_female
)
img_sex
.
setImageResource
(
R
.
drawable
.
confide_new_female
)
}
}
}
}
...
@@ -151,16 +151,16 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
...
@@ -151,16 +151,16 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
private
fun
setConfideButton
(
bodyBean
:
ConfideHomeBodyBean
)
{
private
fun
setConfideButton
(
bodyBean
:
ConfideHomeBodyBean
)
{
when
(
bodyBean
.
confideLine
)
{
//1.在线 2.离线 3.通话中 4.继续倾诉
when
(
bodyBean
.
confideLine
)
{
//1.在线 2.离线 3.通话中 4.继续倾诉
1
->
{
1
->
{
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_line_1
)
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide_line_1
)
}
}
2
->
{
2
->
{
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_line_2
)
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide_line_2
)
}
}
3
->
{
3
->
{
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_line_3
)
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide_line_3
)
}
}
4
->{
4
->{
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_line_4
)
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide_line_4
)
}
}
}
}
}
}
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeListenAndFoundView.kt
View file @
5c7df153
...
@@ -6,7 +6,7 @@ import android.widget.FrameLayout
...
@@ -6,7 +6,7 @@ import android.widget.FrameLayout
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
kotlinx.android.synthetic.main.confide
home
_banner.view.*
import
kotlinx.android.synthetic.main.confide_banner.view.*
/**
/**
* @author Jim
* @author Jim
...
@@ -28,7 +28,7 @@ class ConfideHomeListenAndFoundView(context: Context, private var confideHomeEve
...
@@ -28,7 +28,7 @@ class ConfideHomeListenAndFoundView(context: Context, private var confideHomeEve
}
}
private
fun
initView
()
{
private
fun
initView
()
{
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_banner
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_banner
,
this
)
}
}
fun
initData
(
bean
:
ConfideHomeDataBean
)
{
fun
initData
(
bean
:
ConfideHomeDataBean
)
{
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecentView.kt
View file @
5c7df153
...
@@ -13,7 +13,7 @@ import com.yidianling.common.tools.RxImageTool
...
@@ -13,7 +13,7 @@ import com.yidianling.common.tools.RxImageTool
import
com.ydl.confide.R
import
com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
kotlinx.android.synthetic.main.confide
home
_recent_view.view.*
import
kotlinx.android.synthetic.main.confide_recent_view.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -35,7 +35,7 @@ class ConfideHomeRecentView(mContext: Context, private var confideHomeEvent: ICo
...
@@ -35,7 +35,7 @@ class ConfideHomeRecentView(mContext: Context, private var confideHomeEvent: ICo
*/
*/
private
fun
initView
()
{
private
fun
initView
()
{
initLayoutParam
()
initLayoutParam
()
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_recent_view
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_recent_view
,
this
)
}
}
...
@@ -71,9 +71,9 @@ class ConfideHomeRecentView(mContext: Context, private var confideHomeEvent: ICo
...
@@ -71,9 +71,9 @@ class ConfideHomeRecentView(mContext: Context, private var confideHomeEvent: ICo
img_icon
.
setTag
(
R
.
id
.
img_icon
,
bodyBean
.
confidedIcon
)
img_icon
.
setTag
(
R
.
id
.
img_icon
,
bodyBean
.
confidedIcon
)
}
}
if
(
bodyBean
.
confideSex
==
1
)
{
if
(
bodyBean
.
confideSex
==
1
)
{
img_sex
.
setImageResource
(
R
.
drawable
.
confide
home
_new_male
)
img_sex
.
setImageResource
(
R
.
drawable
.
confide_new_male
)
}
else
{
}
else
{
img_sex
.
setImageResource
(
R
.
drawable
.
confide
home
_new_female
)
img_sex
.
setImageResource
(
R
.
drawable
.
confide_new_female
)
}
}
tv_name
.
text
=
bodyBean
.
confidedName
tv_name
.
text
=
bodyBean
.
confidedName
tv_history
.
text
=
bodyBean
.
confideHistory
tv_history
.
text
=
bodyBean
.
confideHistory
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecommendExpertItemView.kt
View file @
5c7df153
...
@@ -17,7 +17,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
...
@@ -17,7 +17,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import
com.ydl.confide.home.config.IConfideHomeConfig
import
com.ydl.confide.home.config.IConfideHomeConfig
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.ydlcommon.utils.ScreenUtil
import
com.ydl.ydlcommon.utils.ScreenUtil
import
kotlinx.android.synthetic.main.confide
home
_recommend_expert_item_view.view.*
import
kotlinx.android.synthetic.main.confide_recommend_expert_item_view.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -38,7 +38,7 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
...
@@ -38,7 +38,7 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
}
}
private
fun
initView
()
{
private
fun
initView
()
{
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_recommend_expert_item_view
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_recommend_expert_item_view
,
this
)
bgWidth
=
ScreenUtil
.
screenWidth
-
RxImageTool
.
dip2px
(
30f
)
bgWidth
=
ScreenUtil
.
screenWidth
-
RxImageTool
.
dip2px
(
30f
)
dp100
=
RxImageTool
.
dip2px
(
100f
)
dp100
=
RxImageTool
.
dip2px
(
100f
)
dp16
=
RxImageTool
.
dip2px
(
16f
)
dp16
=
RxImageTool
.
dip2px
(
16f
)
...
@@ -108,15 +108,15 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
...
@@ -108,15 +108,15 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
when
(
bodyBean
.
confideLine
)
{
//1在线 2离线 3通话中 4继续通话
when
(
bodyBean
.
confideLine
)
{
//1在线 2离线 3通话中 4继续通话
1
,
4
->
{
1
,
4
->
{
tv_isLine
.
text
=
"在线"
tv_isLine
.
text
=
"在线"
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_main_color
)
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_main_color
)
}
}
2
->
{
2
->
{
tv_isLine
.
text
=
"离线"
tv_isLine
.
text
=
"离线"
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_color_666666
)
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_color_666666
)
}
}
3
->
{
3
->
{
tv_isLine
.
text
=
"通话中"
tv_isLine
.
text
=
"通话中"
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_color_ff8f38
)
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_color_ff8f38
)
}
}
}
}
}
}
...
@@ -145,9 +145,9 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
...
@@ -145,9 +145,9 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
img_play
.
visibility
=
View
.
VISIBLE
img_play
.
visibility
=
View
.
VISIBLE
}
}
if
(
confideIsPlay
)
{
if
(
confideIsPlay
)
{
img_play
.
setImageResource
(
R
.
drawable
.
confide
home
_playing
)
img_play
.
setImageResource
(
R
.
drawable
.
confide_playing
)
}
else
{
}
else
{
img_play
.
setImageResource
(
R
.
drawable
.
confide
home
_sond_play
)
img_play
.
setImageResource
(
R
.
drawable
.
confide_sond_play
)
}
}
img_play
.
setOnClickListener
{
img_play
.
setOnClickListener
{
if
(
confideIsPlay
)
{
if
(
confideIsPlay
)
{
...
@@ -163,9 +163,9 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
...
@@ -163,9 +163,9 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
*/
*/
private
fun
setSex
(
bodyBean
:
ConfideHomeBodyBean
)
{
private
fun
setSex
(
bodyBean
:
ConfideHomeBodyBean
)
{
if
(
bodyBean
.
confideSex
==
1
)
{
if
(
bodyBean
.
confideSex
==
1
)
{
img_sex
.
setImageResource
(
R
.
drawable
.
confide
home
_new_male
)
img_sex
.
setImageResource
(
R
.
drawable
.
confide_new_male
)
}
else
{
}
else
{
img_sex
.
setImageResource
(
R
.
drawable
.
confide
home
_new_female
)
img_sex
.
setImageResource
(
R
.
drawable
.
confide_new_female
)
}
}
}
}
...
@@ -215,7 +215,7 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
...
@@ -215,7 +215,7 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
textView
.
setTextColor
(
Color
.
parseColor
(
"#808080"
))
textView
.
setTextColor
(
Color
.
parseColor
(
"#808080"
))
textView
.
gravity
=
Gravity
.
CENTER
textView
.
gravity
=
Gravity
.
CENTER
textView
.
setPadding
(
dp3
,
0
,
dp3
,
0
)
textView
.
setPadding
(
dp3
,
0
,
dp3
,
0
)
textView
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_tag
)
textView
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_tag
)
textView
.
layoutParams
=
params
textView
.
layoutParams
=
params
textView
.
text
=
tag
textView
.
text
=
tag
flowlayout_tag
.
addView
(
textView
)
flowlayout_tag
.
addView
(
textView
)
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecommendExpertView.kt
View file @
5c7df153
...
@@ -7,7 +7,7 @@ import com.ydl.confide.R
...
@@ -7,7 +7,7 @@ import com.ydl.confide.R
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.bean.ConfideHomeDataBean
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.widget.adapter.RecommendExpertAdapter
import
com.ydl.confide.home.widget.adapter.RecommendExpertAdapter
import
kotlinx.android.synthetic.main.confide
home
_recommend_expert_view.view.*
import
kotlinx.android.synthetic.main.confide_recommend_expert_view.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -33,7 +33,7 @@ class ConfideHomeRecommendExpertView(context : Context, private var confideHomeE
...
@@ -33,7 +33,7 @@ class ConfideHomeRecommendExpertView(context : Context, private var confideHomeE
}
}
private
fun
initView
(){
private
fun
initView
(){
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_recommend_expert_view
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_recommend_expert_view
,
this
)
}
}
fun
initData
(
bean
:
ConfideHomeDataBean
?){
fun
initData
(
bean
:
ConfideHomeDataBean
?){
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecommendView.kt
View file @
5c7df153
...
@@ -18,7 +18,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
...
@@ -18,7 +18,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import
com.ydl.confide.home.config.IConfideHomeConfig
import
com.ydl.confide.home.config.IConfideHomeConfig
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.confide.home.contract.IConfideHomeContract
import
com.ydl.confide.home.event.IConfideHomeEvent
import
com.ydl.confide.home.event.IConfideHomeEvent
import
kotlinx.android.synthetic.main.confide
home
_recommend_view.view.*
import
kotlinx.android.synthetic.main.confide_recommend_view.view.*
/**
/**
* @author yuanwai
* @author yuanwai
...
@@ -41,7 +41,7 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
...
@@ -41,7 +41,7 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
private
fun
initView
()
{
private
fun
initView
()
{
var
params
=
FrameLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
var
params
=
FrameLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
layoutParams
=
params
layoutParams
=
params
View
.
inflate
(
context
,
R
.
layout
.
confide
home
_recommend_view
,
this
)
View
.
inflate
(
context
,
R
.
layout
.
confide_recommend_view
,
this
)
dp96
=
RxImageTool
.
dip2px
(
96f
)
dp96
=
RxImageTool
.
dip2px
(
96f
)
dp16
=
RxImageTool
.
dip2px
(
16f
)
dp16
=
RxImageTool
.
dip2px
(
16f
)
dp4
=
RxImageTool
.
dip2px
(
4f
)
dp4
=
RxImageTool
.
dip2px
(
4f
)
...
@@ -92,15 +92,15 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
...
@@ -92,15 +92,15 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
when
(
bodyBean
.
confideLine
)
{
//1在线 2离线 3通话中
when
(
bodyBean
.
confideLine
)
{
//1在线 2离线 3通话中
1
,
4
->
{
1
,
4
->
{
tv_isLine
.
text
=
"在线"
tv_isLine
.
text
=
"在线"
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_main_color
)
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_main_color
)
}
}
2
->
{
2
->
{
tv_isLine
.
text
=
"离线"
tv_isLine
.
text
=
"离线"
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_color_666666
)
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_color_666666
)
}
}
3
->
{
3
->
{
tv_isLine
.
text
=
"通话中"
tv_isLine
.
text
=
"通话中"
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_color_ff8f38
)
tv_isLine
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_color_ff8f38
)
}
}
// 4 -> {
// 4 -> {
// tv_confide.text = "继续倾诉"
// tv_confide.text = "继续倾诉"
...
@@ -133,9 +133,9 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
...
@@ -133,9 +133,9 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
iv_play
.
visibility
=
View
.
VISIBLE
iv_play
.
visibility
=
View
.
VISIBLE
}
}
if
(
bodyBean
.
confideIsPlay
)
{
if
(
bodyBean
.
confideIsPlay
)
{
iv_play
.
setImageResource
(
R
.
drawable
.
confide
home
_playing
)
iv_play
.
setImageResource
(
R
.
drawable
.
confide_playing
)
}
else
{
}
else
{
iv_play
.
setImageResource
(
R
.
drawable
.
confide
home
_sond_play
)
iv_play
.
setImageResource
(
R
.
drawable
.
confide_sond_play
)
}
}
iv_play
.
setOnClickListener
{
iv_play
.
setOnClickListener
{
if
(
bodyBean
.
confideIsPlay
!!
)
{
if
(
bodyBean
.
confideIsPlay
!!
)
{
...
@@ -151,9 +151,9 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
...
@@ -151,9 +151,9 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
*/
*/
private
fun
setSex
(
bodyBean
:
ConfideHomeBodyBean
)
{
private
fun
setSex
(
bodyBean
:
ConfideHomeBodyBean
)
{
if
(
bodyBean
.
confideSex
==
1
)
{
if
(
bodyBean
.
confideSex
==
1
)
{
img_sex
.
setImageResource
(
R
.
drawable
.
confide
home
_new_male
)
img_sex
.
setImageResource
(
R
.
drawable
.
confide_new_male
)
}
else
{
}
else
{
img_sex
.
setImageResource
(
R
.
drawable
.
confide
home
_new_female
)
img_sex
.
setImageResource
(
R
.
drawable
.
confide_new_female
)
}
}
}
}
...
@@ -216,7 +216,7 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
...
@@ -216,7 +216,7 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
textView
.
setTextColor
(
Color
.
parseColor
(
"#808080"
))
textView
.
setTextColor
(
Color
.
parseColor
(
"#808080"
))
textView
.
gravity
=
Gravity
.
CENTER
textView
.
gravity
=
Gravity
.
CENTER
textView
.
setPadding
(
dp3
,
0
,
dp3
,
0
)
textView
.
setPadding
(
dp3
,
0
,
dp3
,
0
)
textView
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_bg_tag
)
textView
.
setBackgroundResource
(
R
.
drawable
.
confide_bg_tag
)
textView
.
layoutParams
=
params
textView
.
layoutParams
=
params
textView
.
text
=
tag
textView
.
text
=
tag
flowlayout_tag
.
addView
(
textView
)
flowlayout_tag
.
addView
(
textView
)
...
@@ -230,16 +230,16 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
...
@@ -230,16 +230,16 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
private
fun
setConfideButton
(
bodyBean
:
ConfideHomeBodyBean
)
{
private
fun
setConfideButton
(
bodyBean
:
ConfideHomeBodyBean
)
{
when
(
bodyBean
.
confideLine
)
{
//1在线 2离线 3通话中 4继续倾诉
when
(
bodyBean
.
confideLine
)
{
//1在线 2离线 3通话中 4继续倾诉
1
->
{
1
->
{
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_line_1
)
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide_line_1
)
}
}
2
->
{
2
->
{
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_line_2
)
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide_line_2
)
}
}
3
->
{
3
->
{
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_line_3
)
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide_line_3
)
}
}
4
->
{
4
->
{
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide
home
_line_4
)
tv_confide
.
setBackgroundResource
(
R
.
drawable
.
confide_line_4
)
}
}
}
}
tv_confide
.
setOnClickListener
{
tv_confide
.
setOnClickListener
{
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfidePlayerFloatView.java
View file @
5c7df153
...
@@ -48,7 +48,7 @@ public class ConfidePlayerFloatView extends FrameLayout {
...
@@ -48,7 +48,7 @@ public class ConfidePlayerFloatView extends FrameLayout {
wm
=
(
WindowManager
)
getContext
().
getSystemService
(
Context
.
WINDOW_SERVICE
);
wm
=
(
WindowManager
)
getContext
().
getSystemService
(
Context
.
WINDOW_SERVICE
);
dp3
=
RxImageTool
.
dip2px
(
3
f
);
dp3
=
RxImageTool
.
dip2px
(
3
f
);
mTouchSlop
=
ViewConfiguration
.
get
(
getContext
()).
getScaledTouchSlop
()
+
5
;
mTouchSlop
=
ViewConfiguration
.
get
(
getContext
()).
getScaledTouchSlop
()
+
5
;
View
view
=
inflate
(
context
,
R
.
layout
.
confide
home
_playing_float_btn
,
this
);
View
view
=
inflate
(
context
,
R
.
layout
.
confide_playing_float_btn
,
this
);
playHead
=
view
.
findViewById
(
R
.
id
.
play_head
);
playHead
=
view
.
findViewById
(
R
.
id
.
play_head
);
playState
=
view
.
findViewById
(
R
.
id
.
play_state
);
playState
=
view
.
findViewById
(
R
.
id
.
play_state
);
playClose
=
findViewById
(
R
.
id
.
play_close
);
playClose
=
findViewById
(
R
.
id
.
play_close
);
...
@@ -168,7 +168,7 @@ public class ConfidePlayerFloatView extends FrameLayout {
...
@@ -168,7 +168,7 @@ public class ConfidePlayerFloatView extends FrameLayout {
}
else
{
}
else
{
if
(!
isMove
)
{
if
(!
isMove
)
{
if
(
isFmPlay
)
{
if
(
isFmPlay
)
{
playState
.
setImageResource
(
R
.
drawable
.
confide
home
_play_stop
);
playState
.
setImageResource
(
R
.
drawable
.
confide_play_stop
);
playState
.
setPadding
(
dp3
,
dp3
,
dp3
,
dp3
);
playState
.
setPadding
(
dp3
,
dp3
,
dp3
,
dp3
);
playClose
.
setVisibility
(
VISIBLE
);
playClose
.
setVisibility
(
VISIBLE
);
dividerLine
.
setVisibility
(
VISIBLE
);
dividerLine
.
setVisibility
(
VISIBLE
);
...
@@ -176,7 +176,7 @@ public class ConfidePlayerFloatView extends FrameLayout {
...
@@ -176,7 +176,7 @@ public class ConfidePlayerFloatView extends FrameLayout {
mPlayCallBack
.
click
(
false
);
mPlayCallBack
.
click
(
false
);
}
}
}
else
{
}
else
{
playState
.
setImageResource
(
R
.
drawable
.
confide
home
_play_pause
);
playState
.
setImageResource
(
R
.
drawable
.
confide_play_pause
);
playState
.
setPadding
(
dp3
,
dp3
,
dp3
,
dp3
);
playState
.
setPadding
(
dp3
,
dp3
,
dp3
,
dp3
);
playClose
.
setVisibility
(
GONE
);
playClose
.
setVisibility
(
GONE
);
dividerLine
.
setVisibility
(
GONE
);
dividerLine
.
setVisibility
(
GONE
);
...
@@ -229,12 +229,12 @@ public class ConfidePlayerFloatView extends FrameLayout {
...
@@ -229,12 +229,12 @@ public class ConfidePlayerFloatView extends FrameLayout {
public
void
updatePlayState
(
Boolean
isPlaying
)
{
public
void
updatePlayState
(
Boolean
isPlaying
)
{
this
.
isFmPlay
=
isPlaying
;
this
.
isFmPlay
=
isPlaying
;
if
(
isPlaying
)
{
if
(
isPlaying
)
{
playState
.
setImageResource
(
R
.
drawable
.
confide
home
_play_pause
);
playState
.
setImageResource
(
R
.
drawable
.
confide_play_pause
);
playState
.
setPadding
(
dp3
,
dp3
,
dp3
,
dp3
);
playState
.
setPadding
(
dp3
,
dp3
,
dp3
,
dp3
);
playClose
.
setVisibility
(
GONE
);
playClose
.
setVisibility
(
GONE
);
dividerLine
.
setVisibility
(
VISIBLE
);
dividerLine
.
setVisibility
(
VISIBLE
);
}
else
{
}
else
{
playState
.
setImageResource
(
R
.
drawable
.
confide
home
_play_stop
);
playState
.
setImageResource
(
R
.
drawable
.
confide_play_stop
);
playState
.
setPadding
(
dp3
,
dp3
,
dp3
,
dp3
);
playState
.
setPadding
(
dp3
,
dp3
,
dp3
,
dp3
);
playClose
.
setVisibility
(
VISIBLE
);
playClose
.
setVisibility
(
VISIBLE
);
}
}
...
...
m-confide/src/main/res/anim/activity_open_down.xml
→
m-confide/src/main/res/anim/
confide_
activity_open_down.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/anim/confidehom
e_play_anim.xml
→
m-confide/src/main/res/
anim/confid
e_play_anim.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/color/confidehom
e_color_filter_selector.xml
→
m-confide/src/main/res/
color/confid
e_color_filter_selector.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:color=
"@color/
baby_blu
e"
android:state_selected=
"true"
android:state_enabled=
"true"
/>
<item
android:color=
"@color/
confide_main_them
e"
android:state_selected=
"true"
android:state_enabled=
"true"
/>
<item
android:color=
"@color/_6"
android:state_enabled=
"true"
/>
<item
android:color=
"@color/_6"
android:state_enabled=
"true"
/>
</selector>
</selector>
\ No newline at end of file
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_back.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_back.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_downgrey.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_downgrey.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_float_head.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_float_head.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/ic_close_orange_18dp.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
ic_close_orange_18dp.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/ico_info.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
ico_info.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_line_1.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_line_1.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_line_2.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_line_2.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_line_3.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_line_3.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_line_4.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_line_4.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_listen.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_listen.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_listen_bg.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_listen_bg.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_listen_disc.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_listen_disc.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_listen_mask.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_listen_mask.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_listen_play.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_listen_play.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_mine.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_mine.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_more.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_more.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_new_female.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_new_female.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_new_male.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_new_male.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/new_play.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
new_play.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_paused.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_paused.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_play_close.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_play_close.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_play_pause.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_play_pause.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_play_stop.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_play_stop.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_playing.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_playing.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/pop_dongtai.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
pop_dongtai.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_recommend.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_recommend.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_sond_play.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_sond_play.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/state_call.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
state_call.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/state_offline.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
state_offline.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/state_stop.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
state_stop.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/voice_1.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
voice_1.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/voice_2.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
voice_2.png
View file @
5c7df153
File moved
m-confide/src/main/res/drawable-xhdpi/voice_3.png
→
m-confide/src/main/res/drawable-xhdpi/
confide_
voice_3.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable-xhdpi/confidehom
e_zuijin.png
→
m-confide/src/main/res/
drawable-xhdpi/confid
e_zuijin.png
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_bg_color_666666.xml
→
m-confide/src/main/res/
drawable/confid
e_bg_color_666666.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_bg_color_ff5b05.xml
→
m-confide/src/main/res/
drawable/confid
e_bg_color_ff5b05.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/
dp_3"
/>
<corners
android:radius=
"@dimen/
confide_dp_3"
/>
<stroke
android:color=
"#ff5b05"
android:width=
"1px"
/>
<stroke
android:color=
"#ff5b05"
android:width=
"1px"
/>
</shape>
</shape>
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_bg_color_ff8f38.xml
→
m-confide/src/main/res/
drawable/confid
e_bg_color_ff8f38.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_bg_main_color.xml
→
m-confide/src/main/res/
drawable/confid
e_bg_main_color.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_bg_radius_line_gray_20.xml
→
m-confide/src/main/res/
drawable/confid
e_bg_radius_line_gray_20.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_bg_sound_selected.xml
→
m-confide/src/main/res/
drawable/confid
e_bg_sound_selected.xml
View file @
5c7df153
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
android:shape=
"rectangle"
android:shape=
"rectangle"
android:useLevel=
"false"
>
android:useLevel=
"false"
>
<solid
android:color=
"
#1DA1F2
"
/>
<solid
android:color=
"
@color/confide_main_theme
"
/>
<corners
android:radius=
"10dp"
/>
<corners
android:radius=
"10dp"
/>
...
...
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_bg_sound_unselect.xml
→
m-confide/src/main/res/
drawable/confid
e_bg_sound_unselect.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_bg_tag.xml
→
m-confide/src/main/res/
drawable/confid
e_bg_tag.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/
card_consult_bg.xml
→
m-confide/src/main/res/
drawable/confide_
card_consult_bg.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_common_bg.xml
→
m-confide/src/main/res/
drawable/confid
e_common_bg.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<gradient
<gradient
android:startColor=
"
#56CCF2
"
android:startColor=
"
@color/confide_main_theme_light
"
android:endColor=
"
#2F80ED
"
android:endColor=
"
@color/confide_main_theme
"
android:angle=
"0"
/>
android:angle=
"0"
/>
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_confidehome_bg.xml
→
m-confide/src/main/res/
drawable/confid
e_confidehome_bg.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<gradient
<gradient
android:startColor=
"
#56CCF2
"
android:startColor=
"
@color/confide_main_theme_light
"
android:endColor=
"
#2F80ED
"
android:endColor=
"
@color/confide_main_theme
"
android:angle=
"0"
/>
android:angle=
"0"
/>
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/
layouts/confidehome/drawable/
consult_btn_bg.xml
→
m-confide/src/main/res/
drawable/confide_
consult_btn_bg.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_filter_btn_bg.xml
→
m-confide/src/main/res/
drawable/confid
e_filter_btn_bg.xml
View file @
5c7df153
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
<corners
android:radius=
"20dp"
/>
<corners
android:radius=
"20dp"
/>
<!--<stroke-->
<!--<stroke-->
<!--android:width="1dp"-->
<!--android:width="1dp"-->
<!--android:color="@color/
platform_main_theme_blu
e" />-->
<!--android:color="@color/
confide_main_them
e" />-->
<gradient
<gradient
android:startColor=
"
#1DA1F2
"
android:startColor=
"
@color/confide_main_theme
"
android:endColor=
"
#42C1FF
"
android:endColor=
"
@color/confide_main_theme
"
android:angle=
"0"
/>
android:angle=
"0"
/>
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_filter_reset_btn_bg.xml
→
m-confide/src/main/res/
drawable/confid
e_filter_reset_btn_bg.xml
View file @
5c7df153
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<corners
android:radius=
"20dp"
/>
<corners
android:radius=
"20dp"
/>
<stroke
<stroke
android:width=
"1px"
android:width=
"1px"
android:color=
"@color/
platform_main_theme_blu
e"
/>
android:color=
"@color/
confide_main_them
e"
/>
<!--<solid android:color="@color/white"/>-->
<!--<solid android:color="@color/white"/>-->
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_filter_select_nor.xml
→
m-confide/src/main/res/
drawable/confid
e_filter_select_nor.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_filter_select_sel.xml
→
m-confide/src/main/res/
drawable/confid
e_filter_select_sel.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"4dp"
/>
<corners
android:radius=
"4dp"
/>
<solid
android:color=
"#
1A1DA1F2
"
/>
<solid
android:color=
"#
FFFFFF
"
/>
<stroke
android:width=
"1px"
android:color=
"
#1DA1F2
"
/>
<stroke
android:width=
"1px"
android:color=
"
@color/confide_main_theme
"
/>
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_recent_btn_on_bg.xml
→
m-confide/src/main/res/
drawable/confid
e_recent_btn_on_bg.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"100dp"
/>
<corners
android:radius=
"100dp"
/>
<solid
android:color=
"
#1da1f2
"
/>
<solid
android:color=
"
@color/confide_main_theme
"
/>
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_recommend_expert_bg.xml
→
m-confide/src/main/res/
drawable/confid
e_recommend_expert_bg.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_recommend_expert_btn_bg.xml
→
m-confide/src/main/res/
drawable/confid
e_recommend_expert_btn_bg.xml
View file @
5c7df153
File moved
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_recommend_expert_line_bg.xml
→
m-confide/src/main/res/
drawable/confid
e_recommend_expert_line_bg.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:bottomRightRadius=
"3dp"
/>
<corners
android:bottomRightRadius=
"3dp"
/>
<solid
android:color=
"
#1DA1F2
"
/>
<solid
android:color=
"
@color/confide_main_theme
"
/>
</shape>
</shape>
\ No newline at end of file
m-confide/src/main/res/
layouts/confidehome/drawable/confidehom
e_recommend_expert_title_bg.xml
→
m-confide/src/main/res/
drawable/confid
e_recommend_expert_title_bg.xml
View file @
5c7df153
File moved
m-confide/src/main/res/drawable/shape_alpha_left.xml
→
m-confide/src/main/res/drawable/
confide_
shape_alpha_left.xml
View file @
5c7df153
File moved
m-confide/src/main/res/drawable/shape_alpha_right.xml
→
m-confide/src/main/res/drawable/
confide_
shape_alpha_right.xml
View file @
5c7df153
File moved
m-confide/src/main/res/drawable/shape_circle_white_bg.xml
→
m-confide/src/main/res/drawable/
confide_
shape_circle_white_bg.xml
View file @
5c7df153
File moved
m-confide/src/main/res/drawable/shape_gray_round.xml
→
m-confide/src/main/res/drawable/
confide_
shape_gray_round.xml
View file @
5c7df153
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<!-- 圆角 -->
<!-- 圆角 -->
<corners
android:radius=
"@dimen/
default_dis_size_big"
/>
<corners
android:radius=
"@dimen/
confide_default_dis_size_big"
/>
<stroke
<stroke
android:width=
"1dp"
android:width=
"1dp"
android:color=
"#D6D6D6"
/>
android:color=
"#D6D6D6"
/>
...
...
m-confide/src/main/res/drawable/show_online_tv.xml
→
m-confide/src/main/res/drawable/
confide_
show_online_tv.xml
View file @
5c7df153
File moved
m-confide/src/main/res/drawable/show_unonline_tv.xml
→
m-confide/src/main/res/drawable/
confide_
show_unonline_tv.xml
View file @
5c7df153
File moved
m-confide/src/main/res/drawable/text_select_green_grey.xml
→
m-confide/src/main/res/drawable/
confide_
text_select_green_grey.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:state_checked=
"true"
android:color=
"@color/
platform_google_green
"
/>
<item
android:state_checked=
"true"
android:color=
"@color/
confide_main_theme
"
/>
<item
android:state_checked=
"false"
android:color=
"@color/platform_text_gray"
/>
<item
android:state_checked=
"false"
android:color=
"@color/platform_text_gray"
/>
</selector>
</selector>
\ No newline at end of file
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_banner.xml
→
m-confide/src/main/res/layout
/confid
e_banner.xml
View file @
5c7df153
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
android:layout_height=
"145dp"
android:layout_height=
"145dp"
android:layout_marginBottom=
"30dp"
android:layout_marginBottom=
"30dp"
app:pa_indicator_different_width=
"14dp"
app:pa_indicator_different_width=
"14dp"
app:pa_indicator_drawable_selected=
"@drawable/confide
home_bg_sound_selected"
app:pa_indicator_drawable_selected=
"@drawable/confide
_bg_sound_selected"
app:pa_indicator_drawable_unselected=
"@drawable/confide
home_bg_sound_unselect"
app:pa_indicator_drawable_unselected=
"@drawable/confide
_bg_sound_unselect"
app:pa_indicator_height=
"5dp"
app:pa_indicator_height=
"5dp"
app:pa_indicator_margin=
"3dp"
app:pa_indicator_margin=
"3dp"
app:pa_is_auto_play=
"false"
app:pa_is_auto_play=
"false"
...
...
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_banner_view.xml
→
m-confide/src/main/res/layout
/confid
e_banner_view.xml
View file @
5c7df153
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"118dp"
android:layout_height=
"118dp"
android:background=
"@drawable/confide
home_confidehome_bg"
/>
android:background=
"@drawable/confide
_confidehome_bg"
/>
<FrameLayout
<FrameLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_marginTop=
"@dimen/
dp_10"
android:layout_marginTop=
"@dimen/
confide_dp_10"
android:layout_height=
"160dp"
android:layout_height=
"160dp"
android:layout_marginBottom=
"20dp"
>
android:layout_marginBottom=
"20dp"
>
<com.ydl.ydlcommon.view.banner.Banner
<com.ydl.ydlcommon.view.banner.Banner
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:layout_marginRight=
"15dp"
android:layout_marginRight=
"15dp"
app:pa_indicator_different_width=
"14dp"
app:pa_indicator_different_width=
"14dp"
app:pa_indicator_drawable_selected=
"@drawable/confide
home_bg_sound_selected"
app:pa_indicator_drawable_selected=
"@drawable/confide
_bg_sound_selected"
app:pa_indicator_drawable_unselected=
"@drawable/confide
home_bg_sound_unselect"
app:pa_indicator_drawable_unselected=
"@drawable/confide
_bg_sound_unselect"
app:pa_indicator_height=
"4dp"
app:pa_indicator_height=
"4dp"
app:pa_is_selected_same_unselected=
"false"
app:pa_is_selected_same_unselected=
"false"
app:pa_is_show_inside=
"false"
/>
app:pa_is_show_inside=
"false"
/>
...
...
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_category_view.xml
→
m-confide/src/main/res/layout
/confid
e_category_view.xml
View file @
5c7df153
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<com.ydl.confide.home.widget.ConfideHomeCategoryItemView
<com.ydl.confide.home.widget.ConfideHomeCategoryItemView
android:id=
"@+id/v_item1"
android:id=
"@+id/v_item1"
android:layout_width=
"0px"
android:layout_width=
"0px"
android:layout_marginLeft=
"@dimen/
dp_15"
android:layout_marginLeft=
"@dimen/
confide_dp_15"
android:layout_marginTop=
"@dimen/
dp_19"
android:layout_marginTop=
"@dimen/
confide_dp_19"
android:layout_marginBottom=
"@dimen/
dp_18"
android:layout_marginBottom=
"@dimen/
confide_dp_18"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:layout_weight=
"1"
app:cardCornerRadius=
"6dp"
app:cardCornerRadius=
"6dp"
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
<com.ydl.confide.home.widget.ConfideHomeCategoryItemView
<com.ydl.confide.home.widget.ConfideHomeCategoryItemView
android:id=
"@+id/v_item2"
android:id=
"@+id/v_item2"
android:layout_marginLeft=
"10dp"
android:layout_marginLeft=
"10dp"
android:layout_marginTop=
"@dimen/
dp_19"
android:layout_marginTop=
"@dimen/
confide_dp_19"
android:layout_marginBottom=
"@dimen/
dp_18"
android:layout_marginBottom=
"@dimen/
confide_dp_18"
android:layout_marginRight=
"@dimen/
dp_15"
android:layout_marginRight=
"@dimen/
confide_dp_15"
android:layout_width=
"0px"
android:layout_width=
"0px"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
...
m-confide/src/main/res/layout/
view
_empty.xml
→
m-confide/src/main/res/layout/
confide
_empty.xml
View file @
5c7df153
File moved
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_footer.xml
→
m-confide/src/main/res/layout
/confid
e_footer.xml
View file @
5c7df153
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
android:drawablePadding=
"5dp"
android:drawablePadding=
"5dp"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"更多情感恋爱专家"
android:text=
"更多情感恋爱专家"
android:drawableRight=
"@drawable/confide
home_more"
android:drawableRight=
"@drawable/confide
_more"
android:textColor=
"#666666"
android:textColor=
"#666666"
android:textSize=
"15dp"
/>
android:textSize=
"15dp"
/>
</merge>
</merge>
m-confide/src/main/res/layout/fragment_dialog_phone_call.xml
→
m-confide/src/main/res/layout/
confide_
fragment_dialog_phone_call.xml
View file @
5c7df153
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
<ImageView
<ImageView
android:id=
"@+id/sdv_head"
android:id=
"@+id/sdv_head"
android:layout_width=
"@dimen/
head_size_big"
android:layout_width=
"@dimen/
confide_head_size_big"
android:layout_height=
"@dimen/
head_size_big"
android:layout_height=
"@dimen/
confide_head_size_big"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:contentDescription=
"@null"
/>
android:contentDescription=
"@null"
/>
...
@@ -42,15 +42,15 @@
...
@@ -42,15 +42,15 @@
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/
divide_line_stroke_width"
android:layout_height=
"@dimen/
confide_divide_line_stroke_width"
android:layout_marginBottom=
"@dimen/
default_dis_size_huge"
android:layout_marginBottom=
"@dimen/
confide_default_dis_size_huge"
android:background=
"#22222B24"
/>
android:background=
"#22222B24"
/>
<TextView
<TextView
android:id=
"@+id/tv_phone"
android:id=
"@+id/tv_phone"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/
default_dis_size_huge"
android:layout_marginBottom=
"@dimen/
confide_default_dis_size_huge"
android:text=
"请注意接听,通常为0571开头号码"
android:text=
"请注意接听,通常为0571开头号码"
android:textColor=
"@color/white"
/>
android:textColor=
"@color/white"
/>
...
@@ -58,14 +58,14 @@
...
@@ -58,14 +58,14 @@
android:id=
"@+id/tv_hint"
android:id=
"@+id/tv_hint"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/
default_dis_size_huge"
android:layout_marginBottom=
"@dimen/
confide_default_dis_size_huge"
android:text=
"如倒计时结束后仍然未接到来电,请挂断后重新连接"
android:text=
"如倒计时结束后仍然未接到来电,请挂断后重新连接"
android:textColor=
"@color/white"
/>
android:textColor=
"@color/white"
/>
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/
divide_line_stroke_width"
android:layout_height=
"@dimen/
confide_divide_line_stroke_width"
android:layout_marginBottom=
"@dimen/
default_dis_size_huge"
android:layout_marginBottom=
"@dimen/
confide_default_dis_size_huge"
android:background=
"#22222B24"
/>
android:background=
"#22222B24"
/>
</LinearLayout>
</LinearLayout>
...
@@ -106,6 +106,6 @@
...
@@ -106,6 +106,6 @@
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"30dp"
android:layout_marginBottom=
"30dp"
android:src=
"@drawable/
state_stop"
android:src=
"@drawable/
confide_state_stop"
android:visibility=
"invisible"
/>
android:visibility=
"invisible"
/>
</RelativeLayout>
</RelativeLayout>
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_good_item.xml
→
m-confide/src/main/res/layout
/confid
e_good_item.xml
View file @
5c7df153
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:gravity=
"center"
android:gravity=
"center"
android:textColor=
"@color/confide
home_color_filter_selector"
android:textColor=
"@color/confide
_color_filter_selector"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:background=
"@drawable/confide
home_filter_select_nor"
android:background=
"@drawable/confide
_filter_select_nor"
android:textSize=
"@dimen/
dp_13"
android:textSize=
"@dimen/
confide_dp_13"
tools:text=
"恋爱婚姻"
/>
tools:text=
"恋爱婚姻"
/>
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_good_popup_window.xml
→
m-confide/src/main/res/layout
/confid
e_good_popup_window.xml
View file @
5c7df153
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0.5dp"
android:layout_height=
"0.5dp"
android:background=
"@color/confide
home_filters_line"
/>
android:background=
"@color/confide
_filters_line"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
android:id=
"@+id/tv_title"
android:id=
"@+id/tv_title"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_13"
android:textSize=
"@dimen/
confide_dp_13"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
android:layout_marginLeft=
"24dp"
android:layout_marginLeft=
"24dp"
android:layout_marginTop=
"25dp"
android:layout_marginTop=
"25dp"
...
@@ -28,8 +28,8 @@
...
@@ -28,8 +28,8 @@
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/rvGood"
android:id=
"@+id/rvGood"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"@dimen/
dp_16"
android:layout_marginLeft=
"@dimen/
confide_dp_16"
android:layout_marginRight=
"@dimen/
dp_16"
android:layout_marginRight=
"@dimen/
confide_dp_16"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
</LinearLayout>
</LinearLayout>
...
@@ -47,10 +47,10 @@
...
@@ -47,10 +47,10 @@
android:layout_marginBottom=
"24dp"
android:layout_marginBottom=
"24dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:background=
"@drawable/confide
home_filter_reset_btn_bg"
android:background=
"@drawable/confide
_filter_reset_btn_bg"
android:text=
"@string/platform_reset"
android:text=
"@string/platform_reset"
android:textColor=
"@color/
platform_main_theme_blue"
android:textColor=
"@color/
confide_main_theme"
android:textSize=
"@dimen/
dp_18"
/>
android:textSize=
"@dimen/
confide_dp_18"
/>
<Button
<Button
android:id=
"@+id/btnConfirm"
android:id=
"@+id/btnConfirm"
...
@@ -61,11 +61,11 @@
...
@@ -61,11 +61,11 @@
android:layout_marginRight=
"15dp"
android:layout_marginRight=
"15dp"
android:layout_marginBottom=
"24dp"
android:layout_marginBottom=
"24dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:background=
"@drawable/confide
home_filter_btn_bg"
android:background=
"@drawable/confide
_filter_btn_bg"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"@string/platform_confirm"
android:text=
"@string/platform_confirm"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/
dp_18"
/>
android:textSize=
"@dimen/
confide_dp_18"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:id=
"@+id/v_zhezhao"
android:id=
"@+id/v_zhezhao"
...
...
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_home_activity.xml
→
m-confide/src/main/res/layout
/confid
e_home_activity.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<
RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
>
android:background=
"@color/white"
android:orientation=
"vertical"
>
<include
layout=
"@layout/confide_title_bar"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<com.jcodecraeer.xrecyclerview.XRecyclerView
<com.jcodecraeer.xrecyclerview.XRecyclerView
android:id=
"@+id/rv_list"
android:id=
"@+id/rv_list"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"48dp"
/>
/>
<include
layout=
"@layout/confidehome_title_bar"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/quick_consult_card"
android:id=
"@+id/quick_consult_card"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_height=
"50dp"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginBottom=
"30dp"
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:layout_marginRight=
"15dp"
android:layout_marginRight=
"15dp"
android:background=
"@drawable/card_consult_bg"
android:layout_marginBottom=
"30dp"
android:background=
"@drawable/confide_card_consult_bg"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/dp_25"
android:paddingLeft=
"@dimen/confide_dp_25"
android:paddingRight=
"@dimen/dp_25"
android:paddingRight=
"@dimen/confide_dp_25"
android:visibility=
"gone"
>
android:visibility=
"gone"
>
<TextView
<TextView
...
@@ -42,10 +47,10 @@
...
@@ -42,10 +47,10 @@
android:id=
"@+id/quick_consult_btn"
android:id=
"@+id/quick_consult_btn"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:background=
"@drawable/consult_btn_bg"
android:background=
"@drawable/confide_consult_btn_bg"
android:gravity=
"center"
android:gravity=
"center"
android:paddingLeft=
"@dimen/dp_20"
android:paddingLeft=
"@dimen/confide_dp_20"
android:paddingRight=
"@dimen/dp_20"
android:paddingRight=
"@dimen/confide_dp_20"
android:text=
"一键倾诉"
android:text=
"一键倾诉"
android:textColor=
"@color/platform_color_242424"
android:textColor=
"@color/platform_color_242424"
android:textSize=
"14dp"
android:textSize=
"14dp"
...
@@ -56,17 +61,18 @@
...
@@ -56,17 +61,18 @@
android:id=
"@+id/v_zhezhao"
android:id=
"@+id/v_zhezhao"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"96dp"
android:layout_marginTop=
"48dp"
android:background=
"#80000000"
android:background=
"#80000000"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
<com.ydl.confide.home.widget.ConfideHomeFilterView
<com.ydl.confide.home.widget.ConfideHomeFilterView
android:id=
"@+id/v_filterView"
android:id=
"@+id/v_filterView"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_height=
"48dp"
android:layout_marginTop=
"48dp"
android:background=
"@color/white"
android:background=
"@color/white"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
<com.ydl.ydlcommon.mvp.lce.view.YDLStateView
<com.ydl.ydlcommon.mvp.lce.view.YDLStateView
android:id=
"@+id/lce_state_view"
android:id=
"@+id/lce_state_view"
...
@@ -75,6 +81,8 @@
...
@@ -75,6 +81,8 @@
android:layout_alignLeft=
"@+id/rv_list"
android:layout_alignLeft=
"@+id/rv_list"
android:layout_alignTop=
"@+id/rv_list"
android:layout_alignTop=
"@+id/rv_list"
android:layout_alignRight=
"@+id/rv_list"
android:layout_alignRight=
"@+id/rv_list"
android:layout_alignBottom=
"@+id/rv_list"
/>
android:layout_alignBottom=
"@+id/rv_list"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_item_category.xml
→
m-confide/src/main/res/layout
/confid
e_item_category.xml
View file @
5c7df153
...
@@ -10,14 +10,14 @@
...
@@ -10,14 +10,14 @@
android:layout_height=
"35dp"
android:layout_height=
"35dp"
android:layout_marginTop=
"17dp"
android:layout_marginTop=
"17dp"
android:layout_marginLeft=
"16dp"
android:layout_marginLeft=
"16dp"
tools:background=
"@drawable/confide
home_recent_btn_on_bg"
/>
tools:background=
"@drawable/confide
_recent_btn_on_bg"
/>
<TextView
<TextView
android:id=
"@id/tv_title"
android:id=
"@id/tv_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/
dp_17"
android:layout_marginTop=
"@dimen/
confide_dp_17"
android:layout_marginLeft=
"59dp"
android:layout_marginLeft=
"59dp"
android:textSize=
"@dimen/
dp_13"
android:textSize=
"@dimen/
confide_dp_13"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
tools:text=
"倾诉指南"
/>
tools:text=
"倾诉指南"
/>
<TextView
<TextView
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"59.5dp"
android:layout_marginLeft=
"59.5dp"
android:layout_marginTop=
"38dp"
android:layout_marginTop=
"38dp"
android:textSize=
"@dimen/
dp_10"
android:textSize=
"@dimen/
confide_dp_10"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
tools:text=
"排忧疏导,隐私安全"
/>
tools:text=
"排忧疏导,隐私安全"
/>
</FrameLayout>
</FrameLayout>
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_item_header.xml
→
m-confide/src/main/res/layout
/confid
e_item_header.xml
View file @
5c7df153
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
android:layout_width=
"18dp"
android:layout_width=
"18dp"
android:layout_height=
"18dp"
android:layout_height=
"18dp"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
tools:src=
"@drawable/confide
home_zuijin"
tools:src=
"@drawable/confide
_zuijin"
android:layout_marginLeft=
"15dp"
/>
android:layout_marginLeft=
"15dp"
/>
<TextView
<TextView
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
android:paddingBottom=
"3dp"
android:paddingBottom=
"3dp"
android:layout_marginRight=
"15dp"
android:layout_marginRight=
"15dp"
android:textSize=
"10sp"
android:textSize=
"10sp"
android:background=
"@drawable/confide
home_bg_radius_line_gray_20"
android:background=
"@drawable/confide
_bg_radius_line_gray_20"
tools:text=
"更多"
/>
tools:text=
"更多"
/>
</merge>
</merge>
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_listen_and_found_item_view.xml
→
m-confide/src/main/res/layout
/confid
e_listen_and_found_item_view.xml
View file @
5c7df153
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/
dp_15"
android:layout_marginLeft=
"@dimen/
confide_dp_15"
android:layout_marginRight=
"@dimen/
dp_15"
android:layout_marginRight=
"@dimen/
confide_dp_15"
android:layout_marginBottom=
"1dp"
android:layout_marginBottom=
"1dp"
android:layout_marginTop=
"1dp"
android:layout_marginTop=
"1dp"
app:cardElevation=
"1dp"
app:cardElevation=
"1dp"
...
@@ -19,40 +19,40 @@
...
@@ -19,40 +19,40 @@
android:id=
"@+id/img_bg"
android:id=
"@+id/img_bg"
android:layout_width=
"116dp"
android:layout_width=
"116dp"
android:layout_height=
"116dp"
android:layout_height=
"116dp"
android:background=
"@drawable/confide
home_listen_bg"
/>
android:background=
"@drawable/confide
_listen_bg"
/>
<!--播放图片-->
<!--播放图片-->
<ImageView
<ImageView
android:id=
"@+id/img_disc"
android:id=
"@+id/img_disc"
android:layout_width=
"94dp"
android:layout_width=
"94dp"
android:layout_height=
"94dp"
android:layout_height=
"94dp"
android:layout_marginLeft=
"@dimen/
dp_11"
android:layout_marginLeft=
"@dimen/
confide_dp_11"
android:layout_marginTop=
"@dimen/
dp_11"
android:layout_marginTop=
"@dimen/
confide_dp_11"
android:background=
"@drawable/confide
home_listen_disc"
/>
android:background=
"@drawable/confide
_listen_disc"
/>
<ImageView
<ImageView
android:id=
"@+id/img_play"
android:id=
"@+id/img_play"
android:layout_width=
"38dp"
android:layout_width=
"38dp"
android:layout_height=
"38dp"
android:layout_height=
"38dp"
android:layout_marginLeft=
"39dp"
android:layout_marginLeft=
"39dp"
android:layout_marginTop=
"39dp"
android:layout_marginTop=
"39dp"
android:background=
"@drawable/confide
home_listen_play"
/>
android:background=
"@drawable/confide
_listen_play"
/>
<!--遮罩图片-->
<!--遮罩图片-->
<ImageView
<ImageView
android:id=
"@+id/img_mask"
android:id=
"@+id/img_mask"
android:layout_width=
"116dp"
android:layout_width=
"116dp"
android:layout_height=
"116dp"
android:layout_height=
"116dp"
android:background=
"@drawable/confide
home_listen_mask"
/>
android:background=
"@drawable/confide
_listen_mask"
/>
<TextView
<TextView
android:id=
"@+id/tv_isLine"
android:id=
"@+id/tv_isLine"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/confide
home_recommend_expert_line_bg"
android:background=
"@drawable/confide
_recommend_expert_line_bg"
android:paddingBottom=
"1dp"
android:paddingBottom=
"1dp"
android:paddingLeft=
"9dp"
android:paddingLeft=
"9dp"
android:paddingRight=
"9dp"
android:paddingRight=
"9dp"
android:paddingTop=
"1dp"
android:paddingTop=
"1dp"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/
dp_10"
android:textSize=
"@dimen/
confide_dp_10"
tools:text=
"在线"
/>
tools:text=
"在线"
/>
<TextView
<TextView
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
android:layout_marginLeft=
"136dp"
android:layout_marginLeft=
"136dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:textColor=
"#555555"
android:textColor=
"#555555"
android:textSize=
"@dimen/
dp_15"
android:textSize=
"@dimen/
confide_dp_15"
tools:text=
"姚雨晴"
/>
tools:text=
"姚雨晴"
/>
<ImageView
<ImageView
...
@@ -72,17 +72,17 @@
...
@@ -72,17 +72,17 @@
android:layout_marginLeft=
"6dp"
android:layout_marginLeft=
"6dp"
android:layout_marginTop=
"19dp"
android:layout_marginTop=
"19dp"
android:layout_toRightOf=
"@+id/tv_name"
android:layout_toRightOf=
"@+id/tv_name"
tools:background=
"@drawable/confide
home_new_male"
/>
tools:background=
"@drawable/confide
_new_male"
/>
<TextView
<TextView
android:id=
"@+id/tv_confide"
android:id=
"@+id/tv_confide"
android:layout_width=
"30dp"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"@dimen/
dp_15"
android:layout_marginRight=
"@dimen/
confide_dp_15"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:gravity=
"center"
android:gravity=
"center"
tools:background=
"@drawable/confide
home_line_1"
/>
tools:background=
"@drawable/confide
_line_1"
/>
<TextView
<TextView
android:id=
"@+id/tv_confideNum"
android:id=
"@+id/tv_confideNum"
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
android:layout_marginLeft=
"136dp"
android:layout_marginLeft=
"136dp"
android:layout_marginTop=
"12dp"
android:layout_marginTop=
"12dp"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
tools:text=
"8000人"
/>
tools:text=
"8000人"
/>
<TextView
<TextView
...
@@ -100,22 +100,22 @@
...
@@ -100,22 +100,22 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_marginRight=
"@dimen/
dp_16"
android:layout_marginRight=
"@dimen/
confide_dp_16"
android:layout_marginTop=
"12dp"
android:layout_marginTop=
"12dp"
android:layout_toRightOf=
"@+id/tv_confideNum"
android:layout_toRightOf=
"@+id/tv_confideNum"
android:text=
"向TA倾诉"
android:text=
"向TA倾诉"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
android:textSize=
"@dimen/
dp_11"
/>
android:textSize=
"@dimen/
confide_dp_11"
/>
<TextView
<TextView
android:id=
"@+id/tv_Connection"
android:id=
"@+id/tv_Connection"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_marginTop=
"@dimen/
dp_12"
android:layout_marginTop=
"@dimen/
confide_dp_12"
android:layout_toRightOf=
"@+id/tv_tv_confideNumContent"
android:layout_toRightOf=
"@+id/tv_tv_confideNumContent"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
tools:text=
"83%"
/>
tools:text=
"83%"
/>
<TextView
<TextView
...
@@ -123,11 +123,11 @@
...
@@ -123,11 +123,11 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_marginTop=
"@dimen/
dp_12"
android:layout_marginTop=
"@dimen/
confide_dp_12"
android:layout_toRightOf=
"@+id/tv_Connection"
android:layout_toRightOf=
"@+id/tv_Connection"
android:text=
"接通率"
android:text=
"接通率"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
android:textSize=
"@dimen/
dp_11"
/>
android:textSize=
"@dimen/
confide_dp_11"
/>
<View
<View
...
@@ -137,9 +137,9 @@
...
@@ -137,9 +137,9 @@
android:layout_below=
"@+id/tv_Connection"
android:layout_below=
"@+id/tv_Connection"
android:layout_marginBottom=
"4dp"
android:layout_marginBottom=
"4dp"
android:layout_marginLeft=
"136dp"
android:layout_marginLeft=
"136dp"
android:layout_marginRight=
"@dimen/
dp_10"
android:layout_marginRight=
"@dimen/
confide_dp_10"
android:layout_marginTop=
"4dp"
android:layout_marginTop=
"4dp"
android:background=
"@color/confide
home_line"
/>
android:background=
"@color/confide
_line"
/>
<TextView
<TextView
android:id=
"@+id/tv_content"
android:id=
"@+id/tv_content"
...
@@ -147,11 +147,11 @@
...
@@ -147,11 +147,11 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/v_line"
android:layout_below=
"@+id/v_line"
android:layout_marginLeft=
"136dp"
android:layout_marginLeft=
"136dp"
android:layout_marginRight=
"@dimen/
dp_15"
android:layout_marginRight=
"@dimen/
confide_dp_15"
android:ellipsize=
"end"
android:ellipsize=
"end"
android:maxLines=
"2"
android:maxLines=
"2"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
tools:text=
"没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。"
/>
tools:text=
"没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。"
/>
</RelativeLayout>
</RelativeLayout>
</android.support.v7.widget.CardView>
</android.support.v7.widget.CardView>
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_playing_float_btn.xml
→
m-confide/src/main/res/layout
/confid
e_playing_float_btn.xml
View file @
5c7df153
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
android:layout_marginLeft=
"8dp"
android:layout_marginLeft=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:src=
"@drawable/confide
home_float_head"
/>
android:src=
"@drawable/confide
_float_head"
/>
<View
<View
android:layout_width=
"1dp"
android:layout_width=
"1dp"
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
android:layout_marginLeft=
"8dp"
android:layout_marginLeft=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:src=
"@drawable/confide
home_play_pause"
/>
android:src=
"@drawable/confide
_play_pause"
/>
<View
<View
android:id=
"@+id/hz_divider_line"
android:id=
"@+id/hz_divider_line"
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
android:layout_marginLeft=
"8dp"
android:layout_marginLeft=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:src=
"@drawable/confide
home_play_close"
android:src=
"@drawable/confide
_play_close"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
...
...
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_recent_view.xml
→
m-confide/src/main/res/layout
/confid
e_recent_view.xml
View file @
5c7df153
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
android:layout_marginLeft=
"5dp"
android:layout_marginLeft=
"5dp"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
tools:background=
"@drawable/confide
home_new_male"
/>
tools:background=
"@drawable/confide
_new_male"
/>
<TextView
<TextView
android:id=
"@+id/tv_history"
android:id=
"@+id/tv_history"
android:layout_toRightOf=
"@id/cv_icon"
android:layout_toRightOf=
"@id/cv_icon"
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
android:layout_marginLeft=
"12dp"
android:layout_marginLeft=
"12dp"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_10"
android:textSize=
"@dimen/
confide_dp_10"
android:textColor=
"@color/platform_color_grey_999999"
android:textColor=
"@color/platform_color_grey_999999"
tools:text=
"7月13日 你向TA倾诉过"
/>
tools:text=
"7月13日 你向TA倾诉过"
/>
<TextView
<TextView
...
@@ -57,6 +57,6 @@
...
@@ -57,6 +57,6 @@
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:gravity=
"center"
android:gravity=
"center"
android:background=
"@drawable/confide
home_recent_btn_on_bg"
android:background=
"@drawable/confide
_recent_btn_on_bg"
android:text=
"再倾诉一次"
/>
android:text=
"再倾诉一次"
/>
</RelativeLayout>
</RelativeLayout>
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_recommend_expert_head.xml
→
m-confide/src/main/res/layout
/confid
e_recommend_expert_head.xml
View file @
5c7df153
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
android:layout_marginTop=
"34dp"
android:layout_marginTop=
"34dp"
android:layout_marginLeft=
"6dp"
android:layout_marginLeft=
"6dp"
android:layout_marginRight=
"6dp"
android:layout_marginRight=
"6dp"
android:textSize=
"@dimen/
dp_18"
android:textSize=
"@dimen/
confide_dp_18"
android:textColor=
"#444444"
android:textColor=
"#444444"
tools:text=
"最佳倾诉榜单"
/>
tools:text=
"最佳倾诉榜单"
/>
<View
<View
...
...
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_recommend_expert_item_view.xml
→
m-confide/src/main/res/layout
/confid
e_recommend_expert_item_view.xml
View file @
5c7df153
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
app:cardElevation=
"1dp"
app:cardElevation=
"1dp"
app:cardCornerRadius=
"6dp"
app:cardCornerRadius=
"6dp"
android:layout_marginLeft=
"@dimen/
dp_10"
android:layout_marginLeft=
"@dimen/
confide_dp_10"
android:layout_marginBottom=
"2dp"
>
android:layout_marginBottom=
"2dp"
>
<FrameLayout
<FrameLayout
android:id=
"@+id/ll_layout"
android:id=
"@+id/ll_layout"
...
@@ -23,23 +23,23 @@
...
@@ -23,23 +23,23 @@
android:id=
"@id/tv_title"
android:id=
"@id/tv_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_14"
android:textSize=
"@dimen/
confide_dp_14"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:layout_marginTop=
"@dimen/
dp_12"
android:layout_marginTop=
"@dimen/
confide_dp_12"
android:paddingTop=
"2dp"
android:paddingTop=
"2dp"
android:paddingBottom=
"1dp"
android:paddingBottom=
"1dp"
android:paddingLeft=
"@dimen/
dp_10"
android:paddingLeft=
"@dimen/
confide_dp_10"
android:paddingRight=
"@dimen/
dp_10"
android:paddingRight=
"@dimen/
confide_dp_10"
android:background=
"@drawable/confide
home_recommend_expert_title_bg"
android:background=
"@drawable/confide
_recommend_expert_title_bg"
tools:text=
"情感恋爱"
/>
tools:text=
"情感恋爱"
/>
<android.support.v7.widget.CardView
<android.support.v7.widget.CardView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/
dp_12"
android:layout_marginLeft=
"@dimen/
confide_dp_12"
android:layout_marginRight=
"@dimen/
dp_12"
android:layout_marginRight=
"@dimen/
confide_dp_12"
android:layout_marginTop=
"48dp"
android:layout_marginTop=
"48dp"
android:layout_marginBottom=
"@dimen/
dp_16"
android:layout_marginBottom=
"@dimen/
confide_dp_16"
app:cardBackgroundColor=
"@color/white"
app:cardBackgroundColor=
"@color/white"
app:cardCornerRadius=
"6dp"
app:cardCornerRadius=
"6dp"
app:cardElevation=
"1dp"
>
app:cardElevation=
"1dp"
>
...
@@ -54,17 +54,17 @@
...
@@ -54,17 +54,17 @@
android:paddingRight=
"9dp"
android:paddingRight=
"9dp"
android:paddingTop=
"1dp"
android:paddingTop=
"1dp"
android:paddingBottom=
"1dp"
android:paddingBottom=
"1dp"
android:textSize=
"@dimen/
dp_10"
android:textSize=
"@dimen/
confide_dp_10"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:background=
"@drawable/confide
home_recommend_expert_line_bg"
android:background=
"@drawable/confide
_recommend_expert_line_bg"
tools:text=
"在线"
/>
tools:text=
"在线"
/>
<android.support.v7.widget.CardView
<android.support.v7.widget.CardView
android:id=
"@+id/cv_head"
android:id=
"@+id/cv_head"
android:layout_width=
"100dp"
android:layout_width=
"100dp"
android:layout_height=
"100dp"
android:layout_height=
"100dp"
android:layout_marginLeft=
"@dimen/
dp_12"
android:layout_marginLeft=
"@dimen/
confide_dp_12"
android:layout_marginTop=
"@dimen/
dp_20"
android:layout_marginTop=
"@dimen/
confide_dp_20"
android:layout_marginBottom=
"@dimen/
dp_20"
android:layout_marginBottom=
"@dimen/
confide_dp_20"
app:cardCornerRadius=
"50dp"
app:cardCornerRadius=
"50dp"
app:cardElevation=
"0px"
>
app:cardElevation=
"0px"
>
<ImageView
<ImageView
...
@@ -79,16 +79,16 @@
...
@@ -79,16 +79,16 @@
android:layout_height=
"24dp"
android:layout_height=
"24dp"
android:layout_marginTop=
"91dp"
android:layout_marginTop=
"91dp"
android:layout_marginLeft=
"84dp"
android:layout_marginLeft=
"84dp"
tools:background=
"@drawable/confide
home_paused"
/>
tools:background=
"@drawable/confide
_paused"
/>
<TextView
<TextView
android:id=
"@+id/tv_name"
android:id=
"@+id/tv_name"
android:layout_toRightOf=
"@+id/cv_head"
android:layout_toRightOf=
"@+id/cv_head"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/
dp_22"
android:layout_marginTop=
"@dimen/
confide_dp_22"
android:layout_marginLeft=
"14dp"
android:layout_marginLeft=
"14dp"
android:textSize=
"@dimen/
dp_15"
android:textSize=
"@dimen/
confide_dp_15"
android:textColor=
"#555555"
android:textColor=
"#555555"
tools:text=
"姚雨晴"
/>
tools:text=
"姚雨晴"
/>
...
@@ -99,12 +99,12 @@
...
@@ -99,12 +99,12 @@
android:layout_marginLeft=
"6dp"
android:layout_marginLeft=
"6dp"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
tools:background=
"@drawable/confide
home_new_male"
/>
tools:background=
"@drawable/confide
_new_male"
/>
<TextView
<TextView
android:id=
"@+id/tv_confideNum"
android:id=
"@+id/tv_confideNum"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
android:layout_toRightOf=
"@+id/cv_head"
android:layout_toRightOf=
"@+id/cv_head"
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
...
@@ -116,30 +116,30 @@
...
@@ -116,30 +116,30 @@
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_toRightOf=
"@+id/tv_confideNum"
android:layout_toRightOf=
"@+id/tv_confideNum"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"@dimen/
dp_16"
android:layout_marginRight=
"@dimen/
confide_dp_16"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
android:text=
"向TA倾诉"
/>
android:text=
"向TA倾诉"
/>
<TextView
<TextView
android:id=
"@+id/tv_Connection"
android:id=
"@+id/tv_Connection"
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_toRightOf=
"@+id/tv_tv_confideNumContent"
android:layout_toRightOf=
"@+id/tv_tv_confideNumContent"
android:layout_marginTop=
"@dimen/
dp_10"
android:layout_marginTop=
"@dimen/
confide_dp_10"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
tools:text=
"83%"
/>
tools:text=
"83%"
/>
<TextView
<TextView
android:id=
"@+id/tv_ConnectionContent"
android:id=
"@+id/tv_ConnectionContent"
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_toRightOf=
"@+id/tv_Connection"
android:layout_toRightOf=
"@+id/tv_Connection"
android:layout_marginTop=
"@dimen/
dp_10"
android:layout_marginTop=
"@dimen/
confide_dp_10"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
android:text=
"接通率"
/>
android:text=
"接通率"
/>
<LinearLayout
<LinearLayout
...
@@ -150,8 +150,8 @@
...
@@ -150,8 +150,8 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"16dp"
android:layout_height=
"16dp"
android:layout_marginBottom=
"8dp"
android:layout_marginBottom=
"8dp"
android:layout_marginLeft=
"@dimen/
dp_12"
android:layout_marginLeft=
"@dimen/
confide_dp_12"
android:layout_marginRight=
"@dimen/
dp_10"
android:layout_marginRight=
"@dimen/
confide_dp_10"
android:layout_marginTop=
"4dp"
/>
android:layout_marginTop=
"4dp"
/>
<View
<View
android:id=
"@+id/v_line"
android:id=
"@+id/v_line"
...
@@ -159,19 +159,19 @@
...
@@ -159,19 +159,19 @@
android:layout_toRightOf=
"@+id/cv_head"
android:layout_toRightOf=
"@+id/cv_head"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0.5dp"
android:layout_height=
"0.5dp"
android:layout_marginLeft=
"@dimen/
dp_14"
android:layout_marginLeft=
"@dimen/
confide_dp_14"
android:layout_marginRight=
"@dimen/
dp_10"
android:layout_marginRight=
"@dimen/
confide_dp_10"
android:layout_marginBottom=
"4dp"
android:layout_marginBottom=
"4dp"
android:background=
"@color/confide
home_line"
/>
android:background=
"@color/confide
_line"
/>
<TextView
<TextView
android:id=
"@+id/tv_content"
android:id=
"@+id/tv_content"
android:layout_below=
"@+id/v_line"
android:layout_below=
"@+id/v_line"
android:layout_toRightOf=
"@+id/cv_head"
android:layout_toRightOf=
"@+id/cv_head"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/
dp_14"
android:layout_marginLeft=
"@dimen/
confide_dp_14"
android:layout_marginRight=
"@dimen/
dp_10"
android:layout_marginRight=
"@dimen/
confide_dp_10"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
android:lines=
"1"
android:lines=
"1"
android:ellipsize=
"end"
android:ellipsize=
"end"
...
@@ -183,12 +183,12 @@
...
@@ -183,12 +183,12 @@
android:layout_width=
"128dp"
android:layout_width=
"128dp"
android:layout_height=
"28dp"
android:layout_height=
"28dp"
android:layout_marginTop=
"204dp"
android:layout_marginTop=
"204dp"
android:layout_marginBottom=
"@dimen/
dp_18"
android:layout_marginBottom=
"@dimen/
confide_dp_18"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:textSize=
"@dimen/
dp_12"
android:textSize=
"@dimen/
confide_dp_12"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:gravity=
"center"
android:gravity=
"center"
android:background=
"@drawable/confide
home_recommend_expert_btn_bg"
android:background=
"@drawable/confide
_recommend_expert_btn_bg"
android:text=
"向TA倾诉"
/>
android:text=
"向TA倾诉"
/>
</FrameLayout>
</FrameLayout>
</android.support.v7.widget.CardView>
</android.support.v7.widget.CardView>
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_recommend_expert_view.xml
→
m-confide/src/main/res/layout
/confid
e_recommend_expert_view.xml
View file @
5c7df153
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
android:paddingTop=
"14dp"
android:paddingTop=
"14dp"
android:paddingBottom=
"35dp"
android:paddingBottom=
"35dp"
android:paddingLeft=
"5dp"
android:paddingLeft=
"5dp"
android:background=
"@drawable/confide
home_recommend_expert_bg"
>
android:background=
"@drawable/confide
_recommend_expert_bg"
>
<android.support.v4.view.ViewPager
<android.support.v4.view.ViewPager
android:id=
"@+id/viewPager"
android:id=
"@+id/viewPager"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_recommend_view.xml
→
m-confide/src/main/res/layout
/confid
e_recommend_view.xml
View file @
5c7df153
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
android:id=
"@+id/cv_head"
android:id=
"@+id/cv_head"
android:layout_width=
"96dp"
android:layout_width=
"96dp"
android:layout_height=
"96dp"
android:layout_height=
"96dp"
android:layout_marginStart=
"@dimen/
dp_15"
android:layout_marginStart=
"@dimen/
confide_dp_15"
android:layout_marginTop=
"24.5dp"
android:layout_marginTop=
"24.5dp"
android:layout_marginBottom=
"24dp"
android:layout_marginBottom=
"24dp"
app:cardElevation=
"1dp"
app:cardElevation=
"1dp"
...
@@ -30,9 +30,9 @@
...
@@ -30,9 +30,9 @@
android:paddingRight=
"9dp"
android:paddingRight=
"9dp"
android:paddingTop=
"1dp"
android:paddingTop=
"1dp"
android:paddingBottom=
"1dp"
android:paddingBottom=
"1dp"
android:textSize=
"@dimen/
dp_10"
android:textSize=
"@dimen/
confide_dp_10"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:background=
"@drawable/confide
home_recommend_expert_line_bg"
android:background=
"@drawable/confide
_recommend_expert_line_bg"
tools:text=
"在线"
/>
tools:text=
"在线"
/>
<ImageView
<ImageView
android:id=
"@+id/iv_play"
android:id=
"@+id/iv_play"
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
android:layout_gravity=
"bottom|right"
android:layout_gravity=
"bottom|right"
android:layout_marginBottom=
"8dp"
android:layout_marginBottom=
"8dp"
android:layout_marginEnd=
"8dp"
android:layout_marginEnd=
"8dp"
tools:background=
"@drawable/confide
home_paused"
/>
tools:background=
"@drawable/confide
_paused"
/>
</FrameLayout>
</FrameLayout>
</android.support.v7.widget.CardView>
</android.support.v7.widget.CardView>
<TextView
<TextView
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"24.5dp"
android:layout_marginTop=
"24.5dp"
android:layout_marginStart=
"14dp"
android:layout_marginStart=
"14dp"
android:textSize=
"@dimen/
dp_15"
android:textSize=
"@dimen/
confide_dp_15"
android:textColor=
"#555555"
android:textColor=
"#555555"
tools:text=
"姚雨晴"
tools:text=
"姚雨晴"
tools:ignore=
"SpUsage"
/>
tools:ignore=
"SpUsage"
/>
...
@@ -63,25 +63,25 @@
...
@@ -63,25 +63,25 @@
android:layout_marginStart=
"6dp"
android:layout_marginStart=
"6dp"
android:layout_width=
"13dp"
android:layout_width=
"13dp"
android:layout_height=
"13dp"
android:layout_height=
"13dp"
tools:background=
"@drawable/confide
home_new_male"
/>
tools:background=
"@drawable/confide
_new_male"
/>
<TextView
<TextView
android:id=
"@+id/tv_confide"
android:id=
"@+id/tv_confide"
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_alignParentEnd=
"true"
android:layout_alignParentEnd=
"true"
android:layout_marginTop=
"24.5dp"
android:layout_marginTop=
"24.5dp"
android:layout_marginEnd=
"@dimen/
dp_15"
android:layout_marginEnd=
"@dimen/
confide_dp_15"
android:gravity=
"center"
android:gravity=
"center"
tools:background=
"@drawable/confide
home_line_1"
/>
tools:background=
"@drawable/confide
_line_1"
/>
<TextView
<TextView
android:id=
"@+id/tv_confideNum"
android:id=
"@+id/tv_confideNum"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
android:layout_toEndOf=
"@+id/cv_head"
android:layout_toEndOf=
"@+id/cv_head"
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_marginStart=
"@dimen/
dp_12"
android:layout_marginStart=
"@dimen/
confide_dp_12"
android:layout_marginTop=
"12dp"
android:layout_marginTop=
"12dp"
tools:text=
"8000人"
tools:text=
"8000人"
tools:ignore=
"SpUsage"
/>
tools:ignore=
"SpUsage"
/>
...
@@ -90,10 +90,10 @@
...
@@ -90,10 +90,10 @@
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_toEndOf=
"@+id/tv_confideNum"
android:layout_toEndOf=
"@+id/tv_confideNum"
android:layout_marginTop=
"12dp"
android:layout_marginTop=
"12dp"
android:layout_marginEnd=
"@dimen/
dp_16"
android:layout_marginEnd=
"@dimen/
confide_dp_16"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
android:text=
"向TA倾诉"
android:text=
"向TA倾诉"
tools:ignore=
"SpUsage"
/>
tools:ignore=
"SpUsage"
/>
...
@@ -101,10 +101,10 @@
...
@@ -101,10 +101,10 @@
android:id=
"@+id/tv_Connection"
android:id=
"@+id/tv_Connection"
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_toEndOf=
"@+id/tv_tv_confideNumContent"
android:layout_toEndOf=
"@+id/tv_tv_confideNumContent"
android:layout_marginTop=
"@dimen/
dp_12"
android:layout_marginTop=
"@dimen/
confide_dp_12"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
tools:text=
"83%"
tools:text=
"83%"
tools:ignore=
"SpUsage"
/>
tools:ignore=
"SpUsage"
/>
...
@@ -112,11 +112,11 @@
...
@@ -112,11 +112,11 @@
android:id=
"@+id/tv_ConnectionContent"
android:id=
"@+id/tv_ConnectionContent"
android:layout_below=
"@+id/tv_name"
android:layout_below=
"@+id/tv_name"
android:layout_toEndOf=
"@+id/tv_Connection"
android:layout_toEndOf=
"@+id/tv_Connection"
android:layout_marginTop=
"@dimen/
dp_12"
android:layout_marginTop=
"@dimen/
confide_dp_12"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/
dp_12"
android:layout_marginEnd=
"@dimen/
confide_dp_12"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
android:text=
"接通率"
android:text=
"接通率"
tools:ignore=
"SpUsage"
/>
tools:ignore=
"SpUsage"
/>
...
@@ -128,8 +128,8 @@
...
@@ -128,8 +128,8 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"16dp"
android:layout_height=
"16dp"
android:layout_marginBottom=
"8dp"
android:layout_marginBottom=
"8dp"
android:layout_marginStart=
"@dimen/
dp_12"
android:layout_marginStart=
"@dimen/
confide_dp_12"
android:layout_marginEnd=
"@dimen/
dp_10"
android:layout_marginEnd=
"@dimen/
confide_dp_10"
android:layout_marginTop=
"4dp"
/>
android:layout_marginTop=
"4dp"
/>
<View
<View
android:id=
"@+id/v_line"
android:id=
"@+id/v_line"
...
@@ -137,19 +137,19 @@
...
@@ -137,19 +137,19 @@
android:layout_toEndOf=
"@+id/cv_head"
android:layout_toEndOf=
"@+id/cv_head"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0.5dp"
android:layout_height=
"0.5dp"
android:layout_marginStart=
"@dimen/
dp_12"
android:layout_marginStart=
"@dimen/
confide_dp_12"
android:layout_marginEnd=
"@dimen/
dp_15"
android:layout_marginEnd=
"@dimen/
confide_dp_15"
android:layout_marginBottom=
"4dp"
android:layout_marginBottom=
"4dp"
android:background=
"@color/confide
home_line"
/>
android:background=
"@color/confide
_line"
/>
<TextView
<TextView
android:id=
"@+id/tv_content"
android:id=
"@+id/tv_content"
android:layout_below=
"@+id/v_line"
android:layout_below=
"@+id/v_line"
android:layout_toEndOf=
"@+id/cv_head"
android:layout_toEndOf=
"@+id/cv_head"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/
dp_12"
android:layout_marginStart=
"@dimen/
confide_dp_12"
android:layout_marginEnd=
"@dimen/
dp_15"
android:layout_marginEnd=
"@dimen/
confide_dp_15"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"@color/_9"
android:textColor=
"@color/_9"
android:lines=
"1"
android:lines=
"1"
android:ellipsize=
"end"
android:ellipsize=
"end"
...
@@ -160,10 +160,10 @@
...
@@ -160,10 +160,10 @@
android:id=
"@+id/tv_price"
android:id=
"@+id/tv_price"
android:layout_below=
"@+id/tv_content"
android:layout_below=
"@+id/tv_content"
android:layout_toEndOf=
"@+id/cv_head"
android:layout_toEndOf=
"@+id/cv_head"
android:layout_marginStart=
"@dimen/
dp_12"
android:layout_marginStart=
"@dimen/
confide_dp_12"
android:layout_marginTop=
"6dp"
android:layout_marginTop=
"6dp"
android:layout_marginBottom=
"20dp"
android:layout_marginBottom=
"20dp"
android:textSize=
"@dimen/
dp_18"
android:textSize=
"@dimen/
confide_dp_18"
android:textColor=
"#FF5B05"
android:textColor=
"#FF5B05"
android:gravity=
"bottom"
android:gravity=
"bottom"
android:textStyle=
"bold"
android:textStyle=
"bold"
...
@@ -175,10 +175,10 @@
...
@@ -175,10 +175,10 @@
android:id=
"@+id/tv_priceContent"
android:id=
"@+id/tv_priceContent"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/
dp_13"
android:layout_marginTop=
"@dimen/
confide_dp_13"
android:layout_below=
"@+id/tv_content"
android:layout_below=
"@+id/tv_content"
android:layout_toEndOf=
"@+id/tv_price"
android:layout_toEndOf=
"@+id/tv_price"
android:textSize=
"@dimen/
dp_11"
android:textSize=
"@dimen/
confide_dp_11"
android:textColor=
"#FF5B05"
android:textColor=
"#FF5B05"
android:text=
"元/次"
android:text=
"元/次"
tools:ignore=
"SpUsage"
/>
tools:ignore=
"SpUsage"
/>
...
@@ -189,10 +189,10 @@
...
@@ -189,10 +189,10 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/tv_content"
android:layout_below=
"@+id/tv_content"
android:layout_toEndOf=
"@+id/tv_priceContent"
android:layout_toEndOf=
"@+id/tv_priceContent"
android:layout_marginTop=
"@dimen/
dp_14"
android:layout_marginTop=
"@dimen/
confide_dp_14"
android:layout_marginStart=
"@dimen/
dp_5"
android:layout_marginStart=
"@dimen/
confide_dp_5"
android:textColor=
"#a2a2a2"
android:textColor=
"#a2a2a2"
android:textSize=
"@dimen/
dp_10"
android:textSize=
"@dimen/
confide_dp_10"
tools:ignore=
"SpUsage"
tools:ignore=
"SpUsage"
tools:text=
"50元/次"
/>
tools:text=
"50元/次"
/>
...
@@ -202,22 +202,22 @@
...
@@ -202,22 +202,22 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/tv_content"
android:layout_below=
"@+id/tv_content"
android:layout_alignParentEnd=
"true"
android:layout_alignParentEnd=
"true"
android:layout_marginEnd=
"@dimen/
dp_15"
android:layout_marginEnd=
"@dimen/
confide_dp_15"
android:layout_marginTop=
"@dimen/
dp_12"
android:layout_marginTop=
"@dimen/
confide_dp_12"
android:background=
"@drawable/confide
home_bg_color_ff5b05"
android:background=
"@drawable/confide
_bg_color_ff5b05"
android:textSize=
"@dimen/
dp_10"
android:textSize=
"@dimen/
confide_dp_10"
android:textColor=
"#ff5b05"
android:textColor=
"#ff5b05"
android:paddingStart=
"@dimen/
dp_4"
android:paddingStart=
"@dimen/
confide_dp_4"
android:paddingEnd=
"@dimen/
dp_4"
android:paddingEnd=
"@dimen/
confide_dp_4"
android:paddingTop=
"@dimen/
dp_2"
android:paddingTop=
"@dimen/
confide_dp_2"
android:paddingBottom=
"@dimen/
dp_2"
android:paddingBottom=
"@dimen/
confide_dp_2"
tools:text=
"立减¥30"
tools:text=
"立减¥30"
tools:ignore=
"SpUsage"
/>
tools:ignore=
"SpUsage"
/>
<View
<View
android:layout_below=
"@+id/tv_price"
android:layout_below=
"@+id/tv_price"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0.5dp"
android:layout_height=
"0.5dp"
android:layout_marginLeft=
"@dimen/
dp_15"
android:layout_marginLeft=
"@dimen/
confide_dp_15"
android:layout_marginRight=
"@dimen/
dp_15"
android:layout_marginRight=
"@dimen/
confide_dp_15"
android:background=
"@color/confide
home_line"
/>
android:background=
"@color/confide
_line"
/>
</RelativeLayout>
</RelativeLayout>
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_sexage_popup_window.xml
→
m-confide/src/main/res/layout
/confid
e_sexage_popup_window.xml
View file @
5c7df153
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0.5dp"
android:layout_height=
"0.5dp"
android:background=
"@color/confide
home_filters_line"
/>
android:background=
"@color/confide
_filters_line"
/>
<!--之所以要加一层 是因为 要设置白色 背景 但是 TextView改为padding 不好用 比较急 先这样吧-->
<!--之所以要加一层 是因为 要设置白色 背景 但是 TextView改为padding 不好用 比较急 先这样吧-->
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
android:layout_marginLeft=
"24dp"
android:layout_marginLeft=
"24dp"
android:layout_marginTop=
"25dp"
android:layout_marginTop=
"25dp"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
android:textSize=
"@dimen/
dp_13"
android:textSize=
"@dimen/
confide_dp_13"
tools:text=
"性别筛选"
/>
tools:text=
"性别筛选"
/>
</LinearLayout>
</LinearLayout>
...
@@ -42,11 +42,11 @@
...
@@ -42,11 +42,11 @@
android:layout_marginLeft=
"24dp"
android:layout_marginLeft=
"24dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/confide
home_filter_select_nor"
android:background=
"@drawable/confide
_filter_select_nor"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:textColor=
"@color/confide
home_color_filter_selector"
android:textColor=
"@color/confide
_color_filter_selector"
android:textSize=
"@dimen/
dp_13"
android:textSize=
"@dimen/
confide_dp_13"
tools:text=
"只选男生"
/>
tools:text=
"只选男生"
/>
<TextView
xmlns:android=
"http://schemas.android.com/apk/res/android"
<TextView
xmlns:android=
"http://schemas.android.com/apk/res/android"
...
@@ -58,11 +58,11 @@
...
@@ -58,11 +58,11 @@
android:layout_marginRight=
"16dp"
android:layout_marginRight=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/confide
home_filter_select_nor"
android:background=
"@drawable/confide
_filter_select_nor"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:textColor=
"@color/confide
home_color_filter_selector"
android:textColor=
"@color/confide
_color_filter_selector"
android:textSize=
"@dimen/
dp_13"
android:textSize=
"@dimen/
confide_dp_13"
tools:text=
"只选女生"
/>
tools:text=
"只选女生"
/>
<TextView
<TextView
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
android:layout_marginLeft=
"24dp"
android:layout_marginLeft=
"24dp"
android:layout_marginTop=
"25dp"
android:layout_marginTop=
"25dp"
android:textColor=
"@color/_6"
android:textColor=
"@color/_6"
android:textSize=
"@dimen/
dp_13"
android:textSize=
"@dimen/
confide_dp_13"
tools:text=
"年龄筛选"
/>
tools:text=
"年龄筛选"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
...
@@ -112,10 +112,10 @@
...
@@ -112,10 +112,10 @@
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/confide
home_filter_reset_btn_bg"
android:background=
"@drawable/confide
_filter_reset_btn_bg"
android:text=
"@string/platform_reset"
android:text=
"@string/platform_reset"
android:textColor=
"@color/
platform_main_theme_blue"
android:textColor=
"@color/
confide_main_theme"
android:textSize=
"@dimen/
dp_18"
/>
android:textSize=
"@dimen/
confide_dp_18"
/>
<Button
<Button
android:id=
"@+id/btnConfirm"
android:id=
"@+id/btnConfirm"
...
@@ -126,10 +126,10 @@
...
@@ -126,10 +126,10 @@
android:layout_marginRight=
"15dp"
android:layout_marginRight=
"15dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/confide
home_filter_btn_bg"
android:background=
"@drawable/confide
_filter_btn_bg"
android:text=
"@string/platform_confirm"
android:text=
"@string/platform_confirm"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/
dp_18"
/>
android:textSize=
"@dimen/
confide_dp_18"
/>
</LinearLayout>
</LinearLayout>
<View
<View
...
...
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_sort_item.xml
→
m-confide/src/main/res/layout
/confid
e_sort_item.xml
View file @
5c7df153
...
@@ -20,5 +20,5 @@
...
@@ -20,5 +20,5 @@
android:layout_height=
"0.5dp"
android:layout_height=
"0.5dp"
android:layout_marginLeft=
"24dp"
android:layout_marginLeft=
"24dp"
android:layout_marginRight=
"24dp"
android:layout_marginRight=
"24dp"
android:background=
"@color/confide
home_line"
/>
android:background=
"@color/confide
_line"
/>
</LinearLayout>
</LinearLayout>
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_sort_popup_window.xml
→
m-confide/src/main/res/layout
/confid
e_sort_popup_window.xml
View file @
5c7df153
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0.5dp"
android:layout_height=
"0.5dp"
android:background=
"@color/confide
home_filters_line"
/>
android:background=
"@color/confide
_filters_line"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/rvSortItem"
android:id=
"@+id/rvSortItem"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
m-confide/src/main/res/layout
s/confidehome/layout/confidehom
e_title_bar.xml
→
m-confide/src/main/res/layout
/confid
e_title_bar.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<
FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
>
<View
android:id=
"@+id/v_bg"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_height=
"48dp"
android:background=
"@drawable/confidehome_common_bg"
/>
android:background=
"@drawable/confide_common_bg"
android:id=
"@+id/rl_confide_title_layout"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_bar_root"
android:id=
"@+id/ll_bar_root"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
...
@@ -21,7 +20,7 @@
...
@@ -21,7 +20,7 @@
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:layout_marginRight=
"15dp"
android:layout_marginRight=
"15dp"
android:background=
"@drawable/confide
home_back"
/>
android:background=
"@drawable/confide
_back"
/>
<TextView
<TextView
android:id=
"@+id/tv_title"
android:id=
"@+id/tv_title"
android:layout_width=
"0px"
android:layout_width=
"0px"
...
@@ -30,7 +29,7 @@
...
@@ -30,7 +29,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:textSize=
"17dp"
android:textSize=
"17dp"
android:textColor=
"#FFFFFF"
android:textColor=
"#FFFFFF"
android:text=
"@string/confide
home_title"
/>
android:text=
"@string/confide
_title"
/>
<ImageView
<ImageView
android:id=
"@+id/img_mine"
android:id=
"@+id/img_mine"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -38,6 +37,6 @@
...
@@ -38,6 +37,6 @@
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"15dp"
android:layout_marginLeft=
"15dp"
android:layout_marginRight=
"15dp"
android:layout_marginRight=
"15dp"
android:background=
"@drawable/confide
home_mine"
/>
android:background=
"@drawable/confide
_mine"
/>
</LinearLayout>
</LinearLayout>
</
FrameLayout>
</
RelativeLayout>
m-confide/src/main/res/layout
s/confidehome/layout/confidehome
_empty.xml
→
m-confide/src/main/res/layout
/confide_view
_empty.xml
View file @
5c7df153
File moved
m-confide/src/main/res/layouts/confidehome/values/color_confidehome.xml
deleted
100644 → 0
View file @
1591b992
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color
name=
"confidehome_line"
>
#F0F0F0
</color>
<color
name=
"confidehome_filters_line"
>
#E0E0E0
</color>
<color
name=
"confidehome_category_bg"
>
#FAFAFA
</color>
</resources>
\ No newline at end of file
m-confide/src/main/res/layouts/confidehome/values/string_confide.xml
deleted
100644 → 0
View file @
1591b992
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string
name=
"confidehome_title"
>
即时倾诉
</string>
</resources>
\ No newline at end of file
m-confide/src/main/res/mipmap-xhdpi/coupon_rule.png
→
m-confide/src/main/res/mipmap-xhdpi/co
nfide_co
upon_rule.png
View file @
5c7df153
File moved
m-confide/src/main/res/mipmap-xhdpi/coupon_selected.png
→
m-confide/src/main/res/mipmap-xhdpi/co
nfide_co
upon_selected.png
View file @
5c7df153
File moved
m-confide/src/main/res/mipmap-xhdpi/coupon_unselected.png
→
m-confide/src/main/res/mipmap-xhdpi/co
nfide_co
upon_unselected.png
View file @
5c7df153
File moved
m-confide/src/main/res/mipmap-xhdpi/img_popupwindow_close.png
→
m-confide/src/main/res/mipmap-xhdpi/
confide_
img_popupwindow_close.png
View file @
5c7df153
File moved
m-confide/src/main/res/mipmap-xhdpi/item_coupon_background.png
→
m-confide/src/main/res/mipmap-xhdpi/
confide_
item_coupon_background.png
View file @
5c7df153
File moved
m-confide/src/main/res/mipmap-xhdpi/item_unuse_coupon_background.png
→
m-confide/src/main/res/mipmap-xhdpi/
confide_
item_unuse_coupon_background.png
View file @
5c7df153
File moved
m-confide/src/main/res/values/colors.xml
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources>
<color
name=
"color_242424"
>
#242424
</color>
<color
name=
"confide_color_242424"
>
#242424
</color>
<color
name=
"new_divide_color"
>
#f0f0f0
</color>
<color
name=
"confide_new_divide_color"
>
#f0f0f0
</color>
<color
name=
"confide_line"
>
#F0F0F0
</color>
<color
name=
"confide_filters_line"
>
#E0E0E0
</color>
<color
name=
"confide_category_bg"
>
#FAFAFA
</color>
</resources>
</resources>
m-confide/src/main/res/values/dimens.xml
View file @
5c7df153
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<resources>
<!--分割线粗细-->
<!--分割线粗细-->
<dimen
name=
"
divide_line_stroke_width"
>
0.5dp
</dimen>
<dimen
name=
"
confide_divide_line_stroke_width"
>
0.5dp
</dimen>
<!--距离部分-->
<!--距离部分-->
<dimen
name=
"
default_dis_size_nano"
>
2dp
</dimen>
<dimen
name=
"
confide_default_dis_size_nano"
>
2dp
</dimen>
<dimen
name=
"
default_dis_size_micro"
>
4dp
</dimen>
<dimen
name=
"
confide_default_dis_size_micro"
>
4dp
</dimen>
<dimen
name=
"
default_dis_size_small"
>
6dp
</dimen>
<dimen
name=
"
confide_default_dis_size_small"
>
6dp
</dimen>
<dimen
name=
"
default_dis_size"
>
8dp
</dimen>
<dimen
name=
"
confide_default_dis_size"
>
8dp
</dimen>
<dimen
name=
"
default_dis_size_big"
>
10dp
</dimen>
<dimen
name=
"
confide_default_dis_size_big"
>
10dp
</dimen>
<dimen
name=
"
default_dis_size_large"
>
12dp
</dimen>
<dimen
name=
"
confide_default_dis_size_large"
>
12dp
</dimen>
<dimen
name=
"
default_dis_size_huge"
>
14dp
</dimen>
<dimen
name=
"
confide_default_dis_size_huge"
>
14dp
</dimen>
<dimen
name=
"
default_dis_size_huge_more"
>
16dp
</dimen>
<dimen
name=
"
confide_default_dis_size_huge_more"
>
16dp
</dimen>
<!--字体大小部分-->
<!--字体大小部分-->
<dimen
name=
"
default_text_size_micro"
>
8sp
</dimen>
<dimen
name=
"
confide_default_text_size_micro"
>
8sp
</dimen>
<dimen
name=
"
default_text_size_little"
>
10sp
</dimen>
<dimen
name=
"
confide_default_text_size_little"
>
10sp
</dimen>
<dimen
name=
"
default_text_size_small"
>
12sp
</dimen>
<dimen
name=
"
confide_default_text_size_small"
>
12sp
</dimen>
<dimen
name=
"
default_text_size"
>
14sp
</dimen>
<dimen
name=
"
confide_default_text_size"
>
14sp
</dimen>
<dimen
name=
"
default_text_size_big"
>
16sp
</dimen>
<dimen
name=
"
confide_default_text_size_big"
>
16sp
</dimen>
<dimen
name=
"
default_text_size_large"
>
18sp
</dimen>
<dimen
name=
"
confide_default_text_size_large"
>
18sp
</dimen>
<!--TitleBar高度-->
<!--TitleBar高度-->
<dimen
name=
"
title_bar_height"
>
45dp
</dimen>
<dimen
name=
"
confide_title_bar_height"
>
45dp
</dimen>
<dimen
name=
"
action_bar_height"
>
48dip
</dimen>
<dimen
name=
"
confide_action_bar_height"
>
48dip
</dimen>
<!--JumpTextView部分-->
<!--JumpTextView部分-->
<dimen
name=
"
jump_text_view_min_height"
>
55dp
</dimen>
<dimen
name=
"
confide_jump_text_view_min_height"
>
55dp
</dimen>
<dimen
name=
"
jump_text_view_icon_size"
>
25dp
</dimen>
<dimen
name=
"
confide_jump_text_view_icon_size"
>
25dp
</dimen>
<!-- dialog -->
<!-- dialog -->
<dimen
name=
"
normal_text_size"
>
16sp
</dimen>
<dimen
name=
"
confide_normal_text_size"
>
16sp
</dimen>
<dimen
name=
"
big_text_size"
>
17sp
</dimen>
<dimen
name=
"
confide_big_text_size"
>
17sp
</dimen>
<dimen
name=
"
light_line_size"
>
1px
</dimen>
<dimen
name=
"
confide_light_line_size"
>
1px
</dimen>
<dimen
name=
"
dialog_padding_vertical"
>
20dip
</dimen>
<dimen
name=
"
confide_dialog_padding_vertical"
>
20dip
</dimen>
<dimen
name=
"c
ustom_dialog_padding_vertical"
>
15dip
</dimen>
<dimen
name=
"c
onfide_custom_dialog_padding_vertical"
>
15dip
</dimen>
<dimen
name=
"
dark_line_size"
>
3px
</dimen>
<dimen
name=
"
confide_dark_line_size"
>
3px
</dimen>
<dimen
name=
"
dialog_text_margin_horizontal"
>
15dip
</dimen>
<dimen
name=
"
confide_dialog_text_margin_horizontal"
>
15dip
</dimen>
<dimen
name=
"
very_samll_text_size"
>
9sp
</dimen>
<dimen
name=
"
confide_very_samll_text_size"
>
9sp
</dimen>
<!-- Default screen margins, per the Android Design guidelines. -->
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen
name=
"
activity_horizontal_margin"
>
16dp
</dimen>
<dimen
name=
"
confide_activity_horizontal_margin"
>
16dp
</dimen>
<dimen
name=
"
activity_vertical_margin"
>
16dp
</dimen>
<dimen
name=
"
confide_activity_vertical_margin"
>
16dp
</dimen>
<!--动态-->
<!--动态-->
<!--顶部title Size-->
<!--顶部title Size-->
<dimen
name=
"
title_height"
>
45dp
</dimen>
<dimen
name=
"
confide_title_height"
>
45dp
</dimen>
<dimen
name=
"
title_txt_sp"
>
20sp
</dimen>
<dimen
name=
"
confide_title_txt_sp"
>
20sp
</dimen>
<!-- map -->
<!-- map -->
<dimen
name=
"c
hatroom_head_height"
>
200dp
</dimen>
<dimen
name=
"c
onfide_chatroom_head_height"
>
200dp
</dimen>
<dimen
name=
"
dp_1"
>
1dp
</dimen>
<dimen
name=
"
confide_dp_1"
>
1dp
</dimen>
<dimen
name=
"
dp_2"
>
2dp
</dimen>
<dimen
name=
"
confide_dp_2"
>
2dp
</dimen>
<dimen
name=
"
dp_3"
>
3dp
</dimen>
<dimen
name=
"
confide_dp_3"
>
3dp
</dimen>
<dimen
name=
"
dp_4"
>
4dp
</dimen>
<dimen
name=
"
confide_dp_4"
>
4dp
</dimen>
<dimen
name=
"
dp_5"
>
5dp
</dimen>
<dimen
name=
"
confide_dp_5"
>
5dp
</dimen>
<dimen
name=
"
dp_6"
>
6dp
</dimen>
<dimen
name=
"
confide_dp_6"
>
6dp
</dimen>
<dimen
name=
"
dp_7"
>
7dp
</dimen>
<dimen
name=
"
confide_dp_7"
>
7dp
</dimen>
<dimen
name=
"
dp_8"
>
8dp
</dimen>
<dimen
name=
"
confide_dp_8"
>
8dp
</dimen>
<dimen
name=
"
dp_9"
>
9dp
</dimen>
<dimen
name=
"
confide_dp_9"
>
9dp
</dimen>
<dimen
name=
"
dp_10"
>
10dp
</dimen>
<dimen
name=
"
confide_dp_10"
>
10dp
</dimen>
<dimen
name=
"
dp_11"
>
11dp
</dimen>
<dimen
name=
"
confide_dp_11"
>
11dp
</dimen>
<dimen
name=
"
dp_12"
>
12dp
</dimen>
<dimen
name=
"
confide_dp_12"
>
12dp
</dimen>
<dimen
name=
"
dp_13"
>
13dp
</dimen>
<dimen
name=
"
confide_dp_13"
>
13dp
</dimen>
<dimen
name=
"
dp_14"
>
14dp
</dimen>
<dimen
name=
"
confide_dp_14"
>
14dp
</dimen>
<dimen
name=
"
dp_15"
>
15dp
</dimen>
<dimen
name=
"
confide_dp_15"
>
15dp
</dimen>
<dimen
name=
"
dp_16"
>
16dp
</dimen>
<dimen
name=
"
confide_dp_16"
>
16dp
</dimen>
<dimen
name=
"
dp_17"
>
17dp
</dimen>
<dimen
name=
"
confide_dp_17"
>
17dp
</dimen>
<dimen
name=
"
dp_18"
>
18dp
</dimen>
<dimen
name=
"
confide_dp_18"
>
18dp
</dimen>
<dimen
name=
"
dp_19"
>
19dp
</dimen>
<dimen
name=
"
confide_dp_19"
>
19dp
</dimen>
<dimen
name=
"
dp_20"
>
20dp
</dimen>
<dimen
name=
"
confide_dp_20"
>
20dp
</dimen>
<dimen
name=
"
dp_21"
>
21dp
</dimen>
<dimen
name=
"
confide_dp_21"
>
21dp
</dimen>
<dimen
name=
"
dp_22"
>
22dp
</dimen>
<dimen
name=
"
confide_dp_22"
>
22dp
</dimen>
<dimen
name=
"
dp_23"
>
23dp
</dimen>
<dimen
name=
"
confide_dp_23"
>
23dp
</dimen>
<dimen
name=
"
dp_24"
>
24dp
</dimen>
<dimen
name=
"
confide_dp_24"
>
24dp
</dimen>
<dimen
name=
"
dp_25"
>
25dp
</dimen>
<dimen
name=
"
confide_dp_25"
>
25dp
</dimen>
<dimen
name=
"
dp_26"
>
26dp
</dimen>
<dimen
name=
"
confide_dp_26"
>
26dp
</dimen>
<dimen
name=
"
dp_27"
>
27dp
</dimen>
<dimen
name=
"
confide_dp_27"
>
27dp
</dimen>
<dimen
name=
"
dp_28"
>
28dp
</dimen>
<dimen
name=
"
confide_dp_28"
>
28dp
</dimen>
<dimen
name=
"
dp_29"
>
29dp
</dimen>
<dimen
name=
"
confide_dp_29"
>
29dp
</dimen>
<dimen
name=
"
dp_30"
>
30dp
</dimen>
<dimen
name=
"
confide_dp_30"
>
30dp
</dimen>
<dimen
name=
"
dp_31"
>
31dp
</dimen>
<dimen
name=
"
confide_dp_31"
>
31dp
</dimen>
<dimen
name=
"
dp_32"
>
32dp
</dimen>
<dimen
name=
"
confide_dp_32"
>
32dp
</dimen>
<dimen
name=
"
dp_33"
>
33dp
</dimen>
<dimen
name=
"
confide_dp_33"
>
33dp
</dimen>
<dimen
name=
"
dp_34"
>
34dp
</dimen>
<dimen
name=
"
confide_dp_34"
>
34dp
</dimen>
<dimen
name=
"
dp_35"
>
35dp
</dimen>
<dimen
name=
"
confide_dp_35"
>
35dp
</dimen>
<dimen
name=
"
dp_36"
>
36dp
</dimen>
<dimen
name=
"
confide_dp_36"
>
36dp
</dimen>
<dimen
name=
"
dp_37"
>
37dp
</dimen>
<dimen
name=
"
confide_dp_37"
>
37dp
</dimen>
<dimen
name=
"
dp_38"
>
38dp
</dimen>
<dimen
name=
"
confide_dp_38"
>
38dp
</dimen>
<dimen
name=
"
dp_48"
>
48dp
</dimen>
<dimen
name=
"
confide_dp_48"
>
48dp
</dimen>
<dimen
name=
"
dp_60"
>
60dp
</dimen>
<dimen
name=
"
confide_dp_60"
>
60dp
</dimen>
<dimen
name=
"
dp_64"
>
64dp
</dimen>
<dimen
name=
"
confide_dp_64"
>
64dp
</dimen>
<dimen
name=
"
dp_88"
>
88dp
</dimen>
<dimen
name=
"
confide_dp_88"
>
88dp
</dimen>
<dimen
name=
"
dp_99"
>
99dp
</dimen>
<dimen
name=
"
confide_dp_99"
>
99dp
</dimen>
<dimen
name=
"
dp_115"
>
115dp
</dimen>
<dimen
name=
"
confide_dp_115"
>
115dp
</dimen>
<dimen
name=
"
dp_127"
>
127dp
</dimen>
<dimen
name=
"
confide_dp_127"
>
127dp
</dimen>
<dimen
name=
"
head_size_big"
>
72dp
</dimen>
<dimen
name=
"
confide_head_size_big"
>
72dp
</dimen>
</resources>
</resources>
m-confide/src/main/res/
layouts/confidehome/
values/ids.xml
→
m-confide/src/main/res/values/ids.xml
View file @
5c7df153
File moved
m-confide/src/main/res/values/strings.xml
View file @
5c7df153
<resources>
<resources>
<string
name=
"app_name"
>
PhoneCall
</string>
<string
name=
"confide_app_name"
>
PhoneCall
</string>
<string
name=
"confide_title"
>
即时倾诉
</string>
</resources>
</resources>
m-confide/src/main/res/values/styles.xml
0 → 100644
View file @
5c7df153
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name=
"confide_NoTitleTheme"
parent=
"Theme.AppCompat.Light.DarkActionBar"
>
<!-- Customize your theme here. -->
<item
name=
"android:windowActionBar"
>
false
</item>
<item
name=
"windowActionBar"
>
false
</item>
<item
name=
"windowNoTitle"
>
true
</item>
<item
name=
"colorPrimary"
>
@color/confide_main_theme
</item>
<item
name=
"colorPrimaryDark"
>
@color/confide_main_theme
</item>
<item
name=
"colorAccent"
>
@color/confide_main_theme
</item>
</style>
</resources>
\ No newline at end of file
m-confide/src/
main/res/drawable-xhdpi/backydl2x
.png
→
m-confide/src/
xlzx/res/drawable-xhdpi/confide_ic_arrow_drop_down_green_18dp
.png
View replaced file @
1591b992
View file @
5c7df153
3.97 KB
|
W:
|
H:
16.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
m-confide/src/xlzx/res/values/colors.xml
View file @
5c7df153
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<!--主题色-->
<!--主题色-->
<color
name=
"confide_main_theme"
>
#fdbd00
</color>
<color
name=
"confide_main_theme"
>
#fdbd00
</color>
<!--主题浅色-->
<!--主题浅色-->
<color
name=
"confide_main_theme_light"
>
#F
FEC8C
</color>
<color
name=
"confide_main_theme_light"
>
#F
CDA42
</color>
<!--主题亮色-->
<!--主题亮色-->
<color
name=
"confide_main_theme_bright"
>
#fffae0
</color>
<color
name=
"confide_main_theme_bright"
>
#fffae0
</color>
<!--确认按钮背景颜色-->
<!--确认按钮背景颜色-->
...
...
m-confide/src/
main/res/drawable/platform
_ic_arrow_drop_down_green_18dp.png
→
m-confide/src/
ydl/res/drawable-xhdpi/confide
_ic_arrow_drop_down_green_18dp.png
View file @
5c7df153
File moved
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