Commit f1b324e6 by konghaorui

首页资源重命名

parent a0726ba8
......@@ -2,6 +2,13 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'resTools' // 资源重命名插件
// 配置资源重命名插件
resConfig {
new_prefix = 'home_' // 资源前缀
old_prefix = '' // 老前缀,可为''空字符串
}
kapt {
arguments {
......@@ -50,12 +57,7 @@ android {
sourceSets {
main {
res.srcDirs = [
'src/main/res',
'src/main/res/layouts',
'src/main/res/layouts/ydlhome', //壹点零用户版首页fragment所在xml
'src/main/res/layouts/ydlhome/holder', //壹点零用户版首页fragment中列表ViewHolder所在xml
]
res.srcDirs = ['src/main/res']
}
}
......
......@@ -185,7 +185,7 @@ open class HomeBaseImpl : IHomeBaseEvent {
return
}
var doctorName =
if (text != mContext?.resources?.getString(R.string.search_hint) && text != mContext?.resources?.getString(
if (text != mContext?.resources?.getString(R.string.home_search_hint) && text != mContext?.resources?.getString(
R.string.platform_search
)
) text else ""
......
<resources>
<string name="app_name">m-home</string>
<string name="search_hint">搜索话题、咨询师姓名</string>
<string name="home_app_name">m-home</string>
<string name="home_search_hint">搜索话题、咨询师姓名</string>
</resources>
......@@ -131,7 +131,7 @@ class YdlHomeAdapter(private val mContext: Context,
}
//底部提示语模块
else -> {
val view = mInflater.inflate(R.layout.home_module_footer_view, parent, false)
val view = mInflater.inflate(R.layout.home_footer_view, parent, false)
return FooterViewViewHolder(view)
}
}
......
......@@ -8,7 +8,7 @@ import com.ydl.webview.NewH5Activity
import com.yidianling.home.R
import com.ydl.ydl_image.module.GlideApp
import com.ydl.ydl_router.manager.YDLRouterManager
import kotlinx.android.synthetic.xlzx.dialog_activity.*
import kotlinx.android.synthetic.xlzx.home_dialog_activity.*
import java.lang.ref.WeakReference
/**
......@@ -33,7 +33,7 @@ class ActivityDialog : Dialog{
window.setBackgroundDrawableResource(android.R.color.transparent)
setContentView(R.layout.dialog_activity)
setContentView(R.layout.home_dialog_activity)
initView()
}
......
......@@ -7,7 +7,7 @@ import android.view.Window
import com.ydl.ydl_image.module.GlideApp
import com.ydl.ydlcommon.utils.DisplayUtils
import com.yidianling.home.R
import kotlinx.android.synthetic.xlzx.dialog_guide_activity.*
import kotlinx.android.synthetic.xlzx.home_dialog_guide_activity.*
import java.util.*
/**
......@@ -32,7 +32,7 @@ class ActivityGuideDialog : Dialog{
requestWindowFeature(Window.FEATURE_NO_TITLE)
window.setBackgroundDrawableResource(android.R.color.transparent)
setContentView(R.layout.dialog_guide_activity)
setContentView(R.layout.home_dialog_guide_activity)
initView()
}
......
......@@ -33,11 +33,11 @@ import com.yidianling.home.presenter.HomePresenterImpl
import com.yidianling.home.ui.utils.Double11ActivityManagerUtils
import com.yidianling.home.ui.view.CouponDialog
import com.yidianling.user.api.service.IUserService
import kotlinx.android.synthetic.xlzx.fragment_home_module.*
import kotlinx.android.synthetic.xlzx.layout_home_module_content.*
import kotlinx.android.synthetic.xlzx.layout_home_module_head_bg.*
import kotlinx.android.synthetic.xlzx.layout_home_module_input.*
import kotlinx.android.synthetic.xlzx.layout_home_module_toolbar.*
import kotlinx.android.synthetic.xlzx.home_fragment_home_module.*
import kotlinx.android.synthetic.xlzx.home_layout_home_module_content.*
import kotlinx.android.synthetic.xlzx.home_layout_home_module_head_bg.*
import kotlinx.android.synthetic.xlzx.home_layout_home_module_input.*
import kotlinx.android.synthetic.xlzx.home_layout_home_module_toolbar.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -73,7 +73,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
private var scrollListner: HomeConfideRecyleSuspendListener? = null
override fun layoutResId(): Int {
return R.layout.fragment_home_module
return R.layout.home_fragment_home_module
}
override fun initDataAndEvent() {
......@@ -142,7 +142,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {//4.4以下不支持状态栏变色
val statusBarHeight = StatusBarUtils.getStatusBarHeight(activity)
var homeTitleBarHeight = resources.getDimension(R.dimen.home_title_bar_height)
var homeTitleBarHeight = resources.getDimension(R.dimen.home_home_title_bar_height)
val lp1 = view_search_toolbar_bg.layoutParams as RelativeLayout.LayoutParams
lp1.height = (homeTitleBarHeight + statusBarHeight).toInt()
view_search_toolbar_bg.layoutParams = lp1
......@@ -281,7 +281,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
for (item in cacheList) {
imageViews.add(item.imageUrl!!)
}
banner_search.setImageLoader(GlideImageLoader(R.drawable.home_module_image_default_back))
banner_search.setImageLoader(GlideImageLoader(R.drawable.home_image_default_back))
.setImages(imageViews).start()
banner_search.setOnBannerListener {
homeEvent?.bannerClick(cacheList!![it])
......
......@@ -7,7 +7,7 @@ import android.os.Bundle
import android.text.TextUtils
import com.yidianling.home.R
import com.yidianling.home.model.bean.CouponBean
import kotlinx.android.synthetic.xlzx.dialog_coupon.*
import kotlinx.android.synthetic.xlzx.home_dialog_coupon.*
/**
* @author jiucheng
......@@ -43,7 +43,7 @@ class CouponDialog : Dialog {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.dialog_coupon)
setContentView(R.layout.home_dialog_coupon)
setCanceledOnTouchOutside(false)
window.setBackgroundDrawable(ColorDrawable())
if (couponBean != null) {
......@@ -86,7 +86,7 @@ class CouponDialog : Dialog {
title = "获得新优惠券"
}
ensureText = "立即领取"
iamge = R.drawable.coupon_receiver
iamge = R.drawable.home_coupon_receiver
}
STATUS_GET -> {
if (list!!.size > 1) {
......@@ -95,7 +95,7 @@ class CouponDialog : Dialog {
title = "恭喜您,领取成功"
}
ensureText = "查看我的卡券"
iamge = R.drawable.coupon_success
iamge = R.drawable.home_coupon_success
}
}
iv_title.setImageResource(iamge)
......
......@@ -9,7 +9,7 @@ import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeArticleBean
import kotlinx.android.synthetic.xlzx.home_module_article_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_article_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -31,7 +31,7 @@ class HomeArticleItemView(private val mContext: Context, private var homeEvent:
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_article_item_view, this)
View.inflate(mContext, R.layout.home_article_item_view, this)
}
fun updateData(bean: HomeArticleBean.Bean?) {
......
......@@ -8,7 +8,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeArticleBean
import kotlinx.android.synthetic.xlzx.home_module_article_view.view.*
import kotlinx.android.synthetic.xlzx.home_article_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -33,7 +33,7 @@ class HomeArticleView(private val mContext: Context, private var homeEvent: IHom
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_article_view, this)
View.inflate(mContext, R.layout.home_article_view, this)
homeModuleArticleViewHomeCommonTitleView.setTitle("文章·阅读")
homeModuleArticleViewHomeCommonTitleView.setOnClickListener {
homeEvent?.articleMoreClick()
......
......@@ -8,9 +8,9 @@ import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.yidianling.common.tools.RxDeviceTool
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import kotlinx.android.synthetic.xlzx.home_module_assuage_grief_image_more_five_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_module_assuage_grief_image_under_four_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_module_assuage_grief_image_under_two_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_assuage_grief_image_more_five_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_assuage_grief_image_under_four_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_assuage_grief_image_under_two_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -44,7 +44,7 @@ class HomeAssuageGriefImageItemView(
layoutParams = params
View.inflate(
mContext,
R.layout.home_module_assuage_grief_image_under_two_item_view,
R.layout.home_assuage_grief_image_under_two_item_view,
this
)
......@@ -61,7 +61,7 @@ class HomeAssuageGriefImageItemView(
layoutParams = params
View.inflate(
mContext,
R.layout.home_module_assuage_grief_image_under_four_item_view,
R.layout.home_assuage_grief_image_under_four_item_view,
this
)
......@@ -90,7 +90,7 @@ class HomeAssuageGriefImageItemView(
layoutParams = params
View.inflate(
mContext,
R.layout.home_module_assuage_grief_image_more_five_item_view,
R.layout.home_assuage_grief_image_more_five_item_view,
this
)
......
......@@ -22,7 +22,7 @@ import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeAskBean
import com.yidianling.user.api.service.IUserService
import kotlinx.android.synthetic.xlzx.home_module_assuage_grief_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_assuage_grief_item_view.view.*
/**
......@@ -56,7 +56,7 @@ class HomeAssuageGriefItemView(
, (16 * RxDeviceTool.getScreenDensity(mContext)).toInt()
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_assuage_grief_item_view, this)
View.inflate(mContext, R.layout.home_assuage_grief_item_view, this)
}
......@@ -91,9 +91,9 @@ class HomeAssuageGriefItemView(
}
bean.isZan = if (bean.isZan == 1) 0 else 1
if (bean.isZan == 1) {
homeModuleAssuageGriefViewZanState.setImageResource(R.drawable.home_module_assuage_grief_item_view_tab_warm_has_zan)
homeModuleAssuageGriefViewZanState.setImageResource(R.drawable.home_assuage_grief_item_view_tab_warm_has_zan)
} else {
homeModuleAssuageGriefViewZanState.setImageResource(R.drawable.home_module_assuage_grief_item_view_tab_warm)
homeModuleAssuageGriefViewZanState.setImageResource(R.drawable.home_assuage_grief_item_view_tab_warm)
}
bean.zanCount = if (bean.isZan == 1) bean.zanCount + 1 else bean.zanCount - 1
homeModuleAssuageGriefViewZanCount.text = bean?.zanCount.toString()
......@@ -148,9 +148,9 @@ class HomeAssuageGriefItemView(
* 点赞
*/
if (bean?.isZan == 1) {
homeModuleAssuageGriefViewZanState.setImageResource(R.drawable.home_module_assuage_grief_item_view_tab_warm_has_zan)
homeModuleAssuageGriefViewZanState.setImageResource(R.drawable.home_assuage_grief_item_view_tab_warm_has_zan)
} else {
homeModuleAssuageGriefViewZanState.setImageResource(R.drawable.home_module_assuage_grief_item_view_tab_warm)
homeModuleAssuageGriefViewZanState.setImageResource(R.drawable.home_assuage_grief_item_view_tab_warm)
}
/**
......@@ -206,7 +206,7 @@ class HomeAssuageGriefItemView(
if (commentBean.userType == 2) {
setImage(
mContext, homeModuleAssuageGriefViewHotViewComment, "vip",
R.drawable.home_module_assuage_grief_item_user_type_v,
R.drawable.home_assuage_grief_item_user_type_v,
RxImageTool.dp2px(13f),
RxImageTool.dp2px(13f)
)
......
......@@ -7,7 +7,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeAskBean
import kotlinx.android.synthetic.xlzx.home_module_assuage_grief_view.view.*
import kotlinx.android.synthetic.xlzx.home_assuage_grief_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -32,7 +32,7 @@ class HomeAssuageGriefView(private val mContext: Context, private var homeEvent:
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_assuage_grief_view, this)
View.inflate(mContext, R.layout.home_assuage_grief_view, this)
homeModuleAssuageGriefViewHomeCommonTitleView.setTitle("解忧·问答")
homeModuleAssuageGriefViewHomeCommonTitleView.setOnClickListener {
homeEvent?.askMoreClick()
......
......@@ -10,7 +10,7 @@ import com.yidianling.common.tools.RxImageTool
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeHeaderBean
import kotlinx.android.synthetic.xlzx.home_module_button_banner_view.view.*
import kotlinx.android.synthetic.xlzx.home_button_banner_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -52,7 +52,7 @@ class HomeButtonBannerView(private val mContext: Context, private var homeEvent:
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_button_banner_view, this)
View.inflate(mContext, R.layout.home_button_banner_view, this)
// initButtonView()
......@@ -101,7 +101,7 @@ class HomeButtonBannerView(private val mContext: Context, private var homeEvent:
lineParam.leftMargin = dp15
lineParam.rightMargin = dp15
lineView = View(context)
lineView!!.setBackgroundColor(resources.getColor(R.color.home_module_category_view_test_line))
lineView!!.setBackgroundColor(resources.getColor(R.color.home_category_view_test_line))
lineView!!.layoutParams = lineParam
}
......@@ -122,7 +122,7 @@ class HomeButtonBannerView(private val mContext: Context, private var homeEvent:
)
cutOffParams.height = RxImageTool.dip2px(10f)
val cutOffView = View(context)
cutOffView.setBackgroundColor(resources.getColor(R.color.colorBg))
cutOffView.setBackgroundColor(resources.getColor(R.color.home_colorBg))
cutOffView.layoutParams = cutOffParams
ll_home_module_button.addView(cutOffView)
......
......@@ -5,7 +5,7 @@ import android.support.constraint.ConstraintLayout
import android.util.AttributeSet
import android.view.View
import com.yidianling.home.R
import kotlinx.android.synthetic.xlzx.home_module_common_title_view.view.*
import kotlinx.android.synthetic.xlzx.home_common_title_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -21,7 +21,7 @@ class HomeCommonTitleView(private val mContext: Context, private val attributeSe
}
private fun initView() {
View.inflate(mContext, R.layout.home_module_common_title_view, this)
View.inflate(mContext, R.layout.home_common_title_view, this)
}
fun setTitle(title: String) {
......
......@@ -15,7 +15,7 @@ import com.yidianling.home.event.HomeImpl
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.event.IHomeEvent
import com.yidianling.home.model.bean.HomeConfideBean
import kotlinx.android.synthetic.xlzx.home_module_confide_expert_info_view.view.*
import kotlinx.android.synthetic.xlzx.home_confide_expert_info_view.view.*
/**
......@@ -43,7 +43,7 @@ class HomeConfideExpertInfoView(
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(context, R.layout.home_module_confide_expert_info_view, this)
View.inflate(context, R.layout.home_confide_expert_info_view, this)
}
fun setData(bean: HomeConfideBean.BodyBean?, position: Int, isLast: Boolean) {
......@@ -131,16 +131,16 @@ class HomeConfideExpertInfoView(
private fun setConfideButton(bodyBean: HomeConfideBean.BodyBean) {
when (bodyBean.confideLine) {//1在线 2离线 3通话中 4继续倾诉
1 -> {
tv_confide.setBackgroundResource(R.drawable.home_module_confide_line_1)
tv_confide.setBackgroundResource(R.drawable.home_confide_line_1)
}
2 -> {
tv_confide.setBackgroundResource(R.drawable.home_module_confide_line_2)
tv_confide.setBackgroundResource(R.drawable.home_confide_line_2)
}
3 -> {
tv_confide.setBackgroundResource(R.drawable.home_module_confide_line_3)
tv_confide.setBackgroundResource(R.drawable.home_confide_line_3)
}
4 -> {
tv_confide.setBackgroundResource(R.drawable.home_module_confide_line_4)
tv_confide.setBackgroundResource(R.drawable.home_confide_line_4)
}
}
tv_confide.setOnClickListener {
......
......@@ -16,7 +16,7 @@ import com.yidianling.home.event.HomeImpl
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeConfideBean
import com.yidianling.home.model.bean.HomeHeaderBean
import kotlinx.android.synthetic.xlzx.home_module_confide_view.view.*
import kotlinx.android.synthetic.xlzx.home_confide_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -48,7 +48,7 @@ class HomeConfideView(private val mContext: Context, private var homeEvent: Home
)
layoutParams = params
orientation = VERTICAL
View.inflate(mContext, R.layout.home_module_confide_view, this)
View.inflate(mContext, R.layout.home_confide_view, this)
homeModuleConfideViewHomeCommonTitleView.setTitle("倾诉·排解")
homeModuleConfideViewHomeCommonTitleView.setOnClickListener {
homeEvent?.confideMoreClick()
......
......@@ -13,7 +13,7 @@ import com.yidianling.common.tools.RxImageTool
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeConsultBean
import kotlinx.android.synthetic.xlzx.home_module_consult_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_consult_item_view.view.*
/**
* @author jiucheng
......@@ -38,7 +38,7 @@ class HomeConsultItemView(private var mContext: Context, private var homeEvent:
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(context, R.layout.home_module_consult_item_view, this)
View.inflate(context, R.layout.home_consult_item_view, this)
}
fun setData(bean: HomeConsultBean.ListBean?, position: Int, isLast: Boolean, cateId: String?) {
......@@ -121,7 +121,7 @@ class HomeConsultItemView(private var mContext: Context, private var homeEvent:
)
)
tv_consult_chat.background =
ContextCompat.getDrawable(context, R.drawable.home_module_consult_chat_bg)
ContextCompat.getDrawable(context, R.drawable.home_consult_chat_bg)
} else {
tv_consult_chat.text = bodyBean.chatBtnText
tv_consult_chat.setTextColor(
......@@ -131,7 +131,7 @@ class HomeConsultItemView(private var mContext: Context, private var homeEvent:
)
)
tv_consult_chat.background =
ContextCompat.getDrawable(context, R.drawable.home_module_consult_chat_rest_bg)
ContextCompat.getDrawable(context, R.drawable.home_consult_chat_rest_bg)
}
tv_consult_chat.setOnClickListener {
homeEvent!!.consultChatClick(bodyBean.doctorUid.toString())
......
......@@ -15,7 +15,7 @@ import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeConsultBean
import com.yidianling.home.model.bean.HomeHeaderBean
import kotlinx.android.synthetic.xlzx.home_module_confide_view.view.*
import kotlinx.android.synthetic.xlzx.home_confide_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -47,7 +47,7 @@ class HomeConsultView(private val mContext: Context, private var homeEvent: IHom
)
layoutParams = params
orientation = VERTICAL
View.inflate(mContext, R.layout.home_module_confide_view, this)
View.inflate(mContext, R.layout.home_confide_view, this)
homeModuleConfideViewHomeCommonTitleView.setTitle("咨询·理解")
homeModuleConfideViewHomeCommonTitleView.setOnClickListener {
homeEvent?.consultMoreClick()
......
......@@ -8,7 +8,7 @@ import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeCourseBean
import kotlinx.android.synthetic.xlzx.home_module_course_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_course_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -30,7 +30,7 @@ class HomeCourseItemView(private val mContext: Context, private var homeEvent: I
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_course_item_view, this)
View.inflate(mContext, R.layout.home_course_item_view, this)
}
/**
......
......@@ -7,7 +7,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeCourseBean
import kotlinx.android.synthetic.xlzx.home_module_course_view.view.*
import kotlinx.android.synthetic.xlzx.home_course_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -32,7 +32,7 @@ class HomeCourseView(private val mContext: Context, private var homeEvent: IHome
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_course_view, this)
View.inflate(mContext, R.layout.home_course_view, this)
homeModuleCourseViewHomeCommonTitleView.setTitle("课程·成长")
homeModuleCourseViewHomeCommonTitleView.setOnClickListener {
homeEvent?.courseMreClick()
......
......@@ -8,7 +8,7 @@ import com.yidianling.common.tools.RxImageTool
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeFMBean
import kotlinx.android.synthetic.xlzx.home_module_intelligent_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_intelligent_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -35,7 +35,7 @@ class HomeIntelligentItemView(
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_intelligent_item_view, this)
View.inflate(mContext, R.layout.home_intelligent_item_view, this)
}
......
......@@ -9,7 +9,7 @@ import com.yidianling.common.tools.RxImageTool
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeFMBean
import kotlinx.android.synthetic.xlzx.home_module_intelligent_top_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_intelligent_top_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -35,7 +35,7 @@ class HomeIntelligentTopItemView(
var viewHeight = viewWidth * 143 / 345
val params = LinearLayout.LayoutParams(viewWidth, viewHeight)
layoutParams = params
View.inflate(mContext, R.layout.home_module_intelligent_top_item_view, this)
View.inflate(mContext, R.layout.home_intelligent_top_item_view, this)
}
......
......@@ -7,7 +7,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeFMBean
import kotlinx.android.synthetic.xlzx.home_module_intelligent_view.view.*
import kotlinx.android.synthetic.xlzx.home_intelligent_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -32,7 +32,7 @@ class HomeIntelligentView(private val mContext: Context, private var homeEvent:
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_intelligent_view, this)
View.inflate(mContext, R.layout.home_intelligent_view, this)
homeModuleIntelligentViewHomeCommonTitleView.setTitle("心灵·电台")
homeModuleIntelligentViewHomeCommonTitleView.setOnClickListener {
homeEvent?.fmMoreClick()
......
......@@ -16,7 +16,7 @@ import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.event.IHomeEvent
import com.yidianling.home.model.bean.HomeHeaderBean
import kotlinx.android.synthetic.xlzx.home_module_pager_banner_category_view.view.*
import kotlinx.android.synthetic.xlzx.home_pager_banner_category_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -89,7 +89,7 @@ class HomePagerBannerCategoryView(mContext: Context, homeEvent: IHomeBaseEvent)
* 界面初始化
*/
private fun initView() {
View.inflate(context, R.layout.home_module_pager_banner_category_view, this)
View.inflate(context, R.layout.home_pager_banner_category_view, this)
val params = FrameLayout.LayoutParams(
FrameLayout.LayoutParams.MATCH_PARENT,
FrameLayout.LayoutParams.WRAP_CONTENT
......@@ -277,7 +277,7 @@ class HomePagerBannerCategoryView(mContext: Context, homeEvent: IHomeBaseEvent)
lineParam.rightMargin = dp15
lineParam.topMargin = multiple * (imageViewWidth + dp8 + textViewHeight) + dp8
lineView = View(context)
lineView!!.setBackgroundColor(resources.getColor(R.color.home_module_category_view_test_line))
lineView!!.setBackgroundColor(resources.getColor(R.color.home_category_view_test_line))
lineView!!.layoutParams = lineParam
}
......
......@@ -13,9 +13,9 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeHeaderBean
import kotlinx.android.synthetic.xlzx.home_module_real_view_in.view.*
import kotlinx.android.synthetic.xlzx.home_module_real_view_left.view.*
import kotlinx.android.synthetic.xlzx.home_module_real_view_out.view.*
import kotlinx.android.synthetic.xlzx.home_real_view_in.view.*
import kotlinx.android.synthetic.xlzx.home_real_view_left.view.*
import kotlinx.android.synthetic.xlzx.home_real_view_out.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -76,9 +76,9 @@ class HomePagerBannerRealView(mContext: Context, homeEvent: IHomeBaseEvent) :
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT
)
View.inflate(context, R.layout.home_module_real_view_left, this)
view_out = View.inflate(context, R.layout.home_module_real_view_out, null)
view_in = View.inflate(context, R.layout.home_module_real_view_in, null)
View.inflate(context, R.layout.home_real_view_left, this)
view_out = View.inflate(context, R.layout.home_real_view_out, null)
view_in = View.inflate(context, R.layout.home_real_view_in, null)
homeModuleRealViewLeftFrameLayout.addView(view_out)
homeModuleRealViewLeftFrameLayout.addView(view_in)
layoutParams = params
......@@ -187,7 +187,7 @@ class HomePagerBannerRealView(mContext: Context, homeEvent: IHomeBaseEvent) :
nameBuffer.append(bean?.contentBefore)
nameBuffer.append(" ")
nameBuffer.append(bean?.nickName)
nameBuffer.append(resources.getString(R.string.home_module_real_appoint))
nameBuffer.append(resources.getString(R.string.home_real_appoint))
return nameBuffer.toString()
}
......
......@@ -9,7 +9,7 @@ import com.yidianling.common.tools.RxDeviceTool
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeHeaderBean
import kotlinx.android.synthetic.xlzx.home_module_pager_banner_view.view.*
import kotlinx.android.synthetic.xlzx.home_pager_banner_view.view.*
/**
......@@ -36,7 +36,7 @@ class HomePagerBannerView(private val mContext: Context, private var homeEvent:
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_pager_banner_view, this)
View.inflate(mContext, R.layout.home_pager_banner_view, this)
initBannerLayout()
// val addLayoutParams = RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
......@@ -92,7 +92,7 @@ class HomePagerBannerView(private val mContext: Context, private var homeEvent:
mImageViews.add(item.imageUrl!!)
}
}
homeModulePagerBannerViewBanner.setImageLoader(GlideImageLoader(R.drawable.home_module_image_default_back))
homeModulePagerBannerViewBanner.setImageLoader(GlideImageLoader(R.drawable.home_image_default_back))
.setImages(mImageViews).start()
homeModulePagerBannerViewBanner.setOnBannerListener {
......
......@@ -9,7 +9,7 @@ import com.yidianling.common.tools.RxImageTool
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeTestItemBean
import kotlinx.android.synthetic.xlzx.home_module_test_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_test_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -34,7 +34,7 @@ class HomeTestItemView(private val mContext: Context, private var homeEvent: IHo
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_test_item_view, this)
View.inflate(mContext, R.layout.home_test_item_view, this)
}
......
......@@ -11,7 +11,7 @@ import com.yidianling.common.tools.RxImageTool
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeTestItemBean
import kotlinx.android.synthetic.xlzx.home_module_test_top_item_view.view.*
import kotlinx.android.synthetic.xlzx.home_test_top_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -35,7 +35,7 @@ class HomeTestTopItemView(private val mContext: Context, private var homeEvent:
var viewHeight = viewWidth * 143 / 345
val params = LinearLayout.LayoutParams(viewWidth, viewHeight)
layoutParams = params
View.inflate(mContext, R.layout.home_module_test_top_item_view, this)
View.inflate(mContext, R.layout.home_test_top_item_view, this)
}
......
......@@ -8,7 +8,7 @@ import com.yidianling.home.R
import com.yidianling.home.event.HomeImpl
import com.yidianling.home.event.IHomeEvent
import com.yidianling.home.model.bean.HomeTestItemBean
import kotlinx.android.synthetic.xlzx.home_module_test_view.view.*
import kotlinx.android.synthetic.xlzx.home_test_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -29,7 +29,7 @@ class HomeTestView(private val mContext: Context, private var homeEvent: HomeImp
orientation = VERTICAL
val params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_test_view, this)
View.inflate(mContext, R.layout.home_test_view, this)
homeModuleIntelligentViewHomeCommonTitleView.setTitle("测试·分析")
homeModuleIntelligentViewHomeCommonTitleView.setOnClickListener {
homeEvent?.testMoreClick()
......
......@@ -16,7 +16,7 @@ import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeHeaderBean
import com.yidianling.home.ui.view.HomePagerBannerRealView
import kotlinx.android.synthetic.xlzx.home_module_pager_banner_category_view.view.*
import kotlinx.android.synthetic.xlzx.home_pager_banner_category_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -81,7 +81,7 @@ class HomeModuleCategoryView : FrameLayout {
* 界面初始化
*/
private fun initView() {
View.inflate(context, R.layout.home_module_pager_banner_category_view, this)
View.inflate(context, R.layout.home_pager_banner_category_view, this)
val params = FrameLayout.LayoutParams(
FrameLayout.LayoutParams.MATCH_PARENT,
FrameLayout.LayoutParams.WRAP_CONTENT
......
......@@ -4,16 +4,16 @@
android:oneshot="false"
>
<item
android:drawable="@drawable/confide_play_state_3"
android:drawable="@drawable/home_confide_play_state_3"
android:duration="0"/>
<item
android:drawable="@drawable/confide_play_state_1"
android:drawable="@drawable/home_confide_play_state_1"
android:duration="300"/>
<item
android:drawable="@drawable/confide_play_state_2"
android:drawable="@drawable/home_confide_play_state_2"
android:duration="300"/>
<item
android:drawable="@drawable/confide_play_state_3"
android:drawable="@drawable/home_confide_play_state_3"
android:duration="300"/>
</animation-list>
......@@ -20,7 +20,7 @@
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:id="@+id/homeModuleArticleItemViewImg"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
</android.support.v7.widget.CardView>
<TextView
......@@ -68,7 +68,7 @@
android:id="@+id/homeModuleArticleItemViewIcon"
android:layout_width="@dimen/platform_dp_12"
android:layout_height="@dimen/platform_dp_12"
android:src="@drawable/home_module_article_item_icon"
android:src="@drawable/home_article_item_icon"
android:layout_marginTop="1dp"
android:layout_alignParentLeft="true"/>
......
......@@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="118"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
......@@ -36,7 +36,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="104"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
......@@ -48,7 +48,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="104"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
</LinearLayout>
</LinearLayout>
......@@ -69,7 +69,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="118"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
......@@ -84,7 +84,7 @@
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<TextView
android:id="@+id/homeModuleAssuageGriefUnderFiveItemViewTag"
......@@ -94,7 +94,7 @@
android:layout_alignParentRight="true"
android:layout_marginBottom="@dimen/platform_dp_5"
android:layout_marginRight="@dimen/platform_dp_5"
android:background="@drawable/home_module_assuage_grief_item_view_image_num_back"
android:background="@drawable/home_assuage_grief_item_view_image_num_back"
android:gravity="center"
tools:text="9图"
android:textColor="@color/platform_color_242424"
......
......@@ -14,7 +14,7 @@
android:layout_weight="156"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="0dp"
android:layout_weight="2"
......@@ -31,7 +31,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="88"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
......@@ -47,7 +47,7 @@
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<TextView
android:id="@+id/homeModuleAssuageGriefUnderFourthItemViewTag"
android:layout_width="30dp"
......@@ -56,7 +56,7 @@
tools:text="9图"
android:textSize="@dimen/platform_dp_10"
android:textColor="@color/platform_color_242424"
android:background="@drawable/home_module_assuage_grief_item_view_image_num_back"
android:background="@drawable/home_assuage_grief_item_view_image_num_back"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/platform_dp_5"
......
......@@ -11,7 +11,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
</RelativeLayout>
</merge>
......@@ -10,7 +10,7 @@
android:paddingTop="@dimen/platform_dp_18"
android:paddingLeft="@dimen/platform_dp_15"
android:paddingRight="@dimen/platform_dp_15"
android:background="@drawable/home_module_view_shadow_bg">
android:background="@drawable/home_view_shadow_bg">
<RelativeLayout
android:layout_width="match_parent"
......@@ -21,7 +21,7 @@
android:id="@+id/homeModuleAssuageGriefViewPersonCardView"
android:layout_width="38dp"
android:layout_height="38dp"
android:background="@drawable/home_module_assuage_grief_stroke_line">
android:background="@drawable/home_assuage_grief_stroke_line">
<android.support.v7.widget.CardView
android:layout_width="@dimen/platform_dp_36"
android:layout_height="@dimen/platform_dp_36"
......@@ -74,7 +74,7 @@
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/home_module_focus_en"
android:src="@drawable/home_focus_en"
android:layout_centerInParent="true"/>
<ImageView
......@@ -82,7 +82,7 @@
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/home_module_focus_un"
android:src="@drawable/home_focus_un"
android:layout_centerInParent="true"/>
</RelativeLayout>
......@@ -123,13 +123,13 @@
android:layout_height="wrap_content"
android:paddingBottom="@dimen/platform_dp_12"
android:layout_marginTop="@dimen/platform_dp_16"
android:background="@drawable/home_module_assuage_grief_item_view_tab_back">
android:background="@drawable/home_assuage_grief_item_view_tab_back">
<ImageView
android:id="@+id/homeModuleAssuageGriefViewHotView"
android:layout_height="@dimen/platform_dp_14"
android:layout_width="@dimen/platform_dp_28"
android:src="@drawable/home_module_comment_hot_icon"/>
android:src="@drawable/home_comment_hot_icon"/>
<TextView
android:id="@+id/homeModuleAssuageGriefViewHotViewComment"
......@@ -179,11 +179,11 @@
android:paddingTop="@dimen/platform_dp_4"
android:paddingBottom="@dimen/platform_dp_4"
android:gravity="center_vertical"
android:background="@drawable/home_module_assuage_grief_item_view_tab_back">
android:background="@drawable/home_assuage_grief_item_view_tab_back">
<ImageView
android:layout_width="11.36dp"
android:layout_height="10.72dp"
android:src="@drawable/home_module_assuage_grief_item_view_tab_icon"/>
android:src="@drawable/home_assuage_grief_item_view_tab_icon"/>
<TextView
android:id="@+id/homeModuleAssuageGriefViewTag"
android:layout_width="wrap_content"
......@@ -200,7 +200,7 @@
<ImageView
android:layout_width="@dimen/platform_dp_18"
android:layout_height="@dimen/platform_dp_18"
android:src="@drawable/home_module_assuage_grief_item_view_tab_comment"/>
android:src="@drawable/home_assuage_grief_item_view_tab_comment"/>
<TextView
android:id="@+id/homeModuleAssuageGriefViewCommentsCount"
android:layout_width="wrap_content"
......@@ -227,7 +227,7 @@
android:id="@+id/homeModuleAssuageGriefViewZanState"
android:layout_width="@dimen/platform_dp_18"
android:layout_height="@dimen/platform_dp_18"
android:src="@drawable/home_module_assuage_grief_item_view_tab_warm"/>
android:src="@drawable/home_assuage_grief_item_view_tab_warm"/>
<TextView
android:id="@+id/homeModuleAssuageGriefViewZanCount"
android:layout_width="wrap_content"
......
......@@ -32,7 +32,7 @@
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_weight="1"
android:background="@drawable/home_module_dcotor_bt_bg"
android:background="@drawable/home_dcotor_bt_bg"
android:gravity="center"
>
......@@ -62,7 +62,7 @@
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_weight="1"
android:background="@drawable/home_module_listen_bt_bg"
android:background="@drawable/home_listen_bt_bg"
>
<RelativeLayout
......@@ -73,7 +73,7 @@
android:paddingBottom="1dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:background="@drawable/home_module_button_first_free_bg">
android:background="@drawable/home_button_first_free_bg">
</RelativeLayout>
<LinearLayout
......@@ -126,7 +126,7 @@
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_weight="1"
android:background="@drawable/home_module_course_bt_bg"
android:background="@drawable/home_course_bt_bg"
android:gravity="center"
android:orientation="vertical">
......@@ -154,7 +154,7 @@
android:layout_width="0dp"
android:layout_height="78dp"
android:layout_weight="1"
android:background="@drawable/home_module_test_bt_bg"
android:background="@drawable/home_test_bt_bg"
android:gravity="center"
>
......
......@@ -10,7 +10,7 @@
<View
android:layout_width="0dp"
android:layout_height="5dp"
android:background="@drawable/home_module_common_title_gradient_back"
android:background="@drawable/home_common_title_gradient_back"
app:layout_constraintLeft_toLeftOf="@+id/homeModuleCommonTitleViewTitle"
app:layout_constraintRight_toRightOf="@+id/homeModuleCommonTitleViewTitle"
app:layout_constraintBottom_toBottomOf="@+id/homeModuleCommonTitleViewTitle"
......@@ -37,7 +37,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:layout_marginRight="@dimen/platform_dp_15"
android:background="@drawable/home_module_show_more_line">
android:background="@drawable/home_show_more_line">
<TextView
android:layout_width="wrap_content"
......@@ -51,7 +51,7 @@
<ImageView
android:layout_height="8dp"
android:layout_width="4dp"
android:src="@drawable/home_module_sale_arrow"
android:src="@drawable/home_sale_arrow"
android:layout_marginLeft="3dp"/>
</LinearLayout>
......
......@@ -19,7 +19,7 @@
android:layout_alignRight="@id/img_head"
android:layout_width="22dp"
android:layout_height="22dp"
android:src="@drawable/anim_confilde_play"
android:src="@drawable/home_anim_confilde_play"
android:layout_alignEnd="@id/img_head"/>
<TextView
......@@ -31,7 +31,7 @@
android:layout_marginTop="@dimen/platform_dp_13"
android:layout_marginEnd="@dimen/platform_dp_15"
android:gravity="center"
android:background="@drawable/home_module_confide_line_1"
android:background="@drawable/home_confide_line_1"
/>
<LinearLayout
......@@ -61,7 +61,7 @@
android:layout_height="13dp"
android:layout_marginStart="6dp"
android:layout_marginLeft="3dp"
android:background="@drawable/home_module_counselor"/>
android:background="@drawable/home_counselor"/>
</LinearLayout>
......@@ -184,7 +184,7 @@
android:layout_marginTop="3dp"
android:layout_marginBottom="2dp"
android:layout_toRightOf="@+id/tvOriginalPrice"
android:background="@drawable/home_module_confide_expert_info_coupon_background"
android:background="@drawable/home_confide_expert_info_coupon_background"
android:gravity="center"
android:paddingLeft="6dp"
android:paddingRight="6dp"
......
......@@ -35,7 +35,7 @@
<View
android:layout_alignParentRight="true"
android:background="@drawable/home_module_consult_head_border"
android:background="@drawable/home_consult_head_border"
android:layout_width="20dp"
android:layout_height="match_parent"/>
......@@ -46,7 +46,7 @@
android:layout_height="10dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:src="@drawable/home_module_sale_arrow"/>
android:src="@drawable/home_sale_arrow"/>
</LinearLayout>
......
......@@ -8,7 +8,7 @@
android:layout_marginLeft="@dimen/platform_dp_15"
android:layout_marginRight="@dimen/platform_dp_15"
android:layout_marginBottom="@dimen/platform_dp_15"
android:background="@drawable/home_module_view_shadow_bg"
android:background="@drawable/home_view_shadow_bg"
android:padding="@dimen/platform_dp_15"
>
......@@ -21,7 +21,7 @@
<View
android:layout_width="103dp"
android:layout_height="105dp"
android:background="@drawable/home_module_consult_head_border"
android:background="@drawable/home_consult_head_border"
/>
<android.support.v7.widget.CardView
android:layout_width="102dp"
......@@ -68,7 +68,7 @@
android:layout_height="13dp"
android:layout_marginStart="6dp"
android:layout_marginLeft="3dp"
android:background="@drawable/home_module_counselor"/>
android:background="@drawable/home_counselor"/>
</LinearLayout>
......@@ -172,7 +172,7 @@
android:layout_height="@dimen/platform_dp_22"
android:layout_alignBottom="@+id/tv_consult_price"
android:layout_alignParentRight="true"
android:background="@drawable/home_module_consult_chat_bg"
android:background="@drawable/home_consult_chat_bg"
android:gravity="center"
android:paddingLeft="17dp"
android:paddingTop="3dp"
......
......@@ -9,7 +9,7 @@
android:layout_marginBottom="@dimen/platform_dp_13"
android:layout_marginTop="@dimen/platform_dp_3"
android:padding="@dimen/platform_dp_15"
android:background="@drawable/home_module_view_shadow_bg">
android:background="@drawable/home_view_shadow_bg">
<android.support.v7.widget.CardView
android:id="@+id/homeModuleCourseItemViewImgCardView"
......@@ -22,7 +22,7 @@
android:layout_width="127dp"
android:layout_height="69dp"
android:scaleType="centerCrop"
android:src="@drawable/home_module_image_default_back"/>
android:src="@drawable/home_image_default_back"/>
</android.support.v7.widget.CardView>
......
......@@ -21,7 +21,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="119dp"
android:background="@mipmap/coupon_background"
android:background="@mipmap/home_coupon_background"
android:gravity="center_horizontal|center_vertical"
android:orientation="vertical">
......@@ -29,7 +29,7 @@
android:id="@+id/iv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:src="@drawable/coupon_receiver" />
tools:src="@drawable/home_coupon_receiver" />
<TextView
android:id="@+id/tv_status"
......@@ -48,7 +48,7 @@
android:layout_height="90dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="-16dp"
android:background="@mipmap/cotent_backgroudn"
android:background="@mipmap/home_cotent_backgroudn"
android:paddingLeft="14dp"
android:paddingRight="14dp"
android:paddingTop="16dp">
......@@ -115,7 +115,7 @@
android:layout_height="42dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp"
android:background="@drawable/background_coupon_button"
android:background="@drawable/home_background_coupon_button"
android:gravity="center"
android:textColor="@color/platform_white"
android:textSize="15sp"
......@@ -131,6 +131,6 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="37dp"
android:background="@drawable/pop_close"
android:background="@drawable/home_pop_close"
android:padding="10dp" />
</LinearLayout>
......@@ -18,7 +18,7 @@
android:id="@+id/img_line"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/activity_guide"
android:src="@mipmap/home_activity_guide"
app:layout_constraintTop_toBottomOf="@+id/img_activity"
app:layout_constraintLeft_toLeftOf="@+id/img_activity"
app:layout_constraintRight_toRightOf="@+id/img_activity"/>
......
......@@ -12,7 +12,7 @@
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorBg"
android:background="@color/home_colorBg"
android:clipChildren="false"
android:clipToPadding="false"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
......@@ -22,7 +22,7 @@
android:id="@+id/appbar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorBg"
android:background="@color/home_colorBg"
android:clipChildren="false"
android:clipToPadding="false"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
......@@ -36,15 +36,15 @@
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<include layout="@layout/layout_home_module_head_bg"/>
<include layout="@layout/home_layout_home_module_head_bg"/>
<include
layout="@layout/layout_home_module_head_middle"/>
layout="@layout/home_layout_home_module_head_middle"/>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/home_title_bar_height"
android:layout_height="@dimen/home_home_title_bar_height"
android:alpha="0"
android:background="@android:color/white"
android:tag="toolbar"
......@@ -52,14 +52,14 @@
app:layout_collapseMode="pin"
app:popupTheme="@style/Widget.AppCompat.Toolbar"/>
<include layout="@layout/layout_home_module_toolbar"/>
<include layout="@layout/home_layout_home_module_toolbar"/>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<include layout="@layout/layout_home_module_content"/>
<include layout="@layout/home_layout_home_module_content"/>
<include layout="@layout/layout_home_module_input"/>
<include layout="@layout/home_layout_home_module_input"/>
</android.support.design.widget.CoordinatorLayout>
</android.support.v4.widget.SwipeRefreshLayout>
......@@ -14,7 +14,7 @@
android:id="@+id/iv_fm_play"
android:layout_height="@dimen/platform_dp_22"
android:layout_width="@dimen/platform_dp_22"
android:src="@drawable/home_module_intelligent_item_play_icon"
android:src="@drawable/home_intelligent_item_play_icon"
android:layout_marginRight="@dimen/platform_dp_7"/>
<TextView
......@@ -43,7 +43,7 @@
<ImageView
android:layout_height="@dimen/platform_dp_11"
android:layout_width="@dimen/platform_dp_12"
android:src="@drawable/home_module_intelligent_item_listen_icon"
android:src="@drawable/home_intelligent_item_listen_icon"
android:layout_marginLeft="@dimen/platform_dp_4"/>
</LinearLayout>
......@@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/homeModuleIntelligentTopViewImage"
android:background="@drawable/home_module_image_default_back"
android:background="@drawable/home_image_default_back"
android:scaleType="centerCrop"/>
<LinearLayout
......@@ -35,7 +35,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="55"
android:background="@drawable/home_module_intelligent_gradient_back"/>
android:background="@drawable/home_intelligent_gradient_back"/>
</LinearLayout>
</RelativeLayout>
......@@ -67,7 +67,7 @@
android:gravity="center_vertical"
android:paddingLeft="@dimen/platform_dp_10"
android:paddingRight="@dimen/platform_dp_10"
android:background="@drawable/home_module_intelligent_top_view_layout_back"
android:background="@drawable/home_intelligent_top_view_layout_back"
android:layout_alignLeft="@+id/homeModuleIntelligentTopViewTitle"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/platform_dp_14">
......@@ -110,7 +110,7 @@
android:id="@+id/iv_play_fm"
android:layout_width="@dimen/platform_dp_36"
android:layout_height="@dimen/platform_dp_36"
android:src="@drawable/home_module_intelligent_first_play_icon"
android:src="@drawable/home_intelligent_first_play_icon"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="@dimen/platform_dp_14"
......@@ -120,7 +120,7 @@
android:layout_width="@dimen/platform_dp_64"
android:layout_height="@dimen/platform_dp_20"
android:layout_alignParentRight="true"
android:background="@drawable/home_module_intelligent_top_view_recommend_back">
android:background="@drawable/home_intelligent_top_view_recommend_back">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......
......@@ -17,7 +17,7 @@
android:layout_marginRight="@dimen/platform_dp_15"
android:layout_marginTop="@dimen/platform_dp_2"
android:layout_marginBottom="@dimen/platform_dp_20"
android:background="@drawable/home_module_card_view_stroke"
android:background="@drawable/home_card_view_stroke"
android:orientation="vertical"></LinearLayout>
</merge>
......@@ -18,10 +18,10 @@
<com.ydl.ydlcommon.view.banner.Banner
android:id="@+id/banner_search"
android:layout_width="match_parent"
android:layout_height="@dimen/head_bg_height"
android:layout_height="@dimen/home_head_bg_height"
app:pa_indicator_different_width="14dp"
app:pa_indicator_drawable_selected="@drawable/home_module_banner_tip_select"
app:pa_indicator_drawable_unselected="@drawable/home_module_banner_tip_unselect"
app:pa_indicator_drawable_selected="@drawable/home_banner_tip_select"
app:pa_indicator_drawable_unselected="@drawable/home_banner_tip_unselect"
app:pa_indicator_height="5dp"
app:pa_indicator_margin="1.25dp"
app:pa_is_selected_same_unselected="false"
......@@ -33,7 +33,7 @@
android:layout_alignBottom="@+id/banner_search"
android:layout_width="match_parent"
android:layout_height="16dp"
android:background="@drawable/home_module_arc_bg"/>
android:background="@drawable/home_arc_bg"/>
</RelativeLayout>
......
......@@ -5,8 +5,8 @@
android:id="@+id/middle_but_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/head_bg_height"
android:background="@color/colorBg"
android:layout_marginTop="@dimen/home_head_bg_height"
android:background="@color/home_colorBg"
android:tag="middle_but_layout"
app:layout_collapseMode="parallax"
app:layout_collapseParallaxMultiplier="0.13">
......
......@@ -29,7 +29,7 @@
android:id="@+id/view_search_input_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_home_module_input"
android:background="@drawable/home_bg_home_module_input"
android:tag="tag_search_input_bg"
/>
......@@ -42,7 +42,7 @@
android:scaleType="centerCrop"
android:layout_centerVertical="true"
android:tag="tag_search_input_img"
android:src="@drawable/home_module_search"/>
android:src="@drawable/home_search"/>
<EditText
android:editable="false"
......@@ -60,7 +60,7 @@
android:singleLine="true"
android:textColor="@color/platform_color_444444"
android:textColorHint="#999999"
android:textCursorDrawable="@color/color_0CACF4"
android:textCursorDrawable="@color/home_color_0CACF4"
android:tag="tag_search_input_edit"
android:textSize="12sp"
/>
......
......@@ -13,7 +13,7 @@
<View
android:id="@+id/view_search_toolbar_bg"
android:layout_width="match_parent"
android:layout_height="@dimen/home_title_bar_height"
android:layout_height="@dimen/home_home_title_bar_height"
android:background="#FFDD33"
android:tag="toolbar_bg"
/>
......
......@@ -14,8 +14,8 @@
android:layout_width="match_parent"
android:layout_height="180dp"
app:pa_indicator_different_width="14dp"
app:pa_indicator_drawable_selected="@drawable/home_module_banner_tip_select"
app:pa_indicator_drawable_unselected="@drawable/home_module_banner_tip_unselect"
app:pa_indicator_drawable_selected="@drawable/home_banner_tip_select"
app:pa_indicator_drawable_unselected="@drawable/home_banner_tip_unselect"
app:pa_indicator_height="5dp"
app:pa_indicator_margin="1.25dp"
app:pa_is_selected_same_unselected="false"
......@@ -26,7 +26,7 @@
android:layout_alignBottom="@+id/homeModulePagerBannerViewBanner"
android:layout_width="match_parent"
android:layout_height="15dp"
android:background="@drawable/home_module_arc_bg"/>
android:background="@drawable/home_arc_bg"/>
</RelativeLayout>
......
......@@ -13,7 +13,7 @@
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:scaleType="centerCrop"
android:src="@drawable/home_module_near_icon"/>
android:src="@drawable/home_near_icon"/>
<FrameLayout
android:id="@+id/homeModuleRealViewLeftFrameLayout"
......@@ -26,6 +26,6 @@
android:layout_height="8dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="15dp"
android:background="@drawable/home_module_sale_arrow"
android:background="@drawable/home_sale_arrow"
/>
</LinearLayout>
......@@ -28,7 +28,7 @@
android:id="@+id/iv_test_item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/home_module_image_default_back"
android:background="@drawable/home_image_default_back"
android:scaleType="centerCrop"/>
</android.support.v7.widget.CardView>
......@@ -102,7 +102,7 @@
<TextView
android:layout_width="@dimen/platform_dp_32"
android:layout_height="@dimen/platform_dp_32"
android:background="@drawable/home_module_test_item_go_bg"
android:background="@drawable/home_test_item_go_bg"
android:gravity="center"
android:text="GO"
android:textSize="13sp"
......
......@@ -21,7 +21,7 @@
android:id="@+id/homeModuleIntelligentTopViewImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/home_module_image_default_back"
android:background="@drawable/home_image_default_back"
android:scaleType="centerCrop"/>
<LinearLayout
......@@ -38,7 +38,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="55"
android:background="@drawable/home_module_intelligent_gradient_back"/>
android:background="@drawable/home_intelligent_gradient_back"/>
</LinearLayout>
</RelativeLayout>
......@@ -69,7 +69,7 @@
android:layout_alignLeft="@+id/homeModuleIntelligentTopViewTitle"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/platform_dp_14"
android:background="@drawable/home_module_test_top_view_layout_back"
android:background="@drawable/home_test_top_view_layout_back"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/platform_dp_10"
......@@ -117,7 +117,7 @@
android:layout_width="@dimen/platform_dp_64"
android:layout_height="@dimen/platform_dp_20"
android:layout_alignParentRight="true"
android:background="@drawable/home_module_intelligent_top_view_recommend_back">
android:background="@drawable/home_intelligent_top_view_recommend_back">
<TextView
android:layout_width="wrap_content"
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="home_module_category_view_test_line">#F0F0F0</color>
<color name="colorBg">#f5f5f5</color>
<color name="color_0CACF4">#0CACF4</color>
<color name="home_category_view_test_line">#F0F0F0</color>
<color name="home_colorBg">#f5f5f5</color>
<color name="home_color_0CACF4">#0CACF4</color>
</resources>
<resources>
<dimen name="dp_60">60dp</dimen>
<dimen name="home_title_bar_height">48dp</dimen>
<dimen name="bg_height">300dp</dimen>
<dimen name="text_margin">16dp</dimen>
<dimen name="head_bg_height">180dp</dimen>
<dimen name="search_input_margin">160dp</dimen>
<dimen name="home_dp_60">60dp</dimen>
<dimen name="home_home_title_bar_height">48dp</dimen>
<dimen name="home_bg_height">300dp</dimen>
<dimen name="home_text_margin">16dp</dimen>
<dimen name="home_head_bg_height">180dp</dimen>
<dimen name="home_search_input_margin">160dp</dimen>
<!--分割线粗细-->
<dimen name="home_card_corner_radius">10dp</dimen>
<dimen name="home_card_elevation">2dp</dimen>
<dimen name="home_home_card_corner_radius">10dp</dimen>
<dimen name="home_home_card_elevation">2dp</dimen>
</resources>
<resources>
<string name="app_name">home-module</string>
<string name="home_module_real_test_just">刚刚</string>
<string name="home_module_real_test">测试了</string>
<string name="home_module_real_appoint">预约了</string>
<string name="home_app_name">home-module</string>
<string name="home_real_test_just">刚刚</string>
<string name="home_real_test">测试了</string>
<string name="home_real_appoint">预约了</string>
</resources>
......@@ -154,7 +154,7 @@ class YdlHomeAdapter(private val mContext: Context,
}
//底部提示语模块
else -> {
val view = mInflater.inflate(R.layout.home_module_footer_view, parent, false)
val view = mInflater.inflate(R.layout.home_footer_view, parent, false)
return FooterViewViewHolder(view)
}
}
......
......@@ -8,7 +8,7 @@ import com.ydl.webview.NewH5Activity
import com.ydl.ydl_image.module.GlideApp
import com.ydl.ydl_router.manager.YDLRouterManager
import com.yidianling.home.R
import kotlinx.android.synthetic.ydl.dialog_activity.*
import kotlinx.android.synthetic.ydl.home_dialog_activity.*
import java.lang.ref.WeakReference
/**
......@@ -36,7 +36,7 @@ class ActivityDialog : Dialog {
window.setBackgroundDrawableResource(android.R.color.transparent)
setContentView(R.layout.dialog_activity)
setContentView(R.layout.home_dialog_activity)
initView()
}
......
......@@ -6,7 +6,7 @@ import android.os.Bundle
import android.view.Window
import com.yidianling.home.R
import com.ydl.ydl_image.module.GlideApp
import kotlinx.android.synthetic.ydl.dialog_guide_activity.*
import kotlinx.android.synthetic.ydl.home_dialog_guide_activity.*
import java.util.*
/**
......@@ -30,7 +30,7 @@ class ActivityGuideDialog : Dialog {
requestWindowFeature(Window.FEATURE_NO_TITLE)
window.setBackgroundDrawableResource(android.R.color.transparent)
setContentView(R.layout.dialog_guide_activity)
setContentView(R.layout.home_dialog_guide_activity)
initView()
}
......
......@@ -39,7 +39,7 @@ import com.yidianling.home.ui.view.CouponDialog
import com.yidianling.home.ui.utils.Double11ActivityManagerUtils
import com.yidianling.home.utils.HomeAnimUtils
import com.yidianling.user.api.service.IUserService
import kotlinx.android.synthetic.ydl.home_module_fragment.*
import kotlinx.android.synthetic.ydl.home_fragment.*
/**
......@@ -85,7 +85,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
private var searchContent: String = "搜索话题、咨询师姓名"
override fun layoutResId(): Int {
return R.layout.home_module_fragment
return R.layout.home_fragment
}
override fun initDataAndEvent() {
......@@ -159,7 +159,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
private fun initStatus() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {//4.4以下不支持状态栏变色
val statusBarHeight = StatusBarUtils.getStatusBarHeight(activity)
var homeTitleBarHeight = resources.getDimension(R.dimen.home_title_bar_height)
var homeTitleBarHeight = resources.getDimension(R.dimen.home_home_title_bar_height)
val lp1 = view_rl_top_bg.layoutParams as RelativeLayout.LayoutParams
lp1.height = (homeTitleBarHeight + statusBarHeight).toInt()
view_rl_top_bg.layoutParams = lp1
......
......@@ -7,7 +7,7 @@ import android.os.Bundle
import android.text.TextUtils
import com.yidianling.home.R
import com.yidianling.home.model.bean.CouponBean
import kotlinx.android.synthetic.ydl.dialog_coupon.*
import kotlinx.android.synthetic.ydl.home_dialog_coupon.*
/**
* @author jiucheng
......@@ -43,7 +43,7 @@ class CouponDialog : Dialog {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.dialog_coupon)
setContentView(R.layout.home_dialog_coupon)
setCanceledOnTouchOutside(false)
window.setBackgroundDrawable(ColorDrawable())
if (couponBean != null) {
......@@ -86,7 +86,7 @@ class CouponDialog : Dialog {
title = "获得新优惠券"
}
ensureText = "立即领取"
iamge = R.drawable.coupon_receiver
iamge = R.drawable.home_coupon_receiver
}
STATUS_GET -> {
if (list!!.size > 1) {
......@@ -95,7 +95,7 @@ class CouponDialog : Dialog {
title = "恭喜您,领取成功"
}
ensureText = "查看我的卡券"
iamge = R.drawable.coupon_success
iamge = R.drawable.home_coupon_success
}
}
iv_title.setImageResource(iamge)
......
......@@ -10,7 +10,7 @@ import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.event.IHomeEvent
import com.yidianling.home.model.bean.HomeArticleBean
import kotlinx.android.synthetic.ydl.home_module_article_item_view.view.*
import kotlinx.android.synthetic.ydl.home_article_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -32,7 +32,7 @@ class HomeArticleItemView(private val mContext: Context, private var homeEvent:
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_article_item_view, this)
View.inflate(mContext, R.layout.home_article_item_view, this)
}
fun updateData(bean: HomeArticleBean.Bean?) {
......
......@@ -8,7 +8,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeArticleBean
import kotlinx.android.synthetic.ydl.home_module_article_view.view.*
import kotlinx.android.synthetic.ydl.home_article_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -29,7 +29,7 @@ class HomeArticleView(private val mContext: Context, private var homeEvent: IHom
orientation = VERTICAL
val params = RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_article_view, this)
View.inflate(mContext, R.layout.home_article_view, this)
homeModuleArticleViewHomeCommonTitleView.setTitle("文章·阅读")
homeModuleArticleViewHomeCommonTitleView.setOnClickListener {
homeEvent?.articleMoreClick()
......
......@@ -8,9 +8,9 @@ import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.yidianling.common.tools.RxDeviceTool
import kotlinx.android.synthetic.ydl.home_module_assuage_grief_image_more_five_item_view.view.*
import kotlinx.android.synthetic.ydl.home_module_assuage_grief_image_under_four_item_view.view.*
import kotlinx.android.synthetic.ydl.home_module_assuage_grief_image_under_two_item_view.view.*
import kotlinx.android.synthetic.ydl.home_assuage_grief_image_more_five_item_view.view.*
import kotlinx.android.synthetic.ydl.home_assuage_grief_image_under_four_item_view.view.*
import kotlinx.android.synthetic.ydl.home_assuage_grief_image_under_two_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -38,7 +38,7 @@ class HomeAssuageGriefImageItemView(private val mContext: Context, private val u
params = LinearLayout.LayoutParams(viewWidth, viewHeight)
params.bottomMargin = (20 * RxDeviceTool.getScreenDensity(mContext)).toInt()
layoutParams = params
View.inflate(mContext, R.layout.home_module_assuage_grief_image_under_two_item_view, this)
View.inflate(mContext, R.layout.home_assuage_grief_image_under_two_item_view, this)
YDLImageCacheManager.showImage(mContext, urlList[0], homeModuleAssuageGriefUnderTwoItemViewImg)
......@@ -47,7 +47,7 @@ class HomeAssuageGriefImageItemView(private val mContext: Context, private val u
params = LinearLayout.LayoutParams(viewWidth, viewHeight)
params.bottomMargin = (20 * RxDeviceTool.getScreenDensity(mContext)).toInt()
layoutParams = params
View.inflate(mContext, R.layout.home_module_assuage_grief_image_under_four_item_view, this)
View.inflate(mContext, R.layout.home_assuage_grief_image_under_four_item_view, this)
YDLImageCacheManager.showImage(mContext, urlList[0], homeModuleAssuageGriefUnderFourItemViewFirstImg)
YDLImageCacheManager.showImage(mContext, urlList[1], homeModuleAssuageGriefUnderFourItemViewSecondImg)
......@@ -60,7 +60,7 @@ class HomeAssuageGriefImageItemView(private val mContext: Context, private val u
params = LinearLayout.LayoutParams(viewWidth, viewHeight)
params.bottomMargin = (20 * RxDeviceTool.getScreenDensity(mContext)).toInt()
layoutParams = params
View.inflate(mContext, R.layout.home_module_assuage_grief_image_more_five_item_view, this)
View.inflate(mContext, R.layout.home_assuage_grief_image_more_five_item_view, this)
YDLImageCacheManager.showImage(mContext, urlList[0], homeModuleAssuageGriefUnderFiveItemViewFirstImg)
YDLImageCacheManager.showImage(mContext, urlList[1], homeModuleAssuageGriefUnderFiveItemViewSecondImg)
......
......@@ -23,7 +23,7 @@ import com.ydl.ydlcommon.utils.Utils
import com.yidianling.common.tools.RxDeviceTool
import com.yidianling.common.tools.RxImageTool
import com.yidianling.user.api.service.IUserService
import kotlinx.android.synthetic.ydl.home_module_assuage_grief_item_view.view.*
import kotlinx.android.synthetic.ydl.home_assuage_grief_item_view.view.*
/**
......@@ -49,7 +49,7 @@ class HomeAssuageGriefItemView(private val mContext: Context, private var homeEv
, (15 * RxDeviceTool.getScreenDensity(mContext)).toInt()
, (16 * RxDeviceTool.getScreenDensity(mContext)).toInt())
layoutParams = params
View.inflate(mContext, R.layout.home_module_assuage_grief_item_view, this)
View.inflate(mContext, R.layout.home_assuage_grief_item_view, this)
}
......@@ -199,7 +199,7 @@ class HomeAssuageGriefItemView(private val mContext: Context, private var homeEv
// userType为2 ,专家
if (commentBean.userType == 2) {
setImage(mContext, homeModuleAssuageGriefViewHotViewComment, "vip",
R.drawable.home_module_assuage_grief_item_user_type_v,
R.drawable.home_assuage_grief_item_user_type_v,
RxImageTool.dp2px(13f),
RxImageTool.dp2px(13f))
}
......
......@@ -7,7 +7,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeAskBean
import kotlinx.android.synthetic.ydl.home_module_assuage_grief_view.view.*
import kotlinx.android.synthetic.ydl.home_assuage_grief_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -28,7 +28,7 @@ class HomeAssuageGriefView(private val mContext: Context, private var homeEvent:
orientation = VERTICAL
val params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_assuage_grief_view, this)
View.inflate(mContext, R.layout.home_assuage_grief_view, this)
homeModuleAssuageGriefViewHomeCommonTitleView.setTitle("解忧·问答")
homeModuleAssuageGriefViewHomeCommonTitleView.setOnClickListener {
homeEvent?.askMoreClick()
......
......@@ -8,7 +8,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.common.tools.RxDeviceTool
import kotlinx.android.synthetic.ydl.home_module_button_banner_view.view.*
import kotlinx.android.synthetic.ydl.home_button_banner_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -28,7 +28,7 @@ class HomeButtonBannerView(private val mContext: Context, private var homeEvent:
private fun initView() {
val params = RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_button_banner_view, this)
View.inflate(mContext, R.layout.home_button_banner_view, this)
initButtonView()
......
......@@ -12,7 +12,7 @@ import com.yidianling.home.adapter.HomeCategoryAdapter
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeHeaderBean
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.ydl.home_module_category_container.view.*
import kotlinx.android.synthetic.ydl.home_category_container.view.*
/**
......@@ -24,8 +24,8 @@ class HomeCategoryContainer(private val mContext: Context, private var homeEvent
private var mHomeCategoryAdapter: HomeCategoryAdapter? = null
private var indicatorImages: MutableList<ImageView>? = ArrayList()
private var mIndicatorSelectedResId = R.drawable.home_module_category_tip_select
private var mIndicatorUnselectedResId = R.drawable.home_module_category_tip_unselect
private var mIndicatorSelectedResId = R.drawable.home_category_tip_select
private var mIndicatorUnselectedResId = R.drawable.home_category_tip_unselect
private var lastPosition = 0
private var count = 0
......@@ -43,7 +43,7 @@ class HomeCategoryContainer(private val mContext: Context, private var homeEvent
}
private fun initView() {
View.inflate(mContext, R.layout.home_module_category_container, this)
View.inflate(mContext, R.layout.home_category_container, this)
initViewPager()
}
......
......@@ -5,7 +5,7 @@ import android.support.constraint.ConstraintLayout
import android.util.AttributeSet
import android.view.View
import com.yidianling.home.R
import kotlinx.android.synthetic.ydl.home_module_common_title_view.view.*
import kotlinx.android.synthetic.ydl.home_common_title_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -21,7 +21,7 @@ class HomeCommonTitleView(private val mContext: Context, private val attributeSe
}
private fun initView() {
View.inflate(mContext, R.layout.home_module_common_title_view, this)
View.inflate(mContext, R.layout.home_common_title_view, this)
}
fun setTitle(title: String) {
......
......@@ -13,7 +13,7 @@ import com.yidianling.home.model.bean.HomeConfideBean
import com.ydl.ydl_image.config.SimpleImageOpConfiger
import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.ydl.home_module_confide_expert_info_view.view.*
import kotlinx.android.synthetic.ydl.home_confide_expert_info_view.view.*
/**
* @author jiucheng
......@@ -34,7 +34,7 @@ class HomeConfideExpertInfoView(private var mContext: Context, private var homeE
private fun initView() {
var params = FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(context, R.layout.home_module_confide_expert_info_view, this)
View.inflate(context, R.layout.home_confide_expert_info_view, this)
}
fun setData(bean: HomeConfideBean.BodyBean?, position: Int, isLast: Boolean) {
......@@ -114,16 +114,16 @@ class HomeConfideExpertInfoView(private var mContext: Context, private var homeE
private fun setConfideButton(bodyBean: HomeConfideBean.BodyBean) {
when (bodyBean.confideLine) {//1在线 2离线 3通话中 4继续倾诉
1 -> {
tv_confide.setBackgroundResource(R.drawable.home_module_confide_line_1)
tv_confide.setBackgroundResource(R.drawable.home_confide_line_1)
}
2 -> {
tv_confide.setBackgroundResource(R.drawable.home_module_confide_line_2)
tv_confide.setBackgroundResource(R.drawable.home_confide_line_2)
}
3 -> {
tv_confide.setBackgroundResource(R.drawable.home_module_confide_line_3)
tv_confide.setBackgroundResource(R.drawable.home_confide_line_3)
}
4 -> {
tv_confide.setBackgroundResource(R.drawable.home_module_confide_line_4)
tv_confide.setBackgroundResource(R.drawable.home_confide_line_4)
}
}
tv_confide.setOnClickListener {
......
......@@ -15,7 +15,7 @@ import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeConfideBean
import com.yidianling.home.model.bean.HomeHeaderBean
import com.yidianling.common.tools.LogUtil
import kotlinx.android.synthetic.ydl.home_module_confide_view.view.*
import kotlinx.android.synthetic.ydl.home_confide_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -43,7 +43,7 @@ class HomeConfideView(private val mContext: Context, private var homeEvent: IHom
val params = RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
orientation = VERTICAL
View.inflate(mContext, R.layout.home_module_confide_view, this)
View.inflate(mContext, R.layout.home_confide_view, this)
homeModuleConfideViewHomeCommonTitleView.setTitle("倾诉·排解")
homeModuleConfideViewHomeCommonTitleView.setOnClickListener {
homeEvent?.confideMoreClick()
......
......@@ -13,7 +13,7 @@ import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.ydl.ydlcommon.utils.StringUtils
import com.ydl.ydlcommon.utils.URLUtils
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.ydl.home_module_consult_item_view.view.*
import kotlinx.android.synthetic.ydl.home_consult_item_view.view.*
/**
* @author jiucheng
......@@ -34,7 +34,7 @@ class HomeConsultItemView(private var mContext: Context, private var homeEvent:
private fun initView() {
val params = FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(context, R.layout.home_module_consult_item_view, this)
View.inflate(context, R.layout.home_consult_item_view, this)
}
fun setData(bean: HomeConsultBean.ListBean?, position: Int, isLast: Boolean,cateId : String?) {
......
......@@ -15,7 +15,7 @@ import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeConsultBean
import com.yidianling.home.model.bean.HomeHeaderBean
import com.yidianling.common.tools.LogUtil
import kotlinx.android.synthetic.ydl.home_module_confide_view.view.*
import kotlinx.android.synthetic.ydl.home_confide_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -48,7 +48,7 @@ class HomeConsultView(private val mContext: Context, private var homeEvent: IHom
val params = RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
orientation = VERTICAL
View.inflate(mContext, R.layout.home_module_confide_view, this)
View.inflate(mContext, R.layout.home_confide_view, this)
homeModuleConfideViewHomeCommonTitleView.setTitle("咨询·理解")
homeModuleConfideViewHomeCommonTitleView.setOnClickListener {
homeEvent?.consultMoreClick()
......
......@@ -8,7 +8,7 @@ import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeCourseBean
import com.ydl.ydl_image.manager.YDLImageCacheManager
import kotlinx.android.synthetic.ydl.home_module_course_item_view.view.*
import kotlinx.android.synthetic.ydl.home_course_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -26,7 +26,7 @@ class HomeCourseItemView(private val mContext: Context, private var homeEvent: I
private fun initView() {
val params = RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_course_item_view, this)
View.inflate(mContext, R.layout.home_course_item_view, this)
}
/**
......
......@@ -7,7 +7,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeCourseBean
import kotlinx.android.synthetic.ydl.home_module_course_view.view.*
import kotlinx.android.synthetic.ydl.home_course_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -28,7 +28,7 @@ class HomeCourseView(private val mContext: Context, private var homeEvent: IHome
orientation = VERTICAL
val params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_course_view, this)
View.inflate(mContext, R.layout.home_course_view, this)
homeModuleCourseViewHomeCommonTitleView.setTitle("课程·成长")
homeModuleCourseViewHomeCommonTitleView.setOnClickListener {
homeEvent?.courseMreClick()
......
......@@ -8,7 +8,7 @@ import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeFMBean
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.ydl.home_module_intelligent_item_view.view.*
import kotlinx.android.synthetic.ydl.home_intelligent_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -29,7 +29,7 @@ class HomeIntelligentItemView(private val mContext: Context, private var homeEve
orientation = VERTICAL
params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_intelligent_item_view, this)
View.inflate(mContext, R.layout.home_intelligent_item_view, this)
}
......
......@@ -11,7 +11,7 @@ import com.ydl.ydl_image.config.SimpleImageOpConfiger
import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.yidianling.common.tools.RxDeviceTool
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.ydl.home_module_intelligent_top_item_view.view.*
import kotlinx.android.synthetic.ydl.home_intelligent_top_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -34,7 +34,7 @@ class HomeIntelligentTopItemView(private val mContext: Context, private var home
var viewHeight = viewWidth * 143 / 345
val params = LinearLayout.LayoutParams(viewWidth, viewHeight)
layoutParams = params
View.inflate(mContext, R.layout.home_module_intelligent_top_item_view, this)
View.inflate(mContext, R.layout.home_intelligent_top_item_view, this)
}
......
......@@ -7,7 +7,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeFMBean
import kotlinx.android.synthetic.ydl.home_module_intelligent_view.view.*
import kotlinx.android.synthetic.ydl.home_intelligent_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -28,7 +28,7 @@ class HomeIntelligentView(private val mContext: Context, private var homeEvent:
orientation = VERTICAL
val params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_intelligent_view, this)
View.inflate(mContext, R.layout.home_intelligent_view, this)
homeModuleIntelligentViewHomeCommonTitleView.setTitle("心灵·电台")
homeModuleIntelligentViewHomeCommonTitleView.setOnClickListener {
homeEvent?.fmMoreClick()
......
......@@ -10,7 +10,7 @@ import com.google.gson.Gson
import com.yidianling.home.R
import com.yidianling.home.event.IHomeEvent
import com.yidianling.home.model.bean.MuseModuleBean
import kotlinx.android.synthetic.ydl.home_module_muse_view.view.*
import kotlinx.android.synthetic.ydl.home_muse_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -36,7 +36,7 @@ class HomeMuseView(private val mContext: Context, private var homeEvent: IHomeEv
ViewGroup.LayoutParams.WRAP_CONTENT
)
layoutParams = params
View.inflate(mContext, R.layout.home_module_muse_view, this)
View.inflate(mContext, R.layout.home_muse_view, this)
homeModuleMuseViewHomeCommonTitleView.setTitle("助眠·冥想")
}
......
......@@ -15,7 +15,7 @@ import com.yidianling.home.model.bean.HomeHeaderBean
import com.ydl.ydl_image.module.GlideApp
import com.ydl.ydlcommon.utils.ScreenUtil
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.ydl.home_module_pager_banner_category_view.view.*
import kotlinx.android.synthetic.ydl.home_pager_banner_category_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -80,7 +80,7 @@ class HomePagerBannerCategoryItemView(mContext: Context, homeEvent: IHomeBaseEve
* 界面初始化
*/
private fun initView() {
View.inflate(context, R.layout.home_module_pager_banner_category_view, this)
View.inflate(context, R.layout.home_pager_banner_category_view, this)
val params = FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT)
// params.topMargin = ScreenUtil.screenHeight * (356f / 750f).toInt()
layoutParams = params
......@@ -242,7 +242,7 @@ class HomePagerBannerCategoryItemView(mContext: Context, homeEvent: IHomeBaseEve
lineParam.rightMargin = dp15
lineParam.topMargin = multiple * (imageViewWidth + dp8 + textViewHeight) + dp8
lineView = View(context)
lineView!!.setBackgroundColor(resources.getColor(R.color.home_module_category_view_test_line))
lineView!!.setBackgroundColor(resources.getColor(R.color.home_category_view_test_line))
lineView!!.layoutParams = lineParam
}
......
......@@ -15,9 +15,9 @@ import com.yidianling.consultant.constants.HomeBIConstants
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeHeaderBean
import kotlinx.android.synthetic.ydl.home_module_real_view_in.view.*
import kotlinx.android.synthetic.ydl.home_module_real_view_left.view.*
import kotlinx.android.synthetic.ydl.home_module_real_view_out.view.*
import kotlinx.android.synthetic.ydl.home_real_view_in.view.*
import kotlinx.android.synthetic.ydl.home_real_view_left.view.*
import kotlinx.android.synthetic.ydl.home_real_view_out.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -74,9 +74,9 @@ class HomePagerBannerRealView(mContext : Context,homeEvent : IHomeBaseEvent) : L
private fun initView() {
orientation = HORIZONTAL
var params = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT)
View.inflate(context, R.layout.home_module_real_view_left, this)
view_out = View.inflate(context, R.layout.home_module_real_view_out,null)
view_in = View.inflate(context, R.layout.home_module_real_view_in,null)
View.inflate(context, R.layout.home_real_view_left, this)
view_out = View.inflate(context, R.layout.home_real_view_out,null)
view_in = View.inflate(context, R.layout.home_real_view_in,null)
homeModuleRealViewLeftFrameLayout.addView(view_out)
homeModuleRealViewLeftFrameLayout.addView(view_in)
layoutParams = params
......@@ -185,7 +185,7 @@ class HomePagerBannerRealView(mContext : Context,homeEvent : IHomeBaseEvent) : L
nameBuffer.append(bean?.contentBefore)
nameBuffer.append(" ")
nameBuffer.append(bean?.nickName)
nameBuffer.append(resources.getString(R.string.home_module_real_appoint))
nameBuffer.append(resources.getString(R.string.home_real_appoint))
return nameBuffer.toString()
}
......
......@@ -12,7 +12,7 @@ import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeHeaderBean
import com.yidianling.common.tools.RxDeviceTool
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.ydl.home_module_pager_banner_view.view.*
import kotlinx.android.synthetic.ydl.home_pager_banner_view.view.*
/**
......@@ -38,7 +38,7 @@ class HomePagerBannerView(private val mContext: Context, private var homeEvent:
var screenWidth = RxDeviceTool.getScreenWidth(mContext)
val params = RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_pager_banner_view, this)
View.inflate(mContext, R.layout.home_pager_banner_view, this)
initBannerLayout()
// val addLayoutParams = RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
......@@ -114,7 +114,7 @@ class HomePagerBannerView(private val mContext: Context, private var homeEvent:
mImageViews.add(item.imageUrl!!)
}
}
homeModulePagerBannerViewBanner.setImageLoader(GlideImageLoader(R.drawable.home_module_image_default_back)).setImages(mImageViews).start()
homeModulePagerBannerViewBanner.setImageLoader(GlideImageLoader(R.drawable.home_image_default_back)).setImages(mImageViews).start()
homeModulePagerBannerViewBanner.setOnBannerListener {
if (it < cacheList?.size) {
......
......@@ -9,7 +9,7 @@ import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeTestItemBean
import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.ydl.home_module_test_item_view.view.*
import kotlinx.android.synthetic.ydl.home_test_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -30,7 +30,7 @@ class HomeTestItemView(private val mContext: Context, private var homeEvent: IHo
orientation = VERTICAL
params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_test_item_view, this)
View.inflate(mContext, R.layout.home_test_item_view, this)
}
......
......@@ -11,7 +11,7 @@ import com.ydl.ydl_image.config.SimpleImageOpConfiger
import com.ydl.ydl_image.manager.YDLImageCacheManager
import com.yidianling.common.tools.RxDeviceTool
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.ydl.home_module_test_top_item_view.view.*
import kotlinx.android.synthetic.ydl.home_test_top_item_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -34,7 +34,7 @@ class HomeTestTopItemView(private val mContext: Context, private var homeEvent:
var viewHeight = viewWidth * 143 / 345
val params = LinearLayout.LayoutParams(viewWidth, viewHeight)
layoutParams = params
View.inflate(mContext, R.layout.home_module_test_top_item_view, this)
View.inflate(mContext, R.layout.home_test_top_item_view, this)
}
......
......@@ -7,7 +7,7 @@ import android.widget.LinearLayout
import com.yidianling.home.R
import com.yidianling.home.event.IHomeBaseEvent
import com.yidianling.home.model.bean.HomeTestItemBean
import kotlinx.android.synthetic.ydl.home_module_test_view.view.*
import kotlinx.android.synthetic.ydl.home_test_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
......@@ -28,7 +28,7 @@ class HomeTestView(private val mContext: Context, private var homeEvent: IHomeBa
orientation = VERTICAL
val params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(mContext, R.layout.home_module_test_view, this)
View.inflate(mContext, R.layout.home_test_view, this)
homeModuleIntelligentViewHomeCommonTitleView.setTitle("测试·分析")
homeModuleIntelligentViewHomeCommonTitleView.setOnClickListener {
homeEvent?.testMoreClick()
......
......@@ -20,7 +20,7 @@
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:id="@+id/homeModuleArticleItemViewImg"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
</android.support.v7.widget.CardView>
<TextView
......@@ -68,7 +68,7 @@
android:id="@+id/homeModuleArticleItemViewIcon"
android:layout_width="@@dimen/platform_dp_12"
android:layout_height="@@dimen/platform_dp_12"
android:src="@drawable/home_module_article_item_icon"
android:src="@drawable/home_article_item_icon"
android:layout_alignParentLeft="true"/>
<TextView
......
......@@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="118"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
......@@ -36,7 +36,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="104"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
......@@ -48,7 +48,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="104"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
</LinearLayout>
</LinearLayout>
......@@ -69,7 +69,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="118"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
......@@ -84,7 +84,7 @@
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<TextView
android:id="@+id/homeModuleAssuageGriefUnderFiveItemViewTag"
......@@ -94,7 +94,7 @@
android:layout_alignParentRight="true"
android:layout_marginBottom="@@dimen/platform_dp_5"
android:layout_marginRight="@@dimen/platform_dp_5"
android:background="@drawable/home_module_assuage_grief_item_view_image_num_back"
android:background="@drawable/home_assuage_grief_item_view_image_num_back"
android:gravity="center"
tools:text="9图"
android:textColor="@color/platform_color_242424"
......
......@@ -14,7 +14,7 @@
android:layout_weight="156"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="0dp"
android:layout_weight="2"
......@@ -31,7 +31,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="88"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
......@@ -47,7 +47,7 @@
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
<TextView
android:id="@+id/homeModuleAssuageGriefUnderFourthItemViewTag"
android:layout_width="30dp"
......@@ -56,7 +56,7 @@
tools:text="9图"
android:textSize="@@dimen/platform_dp_10"
android:textColor="@color/platform_color_242424"
android:background="@drawable/home_module_assuage_grief_item_view_image_num_back"
android:background="@drawable/home_assuage_grief_item_view_image_num_back"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginRight="@@dimen/platform_dp_5"
......
......@@ -11,7 +11,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:background="@drawable/home_module_image_default_back"/>
android:background="@drawable/home_image_default_back"/>
</RelativeLayout>
</merge>
......@@ -10,7 +10,7 @@
android:paddingTop="@@dimen/platform_dp_18"
android:paddingLeft="@@dimen/platform_dp_15"
android:paddingRight="@@dimen/platform_dp_15"
android:background="@drawable/home_module_card_view_stroke">
android:background="@drawable/home_card_view_stroke">
<RelativeLayout
android:layout_width="match_parent"
......@@ -21,7 +21,7 @@
android:id="@+id/homeModuleAssuageGriefViewPersonCardView"
android:layout_width="38dp"
android:layout_height="38dp"
android:background="@drawable/home_module_assuage_grief_stroke_line">
android:background="@drawable/home_assuage_grief_stroke_line">
<android.support.v7.widget.CardView
android:layout_width="@@dimen/platform_dp_36"
android:layout_height="@@dimen/platform_dp_36"
......@@ -73,14 +73,14 @@
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/home_module_assuage_grief_item_view_follow"
android:src="@drawable/home_assuage_grief_item_view_follow"
android:layout_centerInParent="true"/>
<ImageView
android:id="@+id/homeModuleAssuageGriefItemViewUnFollow"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/home_module_assuage_grief_item_view_unfollow"
android:src="@drawable/home_assuage_grief_item_view_unfollow"
android:layout_centerInParent="true"/>
</RelativeLayout>
......@@ -121,13 +121,13 @@
android:layout_height="wrap_content"
android:paddingBottom="@@dimen/platform_dp_12"
android:layout_marginTop="@@dimen/platform_dp_16"
android:background="@drawable/home_module_assuage_grief_item_view_tab_back">
android:background="@drawable/home_assuage_grief_item_view_tab_back">
<ImageView
android:id="@+id/homeModuleAssuageGriefViewHotView"
android:layout_height="@@dimen/platform_dp_14"
android:layout_width="@@dimen/platform_dp_28"
android:src="@drawable/home_module_comment_hot_icon"/>
android:src="@drawable/home_comment_hot_icon"/>
<TextView
android:id="@+id/homeModuleAssuageGriefViewHotViewComment"
......@@ -177,11 +177,11 @@
android:paddingTop="@@dimen/platform_dp_4"
android:paddingBottom="@@dimen/platform_dp_4"
android:gravity="center_vertical"
android:background="@drawable/home_module_assuage_grief_item_view_tab_back">
android:background="@drawable/home_assuage_grief_item_view_tab_back">
<ImageView
android:layout_width="11.36dp"
android:layout_height="10.72dp"
android:src="@drawable/home_module_assuage_grief_item_view_tab_icon"/>
android:src="@drawable/home_assuage_grief_item_view_tab_icon"/>
<TextView
android:id="@+id/homeModuleAssuageGriefViewTag"
android:layout_width="wrap_content"
......@@ -198,7 +198,7 @@
<ImageView
android:layout_width="@@dimen/platform_dp_18"
android:layout_height="@@dimen/platform_dp_18"
android:src="@drawable/home_module_assuage_grief_item_view_tab_comment"/>
android:src="@drawable/home_assuage_grief_item_view_tab_comment"/>
<TextView
android:id="@+id/homeModuleAssuageGriefViewCommentsCount"
android:layout_width="wrap_content"
......@@ -225,7 +225,7 @@
android:id="@+id/homeModuleAssuageGriefViewIsNotZan"
android:layout_width="@@dimen/platform_dp_18"
android:layout_height="@@dimen/platform_dp_18"
android:src="@drawable/home_module_assuage_grief_item_view_tab_warm"/>
android:src="@drawable/home_assuage_grief_item_view_tab_warm"/>
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/homeModuleAssuageGriefViewIsZan"
android:layout_width="@@dimen/platform_dp_18"
......
......@@ -12,7 +12,7 @@
android:id="@+id/homeModuleButtonBannerFirst"
android:layout_width="80dp"
android:layout_height="78dp"
android:background="@drawable/home_module_button_banner_first_img_new"
android:background="@drawable/home_button_banner_first_img_new"
android:gravity="center">
<TextView
android:id="@+id/homeModuleButtonBannerFirstTitle"
......@@ -35,7 +35,7 @@
android:id="@+id/homeModuleButtonBannerSecond"
android:layout_width="80dp"
android:layout_height="78dp"
android:background="@drawable/home_module_confide_free_icon"
android:background="@drawable/home_confide_free_icon"
android:gravity="center">
<TextView
android:id="@+id/homeModuleButtonBannerSecondTitle"
......@@ -59,7 +59,7 @@
android:layout_width="80dp"
android:layout_height="78dp"
android:orientation="vertical"
android:background="@drawable/home_module_button_banner_third_img_new"
android:background="@drawable/home_button_banner_third_img_new"
android:gravity="center">
<TextView
android:id="@+id/homeModuleButtonBannerThirdTitle"
......@@ -82,7 +82,7 @@
android:id="@+id/homeModuleButtonBannerFourth"
android:layout_width="80dp"
android:layout_height="78dp"
android:background="@drawable/home_module_button_banner_fourth_img_new"
android:background="@drawable/home_button_banner_fourth_img_new"
android:gravity="center">
<TextView
android:id="@+id/homeModuleButtonBannerFourthTitle"
......
......@@ -10,7 +10,7 @@
<View
android:layout_width="0dp"
android:layout_height="@dimen/platform_dp_7"
android:background="@drawable/home_module_common_title_gradient_back"
android:background="@drawable/home_common_title_gradient_back"
app:layout_constraintLeft_toLeftOf="@+id/homeModuleCommonTitleViewTitle"
app:layout_constraintRight_toRightOf="@+id/homeModuleCommonTitleViewTitle"
app:layout_constraintBottom_toBottomOf="@+id/homeModuleCommonTitleViewTitle"
......@@ -37,7 +37,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:layout_marginRight="@dimen/platform_dp_15"
android:background="@drawable/home_module_show_more_line">
android:background="@drawable/home_show_more_line">
<TextView
android:layout_width="wrap_content"
......@@ -52,7 +52,7 @@
<ImageView
android:layout_height="@dimen/platform_dp_10"
android:layout_width="@dimen/platform_dp_6"
android:src="@drawable/home_module_common_more_icon"
android:src="@drawable/home_common_more_icon"
android:layout_marginLeft="3dp"/>
</LinearLayout>
......
......@@ -50,7 +50,7 @@
android:layout_height="13dp"
android:layout_marginStart="6dp"
android:layout_marginLeft="3dp"
android:background="@drawable/home_module_counselor" />
android:background="@drawable/home_counselor" />
</LinearLayout>
......@@ -172,7 +172,7 @@
android:layout_marginTop="3dp"
android:layout_marginBottom="2dp"
android:layout_toRightOf="@+id/tvOriginalPrice"
android:background="@drawable/home_module_confide_expert_info_coupon_background"
android:background="@drawable/home_confide_expert_info_coupon_background"
android:gravity="center"
android:paddingLeft="6dp"
android:paddingRight="6dp"
......
......@@ -21,7 +21,7 @@
android:layout_alignTop="@+id/img_consult_head"
android:layout_marginTop="@dimen/platform_dp_13"
android:layout_marginEnd="@dimen/platform_dp_15"
android:background="@drawable/home_module_consult_chat"
android:background="@drawable/home_consult_chat"
android:gravity="center" />
<LinearLayout
......@@ -51,7 +51,7 @@
android:layout_height="13dp"
android:layout_marginStart="6dp"
android:layout_marginLeft="3dp"
android:background="@drawable/home_module_counselor" />
android:background="@drawable/home_counselor" />
</LinearLayout>
......
......@@ -9,7 +9,7 @@
android:layout_marginBottom="@dimen/platform_dp_13"
android:layout_marginTop="@dimen/platform_dp_3"
android:padding="@dimen/platform_dp_15"
android:background="@drawable/home_module_card_view_stroke">
android:background="@drawable/home_card_view_stroke">
<android.support.v7.widget.CardView
android:id="@+id/homeModuleCourseItemViewImgCardView"
......@@ -22,7 +22,7 @@
android:layout_width="127dp"
android:layout_height="69dp"
android:scaleType="centerCrop"
android:src="@drawable/home_module_image_default_back"/>
android:src="@drawable/home_image_default_back"/>
</android.support.v7.widget.CardView>
......
......@@ -21,7 +21,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="119dp"
android:background="@mipmap/coupon_background"
android:background="@mipmap/home_coupon_background"
android:gravity="center_horizontal|center_vertical"
android:orientation="vertical">
......@@ -29,7 +29,7 @@
android:id="@+id/iv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:src="@drawable/coupon_receiver" />
tools:src="@drawable/home_coupon_receiver" />
<TextView
android:id="@+id/tv_status"
......@@ -48,7 +48,7 @@
android:layout_height="90dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="-16dp"
android:background="@mipmap/cotent_backgroudn"
android:background="@mipmap/home_cotent_backgroudn"
android:paddingLeft="14dp"
android:paddingRight="14dp"
android:paddingTop="16dp">
......@@ -115,7 +115,7 @@
android:layout_height="42dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp"
android:background="@drawable/background_coupon_button"
android:background="@drawable/home_background_coupon_button"
android:gravity="center"
android:textColor="@color/white"
android:textSize="15sp"
......@@ -131,6 +131,6 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="37dp"
android:background="@drawable/pop_close"
android:background="@drawable/home_pop_close"
android:padding="10dp" />
</LinearLayout>
......@@ -20,7 +20,7 @@
android:id="@+id/img_line"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/activity_guide"
android:src="@mipmap/home_activity_guide"
app:layout_constraintTop_toBottomOf="@+id/img_activity"
app:layout_constraintLeft_toLeftOf="@+id/img_activity"
app:layout_constraintRight_toRightOf="@+id/img_activity"/>
......
......@@ -30,7 +30,7 @@
android:id="@+id/view_rl_top_bg"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@drawable/background_home_pager_top" />
android:background="@drawable/home_background_home_pager_top" />
<RelativeLayout
android:id="@+id/rl_top"
......@@ -106,7 +106,7 @@
android:layout_width="14dp"
android:layout_height="9dp"
android:layout_centerHorizontal="true"
android:background="@drawable/home_module_back_top"/>
android:background="@drawable/home_back_top"/>
<TextView
android:id="@+id/tv_returnTop"
......@@ -142,7 +142,7 @@
android:id="@+id/view_search_input_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_home_search_input"
android:background="@drawable/home_bg_home_search_input"
android:tag="tag_search_input_bg"/>
<LinearLayout
......@@ -156,7 +156,7 @@
android:layout_height="12dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="12dp"
android:src="@drawable/icon_search"/>
android:src="@drawable/home_icon_search"/>
<TextView
android:id="@+id/home_tv"
......@@ -185,7 +185,7 @@
android:layout_toRightOf="@+id/rl_search"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@null"
android:src="@drawable/home_module_search_phone"
android:src="@drawable/home_search_phone"
android:visibility="gone" />
</RelativeLayout>
......
......@@ -14,7 +14,7 @@
android:id="@+id/iv_fm_play"
android:layout_height="@dimen/platform_dp_22"
android:layout_width="@dimen/platform_dp_22"
android:src="@drawable/home_module_intelligent_item_play_icon"
android:src="@drawable/home_intelligent_item_play_icon"
android:layout_marginRight="@dimen/platform_dp_7"/>
<TextView
......@@ -43,7 +43,7 @@
<ImageView
android:layout_height="@dimen/platform_dp_11"
android:layout_width="@dimen/platform_dp_12"
android:src="@drawable/home_module_intelligent_item_listen_icon"
android:src="@drawable/home_intelligent_item_listen_icon"
android:layout_marginLeft="@dimen/platform_dp_4"/>
</LinearLayout>
......@@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/homeModuleIntelligentTopViewImage"
android:background="@drawable/home_module_image_default_back"
android:background="@drawable/home_image_default_back"
android:scaleType="centerCrop"/>
<LinearLayout
......@@ -35,7 +35,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="55"
android:background="@drawable/home_module_intelligent_gradient_back"/>
android:background="@drawable/home_intelligent_gradient_back"/>
</LinearLayout>
</RelativeLayout>
......@@ -67,7 +67,7 @@
android:gravity="center_vertical"
android:paddingLeft="@dimen/platform_dp_10"
android:paddingRight="@dimen/platform_dp_10"
android:background="@drawable/home_module_intelligent_top_view_layout_back"
android:background="@drawable/home_intelligent_top_view_layout_back"
android:layout_alignLeft="@+id/homeModuleIntelligentTopViewTitle"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/platform_dp_14">
......@@ -110,7 +110,7 @@
android:id="@+id/iv_play_fm"
android:layout_width="@dimen/platform_dp_36"
android:layout_height="@dimen/platform_dp_36"
android:src="@drawable/home_module_intelligent_first_play_icon"
android:src="@drawable/home_intelligent_first_play_icon"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="@dimen/platform_dp_14"
......@@ -120,7 +120,7 @@
android:layout_width="@dimen/platform_dp_64"
android:layout_height="@dimen/platform_dp_20"
android:layout_alignParentRight="true"
android:background="@drawable/home_module_intelligent_top_view_recommend_back">
android:background="@drawable/home_intelligent_top_view_recommend_back">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......
......@@ -17,7 +17,7 @@
android:layout_marginRight="@dimen/platform_dp_15"
android:layout_marginTop="@dimen/platform_dp_2"
android:layout_marginBottom="@dimen/platform_dp_20"
android:background="@drawable/home_module_card_view_stroke"
android:background="@drawable/home_card_view_stroke"
android:orientation="vertical"></LinearLayout>
</merge>
......@@ -36,7 +36,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/muse_first_img" />
android:src="@drawable/home_muse_first_img" />
<LinearLayout
android:layout_width="match_parent"
......@@ -61,7 +61,7 @@
android:layout_width="18dp"
android:layout_height="@dimen/platform_dp_18"
android:layout_marginLeft="@dimen/platform_dp_4"
android:src="@drawable/muse_play" />
android:src="@drawable/home_muse_play" />
</LinearLayout>
</RelativeLayout>
</android.support.v7.widget.CardView>
......@@ -113,7 +113,7 @@
android:layout_width="18dp"
android:layout_height="@dimen/platform_dp_18"
android:layout_marginLeft="@dimen/platform_dp_4"
android:src="@drawable/muse_play" />
android:src="@drawable/home_muse_play" />
</LinearLayout>
</RelativeLayout>
</android.support.v7.widget.CardView>
......@@ -143,7 +143,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/muse_third_img" />
android:src="@drawable/home_muse_third_img" />
<LinearLayout
android:layout_width="match_parent"
......@@ -168,7 +168,7 @@
android:layout_width="18dp"
android:layout_height="@dimen/platform_dp_18"
android:layout_marginLeft="@dimen/platform_dp_4"
android:src="@drawable/muse_play" />
android:src="@drawable/home_muse_play" />
</LinearLayout>
</RelativeLayout>
</android.support.v7.widget.CardView>
......@@ -191,7 +191,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/muse_fouth_img" />
android:src="@drawable/home_muse_fouth_img" />
<LinearLayout
android:layout_width="match_parent"
......@@ -216,7 +216,7 @@
android:layout_width="18dp"
android:layout_height="@dimen/platform_dp_18"
android:layout_marginLeft="@dimen/platform_dp_4"
android:src="@drawable/muse_play" />
android:src="@drawable/home_muse_play" />
</LinearLayout>
</RelativeLayout>
</android.support.v7.widget.CardView>
......@@ -241,7 +241,7 @@
android:layout_width="72dp"
android:layout_height="72dp"
android:scaleType="centerCrop"
android:src="@drawable/muse_circle_first"
android:src="@drawable/home_muse_circle_first"
android:layout_centerInParent="true"
app:pa_type="pa_circle"></com.ydl.ydlcommon.view.widgets.RoundImageView>
......@@ -266,7 +266,7 @@
android:layout_width="72dp"
android:layout_height="72dp"
android:scaleType="centerCrop"
android:src="@drawable/muse_circle_second"
android:src="@drawable/home_muse_circle_second"
android:layout_centerInParent="true"
app:pa_type="pa_circle"></com.ydl.ydlcommon.view.widgets.RoundImageView>
......@@ -291,7 +291,7 @@
android:layout_width="72dp"
android:layout_height="72dp"
android:scaleType="centerCrop"
android:src="@drawable/muse_circle_third"
android:src="@drawable/home_muse_circle_third"
android:layout_centerInParent="true"
app:pa_type="pa_circle"></com.ydl.ydlcommon.view.widgets.RoundImageView>
......@@ -316,7 +316,7 @@
android:layout_width="72dp"
android:layout_height="72dp"
android:scaleType="centerCrop"
android:src="@drawable/muse_circle_fouth"
android:src="@drawable/home_muse_circle_fouth"
android:layout_centerInParent="true"
app:pa_type="pa_circle"></com.ydl.ydlcommon.view.widgets.RoundImageView>
......
......@@ -11,8 +11,8 @@
android:layout_width="match_parent"
android:layout_height="180dp"
app:pa_indicator_different_width="14dp"
app:pa_indicator_drawable_selected="@drawable/home_module_banner_tip_select"
app:pa_indicator_drawable_unselected="@drawable/home_module_banner_tip_unselect"
app:pa_indicator_drawable_selected="@drawable/home_banner_tip_select"
app:pa_indicator_drawable_unselected="@drawable/home_banner_tip_unselect"
app:pa_indicator_height="5dp"
app:pa_indicator_margin="1.25dp"
app:pa_is_selected_same_unselected="false"/>
......@@ -22,7 +22,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="175dp"
android:background="@drawable/home_category_bg"
android:background="@drawable/home_home_category_bg"
android:orientation="vertical"
android:paddingTop="20dp">
......
......@@ -4,7 +4,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/home_module_sale_info_view_bg"
android:background="@drawable/home_sale_info_view_bg"
android:paddingRight="@dimen/platform_dp_10"
android:paddingTop="@dimen/platform_dp_10"
android:paddingBottom="@dimen/platform_dp_10"
......@@ -19,7 +19,7 @@
android:layout_height="15dp"
android:layout_gravity="center_vertical"
android:scaleType="centerCrop"
android:src="@drawable/home_module_category_bottom_real_img"/>
android:src="@drawable/home_category_bottom_real_img"/>
<FrameLayout
android:id="@+id/homeModuleRealViewLeftFrameLayout"
......
......@@ -28,7 +28,7 @@
android:id="@+id/iv_test_item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/home_module_image_default_back"
android:background="@drawable/home_image_default_back"
android:scaleType="centerCrop"/>
</android.support.v7.widget.CardView>
......@@ -102,7 +102,7 @@
<TextView
android:layout_width="62dp"
android:layout_height="@dimen/platform_dp_24"
android:background="@drawable/home_module_test_item_go_bg"
android:background="@drawable/home_test_item_go_bg"
android:gravity="center"
android:text="去测试"
android:textSize="12dp"
......
......@@ -21,7 +21,7 @@
android:id="@+id/homeModuleIntelligentTopViewImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/home_module_image_default_back"
android:background="@drawable/home_image_default_back"
android:scaleType="centerCrop"/>
<LinearLayout
......@@ -38,7 +38,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="55"
android:background="@drawable/home_module_intelligent_gradient_back"/>
android:background="@drawable/home_intelligent_gradient_back"/>
</LinearLayout>
</RelativeLayout>
......@@ -69,7 +69,7 @@
android:layout_alignLeft="@+id/homeModuleIntelligentTopViewTitle"
android:layout_alignParentBottom="true"
android:layout_marginBottom="43dp"
android:background="@drawable/home_module_test_top_view_layout_back"
android:background="@drawable/home_test_top_view_layout_back"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/platform_dp_10"
......@@ -117,7 +117,7 @@
android:layout_width="@dimen/platform_dp_64"
android:layout_height="@dimen/platform_dp_20"
android:layout_alignParentRight="true"
android:background="@drawable/home_module_intelligent_top_view_recommend_back">
android:background="@drawable/home_intelligent_top_view_recommend_back">
<TextView
android:layout_width="wrap_content"
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="home_module_category_view_test_line">#F0F0F0</color>
<color name="home_category_view_test_line">#F0F0F0</color>
</resources>
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<!--分割线粗细-->
<dimen name="home_title_bar_height">54dp</dimen>
<dimen name="home_home_title_bar_height">54dp</dimen>
</resources>
<resources>
<string name="app_name">home-module</string>
<string name="home_module_real_appoint">预约了</string>
<string name="home_app_name">home-module</string>
<string name="home_real_appoint">预约了</string>
</resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment