Commit 86325d4b by 徐健
parents eeb12209 257c5c1c
......@@ -8,7 +8,7 @@ apply plugin: 'plugin.resTools' // 资源重命名插件
// 配置资源重命名插件
resConfig {
new_prefix = 'audioim_' // 资源前缀
old_prefix = 'audio_home_' // 老前缀,可为''空字符串
old_prefix = '' // 老前缀,可为''空字符串
}
kapt {
......@@ -37,6 +37,9 @@ android {
flavorDimensions "versionCode"
}
//前缀的名字
resourcePrefix "audioim_"
buildTypes {
release {
minifyEnabled false
......
......@@ -62,7 +62,7 @@ import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.Disposable
import io.reactivex.schedulers.Schedulers
import kotlinx.android.synthetic.main.activity_audio_home.*
import kotlinx.android.synthetic.main.audioim_activity_audio_home.*
import java.util.concurrent.TimeUnit
......@@ -294,7 +294,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
}
override fun layoutResId(): Int {
return R.layout.activity_audio_home
return R.layout.audioim_activity_audio_home
}
override fun initDataAndEvent() {
......@@ -315,7 +315,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
}
private fun setWindowStatusBarColor() {
StatusBarUtils.setWindowStatusBarColor(this, R.color.color_40353535)
StatusBarUtils.setWindowStatusBarColor(this, R.color.audioim_color_40353535)
}
@SuppressLint("InvalidWakeLockTag")
......@@ -366,8 +366,8 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
if (!TextUtils.isEmpty(expertHeadUrl)) {
var option = SimpleImageOpConfiger()
option.errorPic = R.drawable.head_place_hold_pic
option.loadingPic = R.drawable.head_place_hold_pic
option.errorPic = R.drawable.audioim_head_place_hold_pic
option.loadingPic = R.drawable.audioim_head_place_hold_pic
option.transform = 0
YDLImageCacheManager.showImage(this, expertHeadUrl, iv_head, option)
}
......@@ -388,10 +388,10 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
iv_hands_free.setOnClickListener {
if (iv_hands_free.isSelected) {
iv_hands_free.isSelected = false
iv_hands_free.setImageResource(R.drawable.audio_home_img_hands_free_unuse)
iv_hands_free.setImageResource(R.drawable.audioim_img_hands_free_unuse)
} else {
iv_hands_free.isSelected = true
iv_hands_free.setImageResource(R.drawable.audio_home_img_hands_free)
iv_hands_free.setImageResource(R.drawable.audioim_img_hands_free)
}
//已经接通
......@@ -501,7 +501,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
} else if (permission.shouldShowRequestPermissionRationale) {
requestPermission()
} else {
ToastUtil.toastLong(this, getString(R.string.need_storage_permission_hint))
ToastUtil.toastLong(this, getString(R.string.audioim_need_storage_permission_hint))
val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
val uri = Uri.fromParts("package", packageName, null)
intent.data = uri
......@@ -672,7 +672,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
private fun waittingStatus() {
//挂断按钮可点击
iv_hang_up.isEnabled = true
iv_hang_up.setImageResource(R.drawable.audio_home_img_hang_up)
iv_hang_up.setImageResource(R.drawable.audioim_img_hang_up)
if (!isConnectSuccess) {
//页面等待文案调整
tv_waiting.visibility = View.GONE
......@@ -682,7 +682,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
//切换线路按钮可见
tv_change_route.isEnabled = true
tv_change_route.setTextColor(ContextCompat.getColor(this, R.color.white))
tv_change_route.setCompoundDrawablesWithIntrinsicBounds(null, null, ContextCompat.getDrawable(this, R.drawable.audio_home_img_choose_arrow), null)
tv_change_route.setCompoundDrawablesWithIntrinsicBounds(null, null, ContextCompat.getDrawable(this, R.drawable.audioim_img_choose_arrow), null)
}
/**
......@@ -732,9 +732,9 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
mPlayer = AudioPlayer(this)
}
if ((Math.random() * 10 + 1).toInt() >= 5) {
mPlayer!!.setTwoDataAndStart(R.raw.audio_music_1, R.raw.loop_music)
mPlayer!!.setTwoDataAndStart(R.raw.audioim_audio_music_1, R.raw.audioim_loop_music)
} else {
mPlayer!!.setTwoDataAndStart(R.raw.audio_music_2, R.raw.loop_music)
mPlayer!!.setTwoDataAndStart(R.raw.audioim_audio_music_2, R.raw.audioim_loop_music)
}
}
......@@ -745,7 +745,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
if (mPlayer == null) {
mPlayer = AudioPlayer(this)
}
mPlayer!!.setDataSource(R.raw.hand_down_music)
mPlayer!!.setDataSource(R.raw.audioim_hand_down_music)
mPlayer!!.switchPlayType(iv_hands_free.isSelected)
mPlayer!!.setCompletionListener(MediaPlayer.OnCompletionListener {
//通话剩余时间不足60s时,默认
......@@ -816,8 +816,8 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
if (localRemainTime!! <= 60) {
if (tv_change_route.isEnabled) {
tv_change_route.isEnabled = false
tv_change_route.setTextColor(ContextCompat.getColor(this, R.color.color_50ffffff))
tv_change_route.setCompoundDrawablesWithIntrinsicBounds(null, null, ContextCompat.getDrawable(this, R.drawable.audio_home_img_choose_arrow_unuse), null)
tv_change_route.setTextColor(ContextCompat.getColor(this, R.color.audioim_color_50ffffff))
tv_change_route.setCompoundDrawablesWithIntrinsicBounds(null, null, ContextCompat.getDrawable(this, R.drawable.audioim_img_choose_arrow_unuse), null)
}
}
tv_remain_time.text = DateUtils.formatTime(localRemainTime.toString())
......@@ -840,9 +840,9 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
mPlayer = AudioPlayer(this)
}
if (3 == min) {
mPlayer!!.setDataSource(R.raw.last_3_min)
mPlayer!!.setDataSource(R.raw.audioim_last_3_min)
} else {
mPlayer!!.setDataSource(R.raw.last_1_min)
mPlayer!!.setDataSource(R.raw.audioim_last_1_min)
}
mPlayer!!.switchPlayType(iv_hands_free.isSelected)
mPlayer!!.start(false, false)
......
......@@ -5,7 +5,7 @@ import android.app.Dialog
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import com.ydl.audioim.R
import kotlinx.android.synthetic.main.dialog_axb_confirm.*
import kotlinx.android.synthetic.main.audioim_dialog_axb_confirm.*
/**
* @author jiucheng
......@@ -25,7 +25,7 @@ class AxbConfirmDialog : Dialog {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.dialog_axb_confirm)
setContentView(R.layout.audioim_dialog_axb_confirm)
setCanceledOnTouchOutside(false)
window.setBackgroundDrawable(ColorDrawable())
ic_close.setOnClickListener {
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/platform_color_80353535">
<TextView
android:id="@+id/tv_change_route"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="25dp"
android:layout_marginRight="10dp"
android:background="?android:attr/selectableItemBackground"
android:drawableRight="@drawable/audio_home_img_choose_arrow_unuse"
android:drawablePadding="6dp"
android:padding="5dp"
android:text="切换至传统电话"
android:textColor="@color/platform_color_50FFFFFF"
android:textSize="13sp"
android:visibility="visible" />
<RelativeLayout
android:id="@+id/rl_head"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="74dp">
<com.ydl.ydlcommon.view.WaveView
android:id="@+id/wave_view"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_centerInParent="true" />
<ImageView
android:layout_width="126dp"
android:layout_height="126dp"
android:layout_centerInParent="true"
android:background="@drawable/audio_home_head_background" />
<ImageView
android:id="@+id/iv_head"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_centerInParent="true"
android:scaleType="centerCrop"
android:src="@drawable/head_place_hold_pic" />
</RelativeLayout>
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/rl_head"
android:layout_centerHorizontal="true"
android:layout_marginTop="-20dp"
android:textColor="@color/white"
android:textSize="26sp"
tools:text="留意" />
<TextView
android:id="@+id/tv_tips"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_centerHorizontal="true"
android:layout_marginLeft="25dp"
android:layout_marginTop="6dp"
android:layout_marginRight="25dp"
android:ellipsize="end"
android:gravity="center"
android:maxLines="2"
android:textColor="@color/white"
android:textSize="15sp"
tools:text="你存在的本身就是值得被爱的你存在的本身就是值得被爱的" />
<!-- 倾诉剩余时间-->
<RelativeLayout
android:id="@+id/rl_remain_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/rl_hang_up"
android:layout_marginBottom="20dp"
android:visibility="gone">
<TextView
android:id="@+id/tv_notes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="您的倾诉时间还有"
android:textColor="@color/platform_color_30FFFFFF"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_remain_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_notes"
android:layout_centerHorizontal="true"
android:text="23:23"
android:textColor="@color/white"
android:textSize="20sp" />
</RelativeLayout>
<TextView
android:id="@+id/tv_change_doctor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/rl_hang_up"
android:layout_centerHorizontal="true"
android:layout_marginBottom="48dp"
android:gravity="center"
android:text="聆听者长时间未接听,\n您可以点击右上角切换线路,或者挂断换一位"
android:textColor="@color/white"
android:visibility="gone" />
<TextView
android:id="@+id/tv_waiting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/rl_hang_up"
android:layout_centerHorizontal="true"
android:layout_marginBottom="50dp"
android:text="正在等待聆听者接受邀请…"
android:textColor="@color/platform_color_70FFFFFF"
android:textSize="12sp"
android:visibility="visible" />
<!--挂断按钮-->
<RelativeLayout
android:id="@+id/rl_hang_up"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginLeft="72dp"
android:layout_marginBottom="18dp">
<com.ydl.ydlcommon.view.ProgressView
android:id="@+id/progress_view"
android:layout_width="70dp"
android:layout_height="70dp"
app:pa_progressWidth="2dp" />
<ImageView
android:id="@+id/iv_hang_up"
android:layout_width="66dp"
android:layout_height="66dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="1dp"
android:src="@drawable/audio_home_img_hang_up_unuse"
android:visibility="visible" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_hang_up"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:text="挂断"
android:textColor="@color/white"
android:textSize="12sp" />
</RelativeLayout>
<!-- 免提按钮-->
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="72dp"
android:layout_marginBottom="18dp">
<ImageView
android:id="@+id/iv_hands_free"
android:layout_width="66dp"
android:layout_height="66dp"
android:layout_marginTop="1dp"
android:src="@drawable/audio_home_img_hands_free_unuse" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_hands_free"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:text="免提"
android:textColor="@color/white"
android:textSize="12sp" />
</RelativeLayout>
<!--自定义弹窗-->
<TextView
android:id="@+id/tv_toast"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_tips"
android:layout_centerHorizontal="true"
android:layout_marginTop="34dp"
android:background="@drawable/audio_home_toast_view_background"
android:elevation="6dp"
android:paddingLeft="11dp"
android:paddingTop="4dp"
android:paddingRight="11dp"
android:paddingBottom="4dp"
android:textColor="@color/white"
android:visibility="gone"
tools:text="已接通" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/platform_color_80353535">
<TextView
android:id="@+id/tv_change_route"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="25dp"
android:layout_marginRight="10dp"
android:background="?android:attr/selectableItemBackground"
android:drawableRight="@drawable/audioim_img_choose_arrow_unuse"
android:drawablePadding="6dp"
android:padding="5dp"
android:text="切换至传统电话"
android:textColor="@color/platform_color_50FFFFFF"
android:textSize="13sp"
android:visibility="visible" />
<RelativeLayout
android:id="@+id/rl_head"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="74dp">
<com.ydl.ydlcommon.view.WaveView
android:id="@+id/wave_view"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_centerInParent="true" />
<ImageView
android:layout_width="126dp"
android:layout_height="126dp"
android:layout_centerInParent="true"
android:background="@drawable/audioim_head_background" />
<ImageView
android:id="@+id/iv_head"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_centerInParent="true"
android:scaleType="centerCrop"
android:src="@drawable/audioim_head_place_hold_pic" />
</RelativeLayout>
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/rl_head"
android:layout_centerHorizontal="true"
android:layout_marginTop="-20dp"
android:textColor="@color/white"
android:textSize="26sp"
tools:text="留意" />
<TextView
android:id="@+id/tv_tips"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_centerHorizontal="true"
android:layout_marginLeft="25dp"
android:layout_marginTop="6dp"
android:layout_marginRight="25dp"
android:ellipsize="end"
android:gravity="center"
android:maxLines="2"
android:textColor="@color/white"
android:textSize="15sp"
tools:text="你存在的本身就是值得被爱的你存在的本身就是值得被爱的" />
<!-- 倾诉剩余时间-->
<RelativeLayout
android:id="@+id/rl_remain_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/rl_hang_up"
android:layout_marginBottom="20dp"
android:visibility="gone">
<TextView
android:id="@+id/tv_notes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="您的倾诉时间还有"
android:textColor="@color/platform_color_30FFFFFF"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_remain_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_notes"
android:layout_centerHorizontal="true"
android:text="23:23"
android:textColor="@color/white"
android:textSize="20sp" />
</RelativeLayout>
<TextView
android:id="@+id/tv_change_doctor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/rl_hang_up"
android:layout_centerHorizontal="true"
android:layout_marginBottom="48dp"
android:gravity="center"
android:text="聆听者长时间未接听,\n您可以点击右上角切换线路,或者挂断换一位"
android:textColor="@color/white"
android:visibility="gone" />
<TextView
android:id="@+id/tv_waiting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/rl_hang_up"
android:layout_centerHorizontal="true"
android:layout_marginBottom="50dp"
android:text="正在等待聆听者接受邀请…"
android:textColor="@color/platform_color_70FFFFFF"
android:textSize="12sp"
android:visibility="visible" />
<!--挂断按钮-->
<RelativeLayout
android:id="@+id/rl_hang_up"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginLeft="72dp"
android:layout_marginBottom="18dp">
<com.ydl.ydlcommon.view.ProgressView
android:id="@+id/progress_view"
android:layout_width="70dp"
android:layout_height="70dp"
app:pa_progressWidth="2dp" />
<ImageView
android:id="@+id/iv_hang_up"
android:layout_width="66dp"
android:layout_height="66dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="1dp"
android:src="@drawable/audioim_img_hang_up_unuse"
android:visibility="visible" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_hang_up"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:text="挂断"
android:textColor="@color/white"
android:textSize="12sp" />
</RelativeLayout>
<!-- 免提按钮-->
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="72dp"
android:layout_marginBottom="18dp">
<ImageView
android:id="@+id/iv_hands_free"
android:layout_width="66dp"
android:layout_height="66dp"
android:layout_marginTop="1dp"
android:src="@drawable/audioim_img_hands_free_unuse" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_hands_free"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:text="免提"
android:textColor="@color/white"
android:textSize="12sp" />
</RelativeLayout>
<!--自定义弹窗-->
<TextView
android:id="@+id/tv_toast"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_tips"
android:layout_centerHorizontal="true"
android:layout_marginTop="34dp"
android:background="@drawable/audioim_toast_view_background"
android:elevation="6dp"
android:paddingLeft="11dp"
android:paddingTop="4dp"
android:paddingRight="11dp"
android:paddingBottom="4dp"
android:textColor="@color/white"
android:visibility="gone"
tools:text="已接通" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="280dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
app:cardCornerRadius="15dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:id="@+id/ic_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="7dp"
android:layout_marginRight="10dp"
android:padding="5dp"
android:src="@drawable/audio_home_ic_close_24dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:src="@drawable/audio_home_privacy_ico" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:text="号码隐私保护"
android:textColor="@color/platform_color_333333"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="15dp"
android:text="您的真实号码全程保密,请安心呼叫"
android:textColor="@color/platform_color_333333"
android:visibility="visible"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:layout_marginTop="15dp"
android:text="呼出号码与注册号码需为同一手机号"
android:textColor="@color/platform_color_999999"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:text="否则无法接通"
android:textColor="@color/platform_color_999999"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:gravity="bottom"
android:text="壹点灵全程保护您的隐私"
android:textColor="@color/platform_color_999999"
android:textSize="10sp" />
<RelativeLayout
android:id="@+id/rl_ensure"
android:layout_width="210dp"
android:layout_height="40dp"
android:layout_marginTop="11dp"
android:layout_marginBottom="20dp"
android:background="@drawable/audio_home_privacy_background">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_gravity="center_horizontal"
android:drawableLeft="@drawable/audio_home_ic_phone"
android:gravity="center_horizontal"
android:text="呼叫"
android:textColor="@color/white"
android:textSize="17sp"
android:textStyle="bold" />
</RelativeLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="280dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
app:cardCornerRadius="15dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:id="@+id/ic_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="7dp"
android:layout_marginRight="10dp"
android:padding="5dp"
android:src="@drawable/audioim_ic_close_24dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:src="@drawable/audioim_privacy_ico" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:text="号码隐私保护"
android:textColor="@color/platform_color_333333"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="15dp"
android:text="您的真实号码全程保密,请安心呼叫"
android:textColor="@color/platform_color_333333"
android:visibility="visible"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:layout_marginTop="15dp"
android:text="呼出号码与注册号码需为同一手机号"
android:textColor="@color/platform_color_999999"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:text="否则无法接通"
android:textColor="@color/platform_color_999999"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:gravity="bottom"
android:text="壹点灵全程保护您的隐私"
android:textColor="@color/platform_color_999999"
android:textSize="10sp" />
<RelativeLayout
android:id="@+id/rl_ensure"
android:layout_width="210dp"
android:layout_height="40dp"
android:layout_marginTop="11dp"
android:layout_marginBottom="20dp"
android:background="@drawable/audioim_privacy_background">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_gravity="center_horizontal"
android:drawableLeft="@drawable/audioim_ic_phone"
android:gravity="center_horizontal"
android:text="呼叫"
android:textColor="@color/white"
android:textSize="17sp"
android:textStyle="bold" />
</RelativeLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="color_40353535">#66353535</color>
<color name="color_80353535">#CC353535</color>
<color name="color_50ffffff">#B3ffffff</color>
<color name="color_30FFFFFF">#4DFFFFFF</color>
<color name="color_70FFFFFF">#B3FFFFFF</color>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="audioim_color_40353535">#66353535</color>
<color name="audioim_color_80353535">#CC353535</color>
<color name="audioim_color_50ffffff">#B3ffffff</color>
<color name="audioim_color_30FFFFFF">#4DFFFFFF</color>
<color name="audioim_color_70FFFFFF">#B3FFFFFF</color>
</resources>
<resources>
<string name="app_name">av</string>
<string name="need_storage_permission_hint">App正常工作需要内部存储使用权限,请开启</string>
</resources>
<resources>
<string name="audioim_app_name">av</string>
<string name="audioim_need_storage_permission_hint">App正常工作需要内部存储使用权限,请开启</string>
</resources>
......@@ -2,6 +2,14 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'plugin.resTools' // 资源重命名插件
// 配置资源重命名插件
resConfig {
new_prefix = 'confide_' // 资源前缀
old_prefix = '' // 老前缀,可为''空字符串
}
kapt {
arguments {
arg("AROUTER_MODULE_NAME", project.getName())
......@@ -54,18 +62,6 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets {
main {
res.srcDirs = [
'src/main/res/layouts/confidehome',
'src/main/res/layouts',
'src/main/res'
]
}
}
}
dependencies {
......
......@@ -3,8 +3,9 @@
<application>
<activity android:name=".home.ConfideHomeActivity"
android:screenOrientation="portrait">
android:screenOrientation="portrait"
android:theme="@style/confide_NoTitleTheme"
>
</activity>
</application>
</manifest>
package com.ydl.confide.home
import android.content.Context
import android.os.Build
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.SimpleItemAnimator
import android.view.View
import android.widget.LinearLayout
import com.alibaba.android.arouter.facade.annotation.Route
import com.jcodecraeer.xrecyclerview.ProgressStyle
import com.jcodecraeer.xrecyclerview.XRecyclerView
import com.ydl.ydl_image.listener.YDLImageRecyclerOnScrollListener
import com.yidianling.common.tools.RxImageTool
import com.ydl.confide.R
import com.ydl.confide.home.adapter.ConfideHomeAdapter
import com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
......@@ -24,13 +24,16 @@ import com.ydl.confide.home.listener.ConfideHomeRecycleViewListener
import com.ydl.confide.home.listener.ConfideHomeRecyleSuspendListener
import com.ydl.confide.home.presenter.ConfideHomePresenterImpl
import com.ydl.confide.home.util.ConfideHomeUtils
import com.ydl.ydl_image.listener.YDLImageRecyclerOnScrollListener
import com.ydl.ydlcommon.mvp.lce.BaseLceActivity
import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.remind.ToastHelper
import com.ydl.ydlcommon.view.DrawableRightTextView
import com.ydl.ydlcommon.view.WrapContentLinearLayoutManager
import com.yidianling.common.tools.RxImageTool
import com.yidianling.router.RouterManager
import kotlinx.android.synthetic.main.confidehome_home_activity.*
import kotlinx.android.synthetic.main.confidehome_title_bar.*
import kotlinx.android.synthetic.main.confide_home_activity.*
import kotlinx.android.synthetic.main.confide_title_bar.*
/**
* @author yuanwai
......@@ -112,7 +115,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
}
override fun layoutResId(): Int {
return R.layout.confidehome_home_activity
return R.layout.confide_home_activity
}
/**
......@@ -122,7 +125,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
//重置页
page = 2
allFiltersBean!!.page = page
mPresenter.confideHomeRequest()
mPresenter.confideHomeRequest(true)
}
/**
......@@ -174,6 +177,21 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
initClick()
initQuickConsultDialog()
initStatus();
}
/**
* 初始化状态栏位置
*/
private fun initStatus() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {//4.4以下不支持状态栏变色
StatusBarUtils.setTransparentForImageView(this, null)
val statusBarHeight = StatusBarUtils.getStatusBarHeight(this)
val lp1 = rl_confide_title_layout.layoutParams as LinearLayout.LayoutParams
lp1.height = (RxImageTool.dp2px(48f) + statusBarHeight)
rl_confide_title_layout.setPadding(0, statusBarHeight, 0, 0)
}
}
/**
......@@ -245,7 +263,7 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
rv_list.layoutManager = layoutManager
rv_list.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader)
rv_list.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader)
rv_list.setArrowImageView(R.drawable.confidehome_downgrey)
rv_list.setArrowImageView(R.drawable.confide_downgrey)
rv_list.setLoadingListener(this)
rv_list.adapter = mConfideAdapter
}
......
......@@ -97,7 +97,7 @@ class ConfideHomeAdapter(private val mContext: Context,
return ConfideHomeListenAndFoundViewHolder(ConfideHomeListenAndFoundView(parent.context, confideHomeEvent))
}
else -> {
return EmptyViewHolder(View.inflate(parent.context, R.layout.confidehome_empty, null))
return EmptyViewHolder(View.inflate(parent.context, R.layout.confide_empty, null))
}
}
}
......
......@@ -93,7 +93,7 @@ interface IConfideHomeContract{
/**
* 倾诉首页数据请求
*/
fun confideHomeRequest()
fun confideHomeRequest(isRefresh:Boolean = true)
/**
* 为你推荐列表(筛选调用)
......
package com.ydl.confide.home.popwindow
import android.content.Context
import android.graphics.Typeface
import android.graphics.drawable.BitmapDrawable
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.LinearLayoutManager
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.PopupWindow
import com.yidianling.common.tools.RxImageTool
import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import com.ydl.confide.home.popwindow.adapter.ConfideHomeGoodAdapter
import com.ydl.ydlcommon.view.SpaceItemDecorator
import kotlinx.android.synthetic.main.confidehome_good_popup_window.view.*
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.main.confide_good_popup_window.view.*
......@@ -33,7 +32,7 @@ class ConfideHomeGoodPopupWindow(context: Context, goodsList: ArrayList<ConfideH
private var selectedGoodsList: ArrayList<ConfideHomeFiterItemBean>? = null
init {
val view = LayoutInflater.from(context).inflate(R.layout.confidehome_good_popup_window, null)
val view = LayoutInflater.from(context).inflate(R.layout.confide_good_popup_window, null)
this.contentView = view
this.isFocusable = true
@Suppress("DEPRECATION")
......
package com.ydl.confide.home.popwindow
import android.content.Context
import android.graphics.Typeface
import android.graphics.drawable.BitmapDrawable
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.LinearLayoutManager
......@@ -11,13 +10,13 @@ import android.view.View
import android.view.ViewGroup
import android.widget.PopupWindow
import android.widget.TextView
import com.yidianling.common.tools.RxImageTool
import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
import com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import com.ydl.confide.home.popwindow.adapter.ConfideHomeGoodAdapter
import com.ydl.ydlcommon.view.SpaceItemDecorator
import kotlinx.android.synthetic.main.confidehome_sexage_popup_window.view.*
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.main.confide_sexage_popup_window.view.*
/**
* @author yuanwai
......@@ -43,7 +42,7 @@ class ConfideHomeSexAgePopupWindow(context: Context, sexData: ArrayList<ConfideH
private var mAllFiltersBean : ConfideHomeAllFiltersBean? = null
init {
val view = LayoutInflater.from(context).inflate(R.layout.confidehome_sexage_popup_window, null)
val view = LayoutInflater.from(context).inflate(R.layout.confide_sexage_popup_window, null)
this.contentView = view
this.isFocusable = true
@Suppress("DEPRECATION")
......@@ -164,10 +163,10 @@ class ConfideHomeSexAgePopupWindow(context: Context, sexData: ArrayList<ConfideH
*/
private fun setSelect(tvSex1: TextView,boolean: Boolean){
if (boolean){
tvSex1.setBackgroundResource(R.drawable.confidehome_filter_select_sel)
tvSex1.setTextColor(tvSex1.context.resources.getColor(R.color.baby_blue))
tvSex1.setBackgroundResource(R.drawable.confide_filter_select_sel)
tvSex1.setTextColor(tvSex1.context.resources.getColor(R.color.confide_main_theme))
}else{
tvSex1.setBackgroundResource(R.drawable.confidehome_filter_select_nor)
tvSex1.setBackgroundResource(R.drawable.confide_filter_select_nor)
tvSex1.setTextColor(tvSex1.context.resources.getColor(R.color._6))
}
}
......
......@@ -10,7 +10,7 @@ import android.widget.PopupWindow
import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import com.ydl.confide.home.popwindow.adapter.ConfideHomeSortAdapter
import kotlinx.android.synthetic.main.confidehome_sort_popup_window.view.*
import kotlinx.android.synthetic.main.confide_sort_popup_window.view.*
/**
* @author yuanwai
......@@ -25,7 +25,7 @@ class ConfideHomeSortPopupWindow(val context: Context, private val sortItems: Ar
private var adapter: ConfideHomeSortAdapter? = null
init {
val view = LayoutInflater.from(context).inflate(R.layout.confidehome_sort_popup_window, null)
val view = LayoutInflater.from(context).inflate(R.layout.confide_sort_popup_window, null)
this.contentView = view
this.isFocusable = true
@Suppress("DEPRECATION")
......
......@@ -8,7 +8,7 @@ import android.view.ViewGroup
import android.widget.TextView
import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import kotlinx.android.synthetic.main.confidehome_good_item.view.*
import kotlinx.android.synthetic.main.confide_good_item.view.*
/**
* @author yuanwai
......@@ -25,9 +25,9 @@ class ConfideHomeGoodAdapter(private val context: Context, private val goods: Ar
holder.tvGoodName.text = goods[position].name
holder.tvGoodName.isSelected = selectedGood.contains(category)
if (holder.tvGoodName.isSelected) {
holder.tvGoodName.setBackgroundResource(R.drawable.confidehome_filter_select_sel)
holder.tvGoodName.setBackgroundResource(R.drawable.confide_filter_select_sel)
} else {
holder.tvGoodName.setBackgroundResource(R.drawable.confidehome_filter_select_nor)
holder.tvGoodName.setBackgroundResource(R.drawable.confide_filter_select_nor)
}
}
}
......@@ -38,7 +38,7 @@ class ConfideHomeGoodAdapter(private val context: Context, private val goods: Ar
}
override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): ViewHolder {
val itemView = LayoutInflater.from(context).inflate(R.layout.confidehome_good_item, parent, false)
val itemView = LayoutInflater.from(context).inflate(R.layout.confide_good_item, parent, false)
return ViewHolder(itemView)
}
......
package com.ydl.confide.home.popwindow.adapter
import android.content.Context
import android.graphics.Color
import android.support.v4.content.ContextCompat
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
......@@ -10,7 +9,7 @@ import android.view.ViewGroup
import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeFiterItemBean
import com.ydl.confide.home.popwindow.ConfideHomeSortPopupWindow
import kotlinx.android.synthetic.main.confidehome_sort_item.view.*
import kotlinx.android.synthetic.main.confide_sort_item.view.*
/**
* @author yuanwai
......@@ -27,7 +26,7 @@ class ConfideHomeSortAdapter(private val context: Context,
override fun getItemCount(): Int = sortItems.size
override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): ViewHolder {
val itemView = LayoutInflater.from(context).inflate(R.layout.confidehome_sort_item, parent, false)
val itemView = LayoutInflater.from(context).inflate(R.layout.confide_sort_item, parent, false)
return ViewHolder(itemView)
}
......@@ -36,7 +35,7 @@ class ConfideHomeSortAdapter(private val context: Context,
if (holder != null) {
holder.tvSort.text = item.name
if (item.id == selectedSort.id) {
holder.tvSort.setTextColor(Color.parseColor("#1DA1F2"))
holder.tvSort.setTextColor(context.resources.getColor(R.color.confide_main_theme))
}else{
holder.tvSort.setTextColor(ContextCompat.getColor(context, R.color._6))
}
......
......@@ -4,7 +4,6 @@ import android.content.Context
import android.text.TextUtils
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.yidianling.common.tools.RxNetTool
import com.ydl.confide.home.bean.ConfideHomeDataBean
import com.ydl.confide.home.contract.IConfideHomeContract
import com.ydl.confide.home.http.ConfideRecommendParam
......@@ -13,12 +12,14 @@ import com.ydl.confide.home.util.ConfideHomeUtils
import com.ydl.ydlcommon.data.http.RxUtils
import com.ydl.ydlcommon.data.http.ThrowableConsumer
import com.ydl.ydlcommon.mvp.base.BasePresenter
import com.ydl.ydlcommon.mvp.lce.ILceView
import com.ydl.ydlcommon.mvp.base.IView
import com.ydl.ydlcommon.utils.RxLifecycleUtils
import com.ydl.ydlcommon.utils.YDLAsyncUtils
import com.ydl.ydlcommon.utils.YDLCacheUtils
import com.yidianling.common.tools.RxNetTool
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.functions.Consumer
import io.reactivex.schedulers.Schedulers
/**
* @author yuanwai
......@@ -65,7 +66,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
mView.confideHomeResponse(list)
}
}
confideHomeRequest()
confideHomeRequest(false)
}
})
}
......@@ -73,7 +74,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
/**
* 请求首页数据
*/
override fun confideHomeRequest() {
override fun confideHomeRequest(isRefresh:Boolean) {
if (!RxNetTool.isConnected(mView.getContext())){
mView.confideHomeRequestFail()
return
......@@ -81,9 +82,20 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
val disposable = mModel.confideHomeRequest()
.map { it }
.filter { it != null }
.compose(RxUtils.applySchedulers(mView))
.compose(RxLifecycleUtils.bindToLifecycle(mView!!))//使用 Rxlifecycle,使 Disposable 和 Activity 一起销毁
.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.doOnSubscribe {
if (!isRefresh){
mView.showLoading()//显示进度条
}
}
.subscribeOn(AndroidSchedulers.mainThread())
.observeOn(AndroidSchedulers.mainThread())
.doFinally {
if (!isRefresh){
mView.hideLoading()//隐藏进度条
}
}.compose(RxLifecycleUtils.bindToLifecycle(mView))
.subscribe(Consumer {
mView.confideHomeResponse(it)
updateCache(it)
......@@ -128,7 +140,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
val disposable = mModel.recommendList(param)
.map { it }
.filter { it != null }
.compose(RxUtils.applySchedulers(mView))
.compose(RxUtils.applySchedulers(mView as IView))
.observeOn(AndroidSchedulers.mainThread())
.subscribe(Consumer {
mView.recommendListResponse(it)
......@@ -150,7 +162,7 @@ class ConfideHomePresenterImpl : BasePresenter<IConfideHomeContract.View,IConfid
val disposable = mModel.recommendList(param)
.map { it }
.filter { it != null }
.compose(RxUtils.applySchedulers(mView))
.compose(RxUtils.applySchedulers(mView as IView))
.observeOn(AndroidSchedulers.mainThread())
.subscribe(Consumer {
mView.recommendListMoreResponse(it)
......
......@@ -44,7 +44,7 @@ class ConfideHomeBannerSection(var context: Context, private var confideHomeEven
BannerViewHolder(ConfideHomeBannerView(context,confideHomeEvent))
}
else -> {
EmptyViewHolder(View.inflate(context,R.layout.view_empty,null))
EmptyViewHolder(View.inflate(context,R.layout.confide_view_empty,null))
}
}
}
......
......@@ -45,7 +45,7 @@ class ConfideHomeCategorySection(var context: Context, var confideHomeEvent : IC
CategoryViewHolder(ConfideHomeCategoryView(context,confideHomeEvent,homeView))
}
else -> {
EmptyViewHolder(View.inflate(context,R.layout.view_empty,null))
EmptyViewHolder(View.inflate(context,R.layout.confide_view_empty,null))
}
}
}
......
......@@ -66,7 +66,7 @@ class ConfideHomeFilterSection(var context: Context,var view : IConfideHomeContr
var dp15 = RxImageTool.dip2px(15f)
param.setMargins(dp15,0,dp15,0)
var footerView = View(context)
footerView.setBackgroundColor(context.resources.getColor(R.color.confidehome_filters_line))
footerView.setBackgroundColor(context.resources.getColor(R.color.confide_filters_line))
footerView.layoutParams = param
return FooterViewHolder(footerView)
}else{
......
......@@ -37,7 +37,7 @@ class ConfideHomeFooterSection(var context: Context, private var confideHomeEven
FooterViewHolder(ConfideHomeFooterView(context,confideHomeEvent))
}
else -> {
EmptyViewHolder(View.inflate(context,R.layout.view_empty,null))
EmptyViewHolder(View.inflate(context,R.layout.confide_view_empty,null))
}
}
}
......
......@@ -59,7 +59,7 @@ class ConfideHomeRecommendExpertSection(var context: Context, var confideHomeEve
override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): RecyclerView.ViewHolder {
if (viewType == combineType(IConfideHomeConfig.SECTION_CONSULTANT, HEADER)) {
return HeadViewHolder(LayoutInflater.from(context).inflate(R.layout.confidehome_recommend_expert_head, parent, false))
return HeadViewHolder(LayoutInflater.from(context).inflate(R.layout.confide_recommend_expert_head, parent, false))
} else {
return ConfideHomeRecommendExpertViewHolder(ConfideHomeRecommendExpertView(context, confideHomeEvent))
}
......
......@@ -11,7 +11,6 @@ import android.view.View
import android.view.animation.AnimationUtils
import android.view.animation.LinearInterpolator
import android.widget.ImageView
import com.yidianling.common.tools.LogUtil
import com.ydl.confide.R
import com.ydl.confide.home.adapter.ConfideHomeAdapter
import com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
......@@ -27,6 +26,7 @@ import com.ydl.confide.home.widget.ConfideHomeFilterView
import com.ydl.confide.home.widget.ConfidePlayerFloatView
import com.ydl.ydlcommon.adapter.section.SectionAdapter
import com.ydl.ydlcommon.utils.MainUtils
import com.yidianling.common.tools.LogUtil
import java.io.BufferedInputStream
import java.io.IOException
import java.io.InputStream
......@@ -461,8 +461,8 @@ class ConfideHomeUtils {
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.platform_ic_arrow_drop_down_grey_500_18dp, 0)
}
IConfideHomeConfig.FILTER_STATUS_FILTERED, IConfideHomeConfig.FILTER_STATUS_OPEN -> {
tv.setTextColor(ContextCompat.getColor(mContext, R.color.baby_blue))
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.platform_ic_arrow_drop_down_green_18dp, 0)
tv.setTextColor(ContextCompat.getColor(mContext, R.color.confide_main_theme))
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.confide_ic_arrow_drop_down_green_18dp, 0)
}
}
}
......@@ -475,7 +475,7 @@ class ConfideHomeUtils {
tv.setTextColor(ContextCompat.getColor(mContext, R.color._6))
}
IConfideHomeConfig.FILTER_STATUS_FILTERED, IConfideHomeConfig.FILTER_STATUS_OPEN -> {
tv.setTextColor(ContextCompat.getColor(mContext, R.color.baby_blue))
tv.setTextColor(ContextCompat.getColor(mContext, R.color.confide_main_theme))
}
}
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.platform_ic_arrow_drop_down_grey_500_18dp, 0)
......@@ -488,7 +488,7 @@ class ConfideHomeUtils {
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.platform_ic_arrow_drop_down_grey_500_18dp, 0)
}
IConfideHomeConfig.FILTER_STATUS_FILTERED, IConfideHomeConfig.FILTER_STATUS_OPEN -> {
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.platform_ic_arrow_drop_down_green_18dp, 0)
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.confide_ic_arrow_drop_down_green_18dp, 0)
}
}
}
......@@ -497,7 +497,7 @@ class ConfideHomeUtils {
* 启动 播放动画
*/
fun startPlayAnim(context: Context, imageView: ImageView) {
var animation = AnimationUtils.loadAnimation(context, R.anim.confidehome_play_anim)
var animation = AnimationUtils.loadAnimation(context, R.anim.confide_play_anim)
var lin = LinearInterpolator()//设置动画匀速运动
animation.interpolator = lin
imageView.startAnimation(animation)
......
......@@ -10,7 +10,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import com.ydl.confide.home.bean.ConfideHomeDataBean
import com.ydl.confide.home.event.IConfideHomeEvent
import com.ydl.ydlcommon.view.banner.GlideImageLoader
import kotlinx.android.synthetic.main.confidehome_banner_view.view.*
import kotlinx.android.synthetic.main.confide_banner_view.view.*
/**
* @author yuanwai
......@@ -39,7 +39,7 @@ class ConfideHomeBannerView(context: Context,
private fun initView() {
val params = FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
View.inflate(context, R.layout.confidehome_banner_view, this)
View.inflate(context, R.layout.confide_banner_view, this)
layoutParams = params
margin = RxImageTool.dip2px(2.5f)
}
......@@ -67,7 +67,7 @@ class ConfideHomeBannerView(context: Context,
for (index in 0..count) {
urlLists.add((mDataList as ArrayList<ConfideHomeBodyBean>)[index].bannerImageUrl!!)
}
banner.setImageLoader(GlideImageLoader(R.color.new_divide_color,6)).setImages(urlLists).start()
banner.setImageLoader(GlideImageLoader(R.color.confide_new_divide_color,6)).setImages(urlLists).start()
banner.setOnBannerListener {
confideHomeEvent!!.bannerClick((mDataList as ArrayList<ConfideHomeBodyBean>)[it].bannerLinkUrl, it, (mDataList as ArrayList<ConfideHomeBodyBean>)[it].bannerTitle)
......
......@@ -6,13 +6,13 @@ import android.support.v7.widget.CardView
import android.text.TextUtils
import android.util.AttributeSet
import android.view.View
import com.ydl.ydl_image.module.GlideApp
import com.yidianling.common.tools.RxImageTool
import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeBodyBean
import com.ydl.confide.home.contract.IConfideHomeContract
import com.ydl.confide.home.event.IConfideHomeEvent
import kotlinx.android.synthetic.main.confidehome_item_category.view.*
import com.ydl.ydl_image.module.GlideApp
import com.yidianling.common.tools.RxImageTool
import kotlinx.android.synthetic.main.confide_item_category.view.*
/**
* @author yuanwai
......@@ -32,7 +32,7 @@ class ConfideHomeCategoryItemView(mContext: Context, @Nullable attrs: AttributeS
}
private fun initView() {
View.inflate(context, R.layout.confidehome_item_category, this)
View.inflate(context, R.layout.confide_item_category, this)
dp35 = RxImageTool.dip2px(35f)
}
......
......@@ -10,7 +10,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import com.ydl.confide.home.bean.ConfideHomeDataBean
import com.ydl.confide.home.contract.IConfideHomeContract
import com.ydl.confide.home.event.IConfideHomeEvent
import kotlinx.android.synthetic.main.confidehome_category_view.view.*
import kotlinx.android.synthetic.main.confide_category_view.view.*
/**
* @author yuanwai
......@@ -30,10 +30,10 @@ class ConfideHomeCategoryView(mContext: Context,
private fun initView(){
var params = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,RxImageTool.dip2px(106f))
View.inflate(context, R.layout.confidehome_category_view,this)
View.inflate(context, R.layout.confide_category_view,this)
layoutParams = params
orientation = HORIZONTAL
setBackgroundResource(R.color.confidehome_category_bg)
setBackgroundResource(R.color.confide_category_bg)
}
fun initData(bean: ConfideHomeDataBean?){
......
......@@ -9,13 +9,13 @@ import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import com.yidianling.common.tools.RxImageTool
import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeBodyBean
import com.ydl.confide.home.bean.ConfideHomeDataBean
import com.ydl.confide.home.contract.IConfideHomeContract
import com.ydl.ydlcommon.utils.ScreenUtil
import com.ydl.ydlcommon.view.DrawableRightTextView
import com.yidianling.common.tools.RxImageTool
/**
* @author yuanwai
......@@ -93,7 +93,7 @@ class ConfideHomeFilterView(mContext: Context, @Nullable attrs: AttributeSet?, d
textView.text = bodyBean.filterName
textView.setTag(R.id.tv_title,bodyBean)
if ("排序" == bodyBean.filterName){
textView.setTextColor(ContextCompat.getColor(context, R.color.baby_blue))
textView.setTextColor(ContextCompat.getColor(context, R.color.confide_main_theme))
// textView.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_arrow_drop_down_green_18dp, 0)
}
textView.setOnClickListener {
......@@ -127,7 +127,7 @@ class ConfideHomeFilterView(mContext: Context, @Nullable attrs: AttributeSet?, d
var view = getChildAt(index)
if (view is DrawableRightTextView){
if ("排序" == view.text){
view.setTextColor(ContextCompat.getColor(context, R.color.baby_blue))
view.setTextColor(ContextCompat.getColor(context, R.color.confide_main_theme))
}else{
view.setTextColor(ContextCompat.getColor(context, R.color._6))
}
......
......@@ -7,7 +7,7 @@ import android.widget.LinearLayout
import android.widget.RelativeLayout
import com.ydl.confide.R
import com.ydl.confide.home.event.IConfideHomeEvent
import kotlinx.android.synthetic.main.confidehome_footer.view.*
import kotlinx.android.synthetic.main.confide_footer.view.*
/**
* @author yuanwai
......@@ -27,7 +27,7 @@ class ConfideHomeFooterView(var mContext: Context,var confideHomeEvent : IConfid
*/
private fun initView() {
var params = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT)
View.inflate(context, R.layout.confidehome_footer,this)
View.inflate(context, R.layout.confide_footer,this)
tv_footer.setOnClickListener {
confideHomeEvent.consultantMoreClick("app://listen/list")
}
......
......@@ -9,7 +9,7 @@ import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeDataBean
import com.ydl.confide.home.config.IConfideHomeConfig
import com.ydl.confide.home.event.IConfideHomeEvent
import kotlinx.android.synthetic.main.confidehome_item_header.view.*
import kotlinx.android.synthetic.main.confide_item_header.view.*
@Suppress("DEPRECATION")
/**
......@@ -27,7 +27,7 @@ class ConfideHomeHeadView(context: Context, private var confideHomeEvent: IConfi
private fun initView() {
orientation = HORIZONTAL
View.inflate(context, R.layout.confidehome_item_header, this)
View.inflate(context, R.layout.confide_item_header, this)
var params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, RxImageTool.dip2px(25f))
params.setMargins(0, RxImageTool.dip2px(30f), 0, RxImageTool.dip2px(18f))
layoutParams = params
......@@ -46,18 +46,18 @@ class ConfideHomeHeadView(context: Context, private var confideHomeEvent: IConfi
when (bean.type) {
IConfideHomeConfig.TYPE_RECOMMEND -> {
setPadding(0, RxImageTool.dip2px(30f), 0, 0)
iv_recently_talk.setImageResource(R.drawable.confidehome_recommend)
iv_recently_talk.setImageResource(R.drawable.confide_recommend)
iv_recently_title.text = bean.head.title
iv_recently_more.visibility = View.GONE
}
IConfideHomeConfig.TYPE_RECENTLY_CONFIDED -> {
setPadding(0, RxImageTool.dip2px(30f), 0, RxImageTool.dip2px(18f))
iv_recently_talk.setImageResource(R.drawable.confidehome_zuijin)
iv_recently_talk.setImageResource(R.drawable.confide_zuijin)
iv_recently_title.text = bean.head.title
iv_recently_more.visibility = View.GONE
}
IConfideHomeConfig.TYPE_SOUND -> {
iv_recently_talk.setImageResource(R.drawable.confidehome_listen)
iv_recently_talk.setImageResource(R.drawable.confide_listen)
iv_recently_title.text = bean.head.title
iv_recently_more.visibility = View.GONE
}
......
......@@ -9,7 +9,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import com.ydl.confide.home.config.IConfideHomeConfig
import com.ydl.confide.home.event.IConfideHomeEvent
import com.ydl.confide.home.util.ConfideHomeUtils
import kotlinx.android.synthetic.main.confidehome_listen_and_found_item_view.view.*
import kotlinx.android.synthetic.main.confide_listen_and_found_item_view.view.*
/**
* @author yuanwai
......@@ -24,7 +24,7 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
}
private fun initView() {
View.inflate(context, R.layout.confidehome_listen_and_found_item_view, this)
View.inflate(context, R.layout.confide_listen_and_found_item_view, this)
}
/**
......@@ -66,15 +66,15 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
when (bodyBean.confideLine) {//1在线 2离线 3通话中
1 -> {
tv_isLine.text = "在线"
tv_isLine.setBackgroundResource(R.drawable.confidehome_bg_main_color)
tv_isLine.setBackgroundResource(R.drawable.confide_bg_main_color)
}
2 -> {
tv_isLine.text = "离线"
tv_isLine.setBackgroundResource(R.drawable.confidehome_bg_color_666666)
tv_isLine.setBackgroundResource(R.drawable.confide_bg_color_666666)
}
3 -> {
tv_isLine.text = "通话中"
tv_isLine.setBackgroundResource(R.drawable.confidehome_bg_color_ff8f38)
tv_isLine.setBackgroundResource(R.drawable.confide_bg_color_ff8f38)
}
else -> {
......@@ -111,9 +111,9 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
*/
private fun setSex(bodyBean: ConfideHomeBodyBean) {
if (bodyBean.confideSex == 1) {
img_sex.setImageResource(R.drawable.confidehome_new_male)
img_sex.setImageResource(R.drawable.confide_new_male)
} else {
img_sex.setImageResource(R.drawable.confidehome_new_female)
img_sex.setImageResource(R.drawable.confide_new_female)
}
}
......@@ -151,16 +151,16 @@ class ConfideHomeListenAndFoundItemView(mContext: Context, private var confideHo
private fun setConfideButton(bodyBean: ConfideHomeBodyBean) {
when (bodyBean.confideLine) {//1.在线 2.离线 3.通话中 4.继续倾诉
1 -> {
tv_confide.setBackgroundResource(R.drawable.confidehome_line_1)
tv_confide.setBackgroundResource(R.drawable.confide_line_1)
}
2 -> {
tv_confide.setBackgroundResource(R.drawable.confidehome_line_2)
tv_confide.setBackgroundResource(R.drawable.confide_line_2)
}
3 -> {
tv_confide.setBackgroundResource(R.drawable.confidehome_line_3)
tv_confide.setBackgroundResource(R.drawable.confide_line_3)
}
4 ->{
tv_confide.setBackgroundResource(R.drawable.confidehome_line_4)
tv_confide.setBackgroundResource(R.drawable.confide_line_4)
}
}
}
......
......@@ -6,7 +6,7 @@ import android.widget.FrameLayout
import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeDataBean
import com.ydl.confide.home.event.IConfideHomeEvent
import kotlinx.android.synthetic.main.confidehome_banner.view.*
import kotlinx.android.synthetic.main.confide_banner.view.*
/**
* @author Jim
......@@ -28,7 +28,7 @@ class ConfideHomeListenAndFoundView(context: Context, private var confideHomeEve
}
private fun initView() {
View.inflate(context, R.layout.confidehome_banner, this)
View.inflate(context, R.layout.confide_banner, this)
}
fun initData(bean: ConfideHomeDataBean) {
......
......@@ -13,7 +13,7 @@ import com.yidianling.common.tools.RxImageTool
import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeDataBean
import com.ydl.confide.home.event.IConfideHomeEvent
import kotlinx.android.synthetic.main.confidehome_recent_view.view.*
import kotlinx.android.synthetic.main.confide_recent_view.view.*
/**
* @author yuanwai
......@@ -35,7 +35,7 @@ class ConfideHomeRecentView(mContext: Context, private var confideHomeEvent: ICo
*/
private fun initView() {
initLayoutParam()
View.inflate(context, R.layout.confidehome_recent_view, this)
View.inflate(context, R.layout.confide_recent_view, this)
}
......@@ -71,9 +71,9 @@ class ConfideHomeRecentView(mContext: Context, private var confideHomeEvent: ICo
img_icon.setTag(R.id.img_icon, bodyBean.confidedIcon)
}
if (bodyBean.confideSex == 1) {
img_sex.setImageResource(R.drawable.confidehome_new_male)
img_sex.setImageResource(R.drawable.confide_new_male)
} else {
img_sex.setImageResource(R.drawable.confidehome_new_female)
img_sex.setImageResource(R.drawable.confide_new_female)
}
tv_name.text = bodyBean.confidedName
tv_history.text = bodyBean.confideHistory
......
......@@ -17,7 +17,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import com.ydl.confide.home.config.IConfideHomeConfig
import com.ydl.confide.home.event.IConfideHomeEvent
import com.ydl.ydlcommon.utils.ScreenUtil
import kotlinx.android.synthetic.main.confidehome_recommend_expert_item_view.view.*
import kotlinx.android.synthetic.main.confide_recommend_expert_item_view.view.*
/**
* @author yuanwai
......@@ -38,7 +38,7 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
}
private fun initView() {
View.inflate(context, R.layout.confidehome_recommend_expert_item_view, this)
View.inflate(context, R.layout.confide_recommend_expert_item_view, this)
bgWidth = ScreenUtil.screenWidth - RxImageTool.dip2px(30f)
dp100 = RxImageTool.dip2px(100f)
dp16 = RxImageTool.dip2px(16f)
......@@ -108,15 +108,15 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
when (bodyBean.confideLine) {//1在线 2离线 3通话中 4继续通话
1, 4 -> {
tv_isLine.text = "在线"
tv_isLine.setBackgroundResource(R.drawable.confidehome_bg_main_color)
tv_isLine.setBackgroundResource(R.drawable.confide_bg_main_color)
}
2 -> {
tv_isLine.text = "离线"
tv_isLine.setBackgroundResource(R.drawable.confidehome_bg_color_666666)
tv_isLine.setBackgroundResource(R.drawable.confide_bg_color_666666)
}
3 -> {
tv_isLine.text = "通话中"
tv_isLine.setBackgroundResource(R.drawable.confidehome_bg_color_ff8f38)
tv_isLine.setBackgroundResource(R.drawable.confide_bg_color_ff8f38)
}
}
}
......@@ -145,9 +145,9 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
img_play.visibility = View.VISIBLE
}
if (confideIsPlay) {
img_play.setImageResource(R.drawable.confidehome_playing)
img_play.setImageResource(R.drawable.confide_playing)
} else {
img_play.setImageResource(R.drawable.confidehome_sond_play)
img_play.setImageResource(R.drawable.confide_sond_play)
}
img_play.setOnClickListener {
if (confideIsPlay) {
......@@ -163,9 +163,9 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
*/
private fun setSex(bodyBean: ConfideHomeBodyBean) {
if (bodyBean.confideSex == 1) {
img_sex.setImageResource(R.drawable.confidehome_new_male)
img_sex.setImageResource(R.drawable.confide_new_male)
} else {
img_sex.setImageResource(R.drawable.confidehome_new_female)
img_sex.setImageResource(R.drawable.confide_new_female)
}
}
......@@ -215,7 +215,7 @@ class ConfideHomeRecommendExpertItemView(mContext: Context, private var confideH
textView.setTextColor(Color.parseColor("#808080"))
textView.gravity = Gravity.CENTER
textView.setPadding(dp3, 0, dp3, 0)
textView.setBackgroundResource(R.drawable.confidehome_bg_tag)
textView.setBackgroundResource(R.drawable.confide_bg_tag)
textView.layoutParams = params
textView.text = tag
flowlayout_tag.addView(textView)
......
......@@ -7,7 +7,7 @@ import com.ydl.confide.R
import com.ydl.confide.home.bean.ConfideHomeDataBean
import com.ydl.confide.home.event.IConfideHomeEvent
import com.ydl.confide.home.widget.adapter.RecommendExpertAdapter
import kotlinx.android.synthetic.main.confidehome_recommend_expert_view.view.*
import kotlinx.android.synthetic.main.confide_recommend_expert_view.view.*
/**
* @author yuanwai
......@@ -33,7 +33,7 @@ class ConfideHomeRecommendExpertView(context : Context, private var confideHomeE
}
private fun initView(){
View.inflate(context, R.layout.confidehome_recommend_expert_view,this)
View.inflate(context, R.layout.confide_recommend_expert_view,this)
}
fun initData(bean: ConfideHomeDataBean?){
......
......@@ -18,7 +18,7 @@ import com.ydl.confide.home.bean.ConfideHomeBodyBean
import com.ydl.confide.home.config.IConfideHomeConfig
import com.ydl.confide.home.contract.IConfideHomeContract
import com.ydl.confide.home.event.IConfideHomeEvent
import kotlinx.android.synthetic.main.confidehome_recommend_view.view.*
import kotlinx.android.synthetic.main.confide_recommend_view.view.*
/**
* @author yuanwai
......@@ -41,7 +41,7 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
private fun initView() {
var params = FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
layoutParams = params
View.inflate(context, R.layout.confidehome_recommend_view, this)
View.inflate(context, R.layout.confide_recommend_view, this)
dp96 = RxImageTool.dip2px(96f)
dp16 = RxImageTool.dip2px(16f)
dp4 = RxImageTool.dip2px(4f)
......@@ -92,15 +92,15 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
when (bodyBean.confideLine) {//1在线 2离线 3通话中
1, 4 -> {
tv_isLine.text = "在线"
tv_isLine.setBackgroundResource(R.drawable.confidehome_bg_main_color)
tv_isLine.setBackgroundResource(R.drawable.confide_bg_main_color)
}
2 -> {
tv_isLine.text = "离线"
tv_isLine.setBackgroundResource(R.drawable.confidehome_bg_color_666666)
tv_isLine.setBackgroundResource(R.drawable.confide_bg_color_666666)
}
3 -> {
tv_isLine.text = "通话中"
tv_isLine.setBackgroundResource(R.drawable.confidehome_bg_color_ff8f38)
tv_isLine.setBackgroundResource(R.drawable.confide_bg_color_ff8f38)
}
// 4 -> {
// tv_confide.text = "继续倾诉"
......@@ -133,9 +133,9 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
iv_play.visibility = View.VISIBLE
}
if (bodyBean.confideIsPlay) {
iv_play.setImageResource(R.drawable.confidehome_playing)
iv_play.setImageResource(R.drawable.confide_playing)
} else {
iv_play.setImageResource(R.drawable.confidehome_sond_play)
iv_play.setImageResource(R.drawable.confide_sond_play)
}
iv_play.setOnClickListener {
if (bodyBean.confideIsPlay!!) {
......@@ -151,9 +151,9 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
*/
private fun setSex(bodyBean: ConfideHomeBodyBean) {
if (bodyBean.confideSex == 1) {
img_sex.setImageResource(R.drawable.confidehome_new_male)
img_sex.setImageResource(R.drawable.confide_new_male)
} else {
img_sex.setImageResource(R.drawable.confidehome_new_female)
img_sex.setImageResource(R.drawable.confide_new_female)
}
}
......@@ -216,7 +216,7 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
textView.setTextColor(Color.parseColor("#808080"))
textView.gravity = Gravity.CENTER
textView.setPadding(dp3, 0, dp3, 0)
textView.setBackgroundResource(R.drawable.confidehome_bg_tag)
textView.setBackgroundResource(R.drawable.confide_bg_tag)
textView.layoutParams = params
textView.text = tag
flowlayout_tag.addView(textView)
......@@ -230,16 +230,16 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
private fun setConfideButton(bodyBean: ConfideHomeBodyBean) {
when (bodyBean.confideLine) {//1在线 2离线 3通话中 4继续倾诉
1 -> {
tv_confide.setBackgroundResource(R.drawable.confidehome_line_1)
tv_confide.setBackgroundResource(R.drawable.confide_line_1)
}
2 -> {
tv_confide.setBackgroundResource(R.drawable.confidehome_line_2)
tv_confide.setBackgroundResource(R.drawable.confide_line_2)
}
3 -> {
tv_confide.setBackgroundResource(R.drawable.confidehome_line_3)
tv_confide.setBackgroundResource(R.drawable.confide_line_3)
}
4 -> {
tv_confide.setBackgroundResource(R.drawable.confidehome_line_4)
tv_confide.setBackgroundResource(R.drawable.confide_line_4)
}
}
tv_confide.setOnClickListener {
......
......@@ -48,7 +48,7 @@ public class ConfidePlayerFloatView extends FrameLayout {
wm = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE);
dp3= RxImageTool.dip2px(3f);
mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop() + 5;
View view = inflate(context, R.layout.confidehome_playing_float_btn, this);
View view = inflate(context, R.layout.confide_playing_float_btn, this);
playHead = view.findViewById(R.id.play_head);
playState = view.findViewById(R.id.play_state);
playClose = findViewById(R.id.play_close);
......@@ -168,7 +168,7 @@ public class ConfidePlayerFloatView extends FrameLayout {
} else {
if (!isMove) {
if (isFmPlay) {
playState.setImageResource(R.drawable.confidehome_play_stop);
playState.setImageResource(R.drawable.confide_play_stop);
playState.setPadding(dp3,dp3,dp3,dp3);
playClose.setVisibility(VISIBLE);
dividerLine.setVisibility(VISIBLE);
......@@ -176,7 +176,7 @@ public class ConfidePlayerFloatView extends FrameLayout {
mPlayCallBack.click(false);
}
} else {
playState.setImageResource(R.drawable.confidehome_play_pause);
playState.setImageResource(R.drawable.confide_play_pause);
playState.setPadding(dp3,dp3,dp3,dp3);
playClose.setVisibility(GONE);
dividerLine.setVisibility(GONE);
......@@ -229,12 +229,12 @@ public class ConfidePlayerFloatView extends FrameLayout {
public void updatePlayState(Boolean isPlaying) {
this.isFmPlay = isPlaying;
if (isPlaying) {
playState.setImageResource(R.drawable.confidehome_play_pause);
playState.setImageResource(R.drawable.confide_play_pause);
playState.setPadding(dp3,dp3,dp3,dp3);
playClose.setVisibility(GONE);
dividerLine.setVisibility(VISIBLE);
} else {
playState.setImageResource(R.drawable.confidehome_play_stop);
playState.setImageResource(R.drawable.confide_play_stop);
playState.setPadding(dp3,dp3,dp3,dp3);
playClose.setVisibility(VISIBLE);
}
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/baby_blue" android:state_selected="true" android:state_enabled="true"/>
<item android:color="@color/confide_main_theme" android:state_selected="true" android:state_enabled="true"/>
<item android:color="@color/_6" android:state_enabled="true"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/dp_3"/>
<stroke android:color="#ff5b05" android:width="1px"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/confide_dp_3"/>
<stroke android:color="#ff5b05" android:width="1px"/>
</shape>
......@@ -4,7 +4,7 @@
android:shape="rectangle"
android:useLevel="false">
<solid android:color="#1DA1F2"/>
<solid android:color="@color/confide_main_theme"/>
<corners android:radius="10dp"/>
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#56CCF2"
android:endColor="#2F80ED"
android:startColor="@color/confide_main_theme_light"
android:endColor="@color/confide_main_theme"
android:angle="0" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#56CCF2"
android:endColor="#2F80ED"
android:startColor="@color/confide_main_theme_light"
android:endColor="@color/confide_main_theme"
android:angle="0" />
</shape>
\ No newline at end of file
......@@ -4,10 +4,10 @@
<corners android:radius="20dp" />
<!--<stroke-->
<!--android:width="1dp"-->
<!--android:color="@color/platform_main_theme_blue" />-->
<!--android:color="@color/confide_main_theme" />-->
<gradient
android:startColor="#1DA1F2"
android:endColor="#42C1FF"
android:startColor="@color/confide_main_theme"
android:endColor="@color/confide_main_theme"
android:angle="0"/>
</shape>
\ No newline at end of file
......@@ -4,7 +4,7 @@
<corners android:radius="20dp" />
<stroke
android:width="1px"
android:color="@color/platform_main_theme_blue" />
android:color="@color/confide_main_theme" />
<!--<solid android:color="@color/white"/>-->
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="4dp" />
<solid android:color="#1A1DA1F2" />
<stroke android:width="1px" android:color="#1DA1F2"/>
<solid android:color="#FFFFFF" />
<stroke android:width="1px" android:color="@color/confide_main_theme"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="100dp"/>
<solid android:color="#1da1f2" />
<solid android:color="@color/confide_main_theme" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:bottomRightRadius="3dp"/>
<solid android:color="#1DA1F2" />
<solid android:color="@color/confide_main_theme" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 圆角 -->
<corners android:radius="@dimen/default_dis_size_big" />
<stroke
android:width="1dp"
android:color="#D6D6D6" />
<solid android:color="@color/transparent" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 圆角 -->
<corners android:radius="@dimen/confide_default_dis_size_big" />
<stroke
android:width="1dp"
android:color="#D6D6D6" />
<solid android:color="@color/transparent" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:color="@color/platform_google_green"/>
<item android:state_checked="true" android:color="@color/confide_main_theme"/>
<item android:state_checked="false" android:color="@color/platform_text_gray"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/rl_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white">
<com.ydl.ydlcommon.view.banner.Banner
android:id="@+id/confide_home_banner"
android:layout_width="match_parent"
android:layout_height="145dp"
android:layout_marginBottom="30dp"
app:pa_indicator_different_width="14dp"
app:pa_indicator_drawable_selected="@drawable/confidehome_bg_sound_selected"
app:pa_indicator_drawable_unselected="@drawable/confidehome_bg_sound_unselect"
app:pa_indicator_height="5dp"
app:pa_indicator_margin="3dp"
app:pa_is_auto_play="false"
app:pa_is_selected_same_unselected="false"
app:pa_is_show_inside="false" />
<View
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_below="@+id/confide_home_banner"
android:background="@color/f0" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/rl_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white">
<com.ydl.ydlcommon.view.banner.Banner
android:id="@+id/confide_home_banner"
android:layout_width="match_parent"
android:layout_height="145dp"
android:layout_marginBottom="30dp"
app:pa_indicator_different_width="14dp"
app:pa_indicator_drawable_selected="@drawable/confide_bg_sound_selected"
app:pa_indicator_drawable_unselected="@drawable/confide_bg_sound_unselect"
app:pa_indicator_height="5dp"
app:pa_indicator_margin="3dp"
app:pa_is_auto_play="false"
app:pa_is_selected_same_unselected="false"
app:pa_is_show_inside="false" />
<View
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_below="@+id/confide_home_banner"
android:background="@color/f0" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="118dp"
android:background="@drawable/confidehome_confidehome_bg" />
<FrameLayout
android:layout_width="match_parent"
android:layout_marginTop="@dimen/dp_10"
android:layout_height="160dp"
android:layout_marginBottom="20dp">
<com.ydl.ydlcommon.view.banner.Banner
android:id="@+id/banner"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
app:pa_indicator_different_width="14dp"
app:pa_indicator_drawable_selected="@drawable/confidehome_bg_sound_selected"
app:pa_indicator_drawable_unselected="@drawable/confidehome_bg_sound_unselect"
app:pa_indicator_height="4dp"
app:pa_is_selected_same_unselected="false"
app:pa_is_show_inside="false" />
</FrameLayout>
</merge>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="118dp"
android:background="@drawable/confide_confidehome_bg" />
<FrameLayout
android:layout_width="match_parent"
android:layout_marginTop="@dimen/confide_dp_10"
android:layout_height="160dp"
android:layout_marginBottom="20dp">
<com.ydl.ydlcommon.view.banner.Banner
android:id="@+id/banner"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
app:pa_indicator_different_width="14dp"
app:pa_indicator_drawable_selected="@drawable/confide_bg_sound_selected"
app:pa_indicator_drawable_unselected="@drawable/confide_bg_sound_unselect"
app:pa_indicator_height="4dp"
app:pa_is_selected_same_unselected="false"
app:pa_is_show_inside="false" />
</FrameLayout>
</merge>
<?xml version="1.0" encoding="utf-8"?>
<merge android:layout_width="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.ydl.confide.home.widget.ConfideHomeCategoryItemView
android:id="@+id/v_item1"
android:layout_width="0px"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_19"
android:layout_marginBottom="@dimen/dp_18"
android:layout_height="match_parent"
android:layout_weight="1"
app:cardCornerRadius="6dp"
app:cardElevation="1dp" />
<com.ydl.confide.home.widget.ConfideHomeCategoryItemView
android:id="@+id/v_item2"
android:layout_marginLeft="10dp"
android:layout_marginTop="@dimen/dp_19"
android:layout_marginBottom="@dimen/dp_18"
android:layout_marginRight="@dimen/dp_15"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
app:cardCornerRadius="6dp"
app:cardElevation="1dp" />
</merge>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<merge android:layout_width="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.ydl.confide.home.widget.ConfideHomeCategoryItemView
android:id="@+id/v_item1"
android:layout_width="0px"
android:layout_marginLeft="@dimen/confide_dp_15"
android:layout_marginTop="@dimen/confide_dp_19"
android:layout_marginBottom="@dimen/confide_dp_18"
android:layout_height="match_parent"
android:layout_weight="1"
app:cardCornerRadius="6dp"
app:cardElevation="1dp" />
<com.ydl.confide.home.widget.ConfideHomeCategoryItemView
android:id="@+id/v_item2"
android:layout_marginLeft="10dp"
android:layout_marginTop="@dimen/confide_dp_19"
android:layout_marginBottom="@dimen/confide_dp_18"
android:layout_marginRight="@dimen/confide_dp_15"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
app:cardCornerRadius="6dp"
app:cardElevation="1dp" />
</merge>
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<TextView
android:id="@+id/tv_footer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:drawablePadding="5dp"
android:layout_centerInParent="true"
android:text="更多情感恋爱专家"
android:drawableRight="@drawable/confidehome_more"
android:textColor="#666666"
android:textSize="15dp"/>
</merge>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<TextView
android:id="@+id/tv_footer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:drawablePadding="5dp"
android:layout_centerInParent="true"
android:text="更多情感恋爱专家"
android:drawableRight="@drawable/confide_more"
android:textColor="#666666"
android:textSize="15dp"/>
</merge>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
<RelativeLayout
android:id="@+id/rl_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp">
<com.yidianling.phonecall.WaveView
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_centerInParent="true"
android:background="@color/transparent" />
<ImageView
android:id="@+id/sdv_head"
android:layout_width="@dimen/head_size_big"
android:layout_height="@dimen/head_size_big"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:contentDescription="@null" />
</RelativeLayout>
<LinearLayout
android:id="@+id/lin_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:gravity="center_horizontal"
android:layout_below="@+id/rl_head"
android:layout_marginTop="50dp"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/divide_line_stroke_width"
android:layout_marginBottom="@dimen/default_dis_size_huge"
android:background="#22222B24" />
<TextView
android:id="@+id/tv_phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/default_dis_size_huge"
android:text="请注意接听,通常为0571开头号码"
android:textColor="@color/white" />
<TextView
android:id="@+id/tv_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/default_dis_size_huge"
android:text="如倒计时结束后仍然未接到来电,请挂断后重新连接"
android:textColor="@color/white" />
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/divide_line_stroke_width"
android:layout_marginBottom="@dimen/default_dis_size_huge"
android:background="#22222B24" />
</LinearLayout>
<LinearLayout
android:id="@+id/lin_djs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_below="@+id/lin_text"
android:layout_above="@+id/iv_stop"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:text="倒计时:"/>
<TextView
android:id="@+id/text_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:gravity="center"
android:layout_above="@+id/lin_text"
android:textColor="@color/red"
tools:text="30"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:text=" 秒"/>
</LinearLayout>
<ImageView
android:id="@+id/iv_stop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="30dp"
android:src="@drawable/state_stop"
android:visibility="invisible"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
<RelativeLayout
android:id="@+id/rl_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp">
<com.yidianling.phonecall.WaveView
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_centerInParent="true"
android:background="@color/transparent" />
<ImageView
android:id="@+id/sdv_head"
android:layout_width="@dimen/confide_head_size_big"
android:layout_height="@dimen/confide_head_size_big"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:contentDescription="@null" />
</RelativeLayout>
<LinearLayout
android:id="@+id/lin_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:gravity="center_horizontal"
android:layout_below="@+id/rl_head"
android:layout_marginTop="50dp"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/confide_divide_line_stroke_width"
android:layout_marginBottom="@dimen/confide_default_dis_size_huge"
android:background="#22222B24" />
<TextView
android:id="@+id/tv_phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/confide_default_dis_size_huge"
android:text="请注意接听,通常为0571开头号码"
android:textColor="@color/white" />
<TextView
android:id="@+id/tv_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/confide_default_dis_size_huge"
android:text="如倒计时结束后仍然未接到来电,请挂断后重新连接"
android:textColor="@color/white" />
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/confide_divide_line_stroke_width"
android:layout_marginBottom="@dimen/confide_default_dis_size_huge"
android:background="#22222B24" />
</LinearLayout>
<LinearLayout
android:id="@+id/lin_djs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_below="@+id/lin_text"
android:layout_above="@+id/iv_stop"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:text="倒计时:"/>
<TextView
android:id="@+id/text_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:gravity="center"
android:layout_above="@+id/lin_text"
android:textColor="@color/red"
tools:text="30"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:text=" 秒"/>
</LinearLayout>
<ImageView
android:id="@+id/iv_stop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="30dp"
android:src="@drawable/confide_state_stop"
android:visibility="invisible"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/tvGoodName"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:textColor="@color/confidehome_color_filter_selector"
android:orientation="vertical"
android:background="@drawable/confidehome_filter_select_nor"
android:textSize="@dimen/dp_13"
tools:text="恋爱婚姻" />
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/tvGoodName"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:textColor="@color/confide_color_filter_selector"
android:orientation="vertical"
android:background="@drawable/confide_filter_select_nor"
android:textSize="@dimen/confide_dp_13"
tools:text="恋爱婚姻" />
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/confidehome_filters_line"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_13"
android:textColor="@color/_6"
android:layout_marginLeft="24dp"
android:layout_marginTop="25dp"
android:layout_marginBottom="8dp"
tools:text="擅长方向"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/rvGood"
android:layout_width="match_parent"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="horizontal">
<Button
android:id="@+id/btnReset"
android:layout_width="0px"
android:layout_height="37dp"
android:layout_weight="1"
android:layout_marginBottom="24dp"
android:layout_marginTop="8dp"
android:layout_marginLeft="15dp"
android:background="@drawable/confidehome_filter_reset_btn_bg"
android:text="@string/platform_reset"
android:textColor="@color/platform_main_theme_blue"
android:textSize="@dimen/dp_18" />
<Button
android:id="@+id/btnConfirm"
android:layout_width="0px"
android:layout_height="37dp"
android:layout_weight="1"
android:layout_marginLeft="13dp"
android:layout_marginRight="15dp"
android:layout_marginBottom="24dp"
android:layout_marginTop="8dp"
android:background="@drawable/confidehome_filter_btn_bg"
android:gravity="center"
android:text="@string/platform_confirm"
android:textColor="@color/white"
android:textSize="@dimen/dp_18" />
</LinearLayout>
<View
android:id="@+id/v_zhezhao"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80000000"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/confide_filters_line"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_13"
android:textColor="@color/_6"
android:layout_marginLeft="24dp"
android:layout_marginTop="25dp"
android:layout_marginBottom="8dp"
tools:text="擅长方向"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/rvGood"
android:layout_width="match_parent"
android:layout_marginLeft="@dimen/confide_dp_16"
android:layout_marginRight="@dimen/confide_dp_16"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="horizontal">
<Button
android:id="@+id/btnReset"
android:layout_width="0px"
android:layout_height="37dp"
android:layout_weight="1"
android:layout_marginBottom="24dp"
android:layout_marginTop="8dp"
android:layout_marginLeft="15dp"
android:background="@drawable/confide_filter_reset_btn_bg"
android:text="@string/platform_reset"
android:textColor="@color/confide_main_theme"
android:textSize="@dimen/confide_dp_18" />
<Button
android:id="@+id/btnConfirm"
android:layout_width="0px"
android:layout_height="37dp"
android:layout_weight="1"
android:layout_marginLeft="13dp"
android:layout_marginRight="15dp"
android:layout_marginBottom="24dp"
android:layout_marginTop="8dp"
android:background="@drawable/confide_filter_btn_bg"
android:gravity="center"
android:text="@string/platform_confirm"
android:textColor="@color/white"
android:textSize="@dimen/confide_dp_18" />
</LinearLayout>
<View
android:id="@+id/v_zhezhao"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80000000"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<com.jcodecraeer.xrecyclerview.XRecyclerView
android:id="@+id/rv_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="48dp" />
<include layout="@layout/confidehome_title_bar" />
<LinearLayout
android:id="@+id/quick_consult_card"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="30dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:background="@drawable/card_consult_bg"
android:orientation="horizontal"
android:paddingLeft="@dimen/dp_25"
android:paddingRight="@dimen/dp_25"
android:visibility="gone">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
android:text="不知道选择哪位咨询师?试试"
android:textColor="@color/platform_color_242424"
android:textSize="14dp" />
<TextView
android:id="@+id/quick_consult_btn"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:background="@drawable/consult_btn_bg"
android:gravity="center"
android:paddingLeft="@dimen/dp_20"
android:paddingRight="@dimen/dp_20"
android:text="一键倾诉"
android:textColor="@color/platform_color_242424"
android:textSize="14dp"
android:textStyle="bold" />
</LinearLayout>
<View
android:id="@+id/v_zhezhao"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="96dp"
android:background="#80000000"
android:visibility="gone" />
<com.ydl.confide.home.widget.ConfideHomeFilterView
android:id="@+id/v_filterView"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="48dp"
android:background="@color/white"
android:visibility="gone" />
<com.ydl.ydlcommon.mvp.lce.view.YDLStateView
android:id="@+id/lce_state_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/rv_list"
android:layout_alignTop="@+id/rv_list"
android:layout_alignRight="@+id/rv_list"
android:layout_alignBottom="@+id/rv_list"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<include layout="@layout/confide_title_bar" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.jcodecraeer.xrecyclerview.XRecyclerView
android:id="@+id/rv_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
<LinearLayout
android:id="@+id/quick_consult_card"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginBottom="30dp"
android:background="@drawable/confide_card_consult_bg"
android:orientation="horizontal"
android:paddingLeft="@dimen/confide_dp_25"
android:paddingRight="@dimen/confide_dp_25"
android:visibility="gone">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
android:text="不知道选择哪位咨询师?试试"
android:textColor="@color/platform_color_242424"
android:textSize="14dp" />
<TextView
android:id="@+id/quick_consult_btn"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:background="@drawable/confide_consult_btn_bg"
android:gravity="center"
android:paddingLeft="@dimen/confide_dp_20"
android:paddingRight="@dimen/confide_dp_20"
android:text="一键倾诉"
android:textColor="@color/platform_color_242424"
android:textSize="14dp"
android:textStyle="bold" />
</LinearLayout>
<View
android:id="@+id/v_zhezhao"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="48dp"
android:background="#80000000"
android:visibility="gone"
/>
<com.ydl.confide.home.widget.ConfideHomeFilterView
android:id="@+id/v_filterView"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/white"
android:visibility="gone"
/>
<com.ydl.ydlcommon.mvp.lce.view.YDLStateView
android:id="@+id/lce_state_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/rv_list"
android:layout_alignTop="@+id/rv_list"
android:layout_alignRight="@+id/rv_list"
android:layout_alignBottom="@+id/rv_list" />
</RelativeLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
xmlns:tools="http://schemas.android.com/tools">
<ImageView
android:id="@+id/img_icon"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_marginTop="17dp"
android:layout_marginLeft="16dp"
tools:background="@drawable/confidehome_recent_btn_on_bg"/>
<TextView
android:id="@id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_17"
android:layout_marginLeft="59dp"
android:textSize="@dimen/dp_13"
android:textColor="@color/_6"
tools:text="倾诉指南"/>
<TextView
android:id="@+id/tv_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="59.5dp"
android:layout_marginTop="38dp"
android:textSize="@dimen/dp_10"
android:textColor="@color/_9"
tools:text="排忧疏导,隐私安全"/>
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
xmlns:tools="http://schemas.android.com/tools">
<ImageView
android:id="@+id/img_icon"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_marginTop="17dp"
android:layout_marginLeft="16dp"
tools:background="@drawable/confide_recent_btn_on_bg"/>
<TextView
android:id="@id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/confide_dp_17"
android:layout_marginLeft="59dp"
android:textSize="@dimen/confide_dp_13"
android:textColor="@color/_6"
tools:text="倾诉指南"/>
<TextView
android:id="@+id/tv_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="59.5dp"
android:layout_marginTop="38dp"
android:textSize="@dimen/confide_dp_10"
android:textColor="@color/_9"
tools:text="排忧疏导,隐私安全"/>
</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<ImageView
android:id="@+id/iv_recently_talk"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_gravity="center_vertical"
tools:src="@drawable/confidehome_zuijin"
android:layout_marginLeft="15dp"/>
<TextView
android:id="@+id/iv_recently_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="5dp"
android:textSize="18sp"
android:layout_weight="1"
android:textColor="@color/platform_color_666666"
tools:text="最近倾诉"/>
<TextView
android:id="@+id/iv_recently_more"
android:layout_width="41dp"
android:layout_height="19dp"
android:gravity="center"
android:layout_gravity="center"
android:textColor="#b3b3b3"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="3dp"
android:paddingBottom="3dp"
android:layout_marginRight="15dp"
android:textSize="10sp"
android:background="@drawable/confidehome_bg_radius_line_gray_20"
tools:text="更多"/>
</merge>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<ImageView
android:id="@+id/iv_recently_talk"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_gravity="center_vertical"
tools:src="@drawable/confide_zuijin"
android:layout_marginLeft="15dp"/>
<TextView
android:id="@+id/iv_recently_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="5dp"
android:textSize="18sp"
android:layout_weight="1"
android:textColor="@color/platform_color_666666"
tools:text="最近倾诉"/>
<TextView
android:id="@+id/iv_recently_more"
android:layout_width="41dp"
android:layout_height="19dp"
android:gravity="center"
android:layout_gravity="center"
android:textColor="#b3b3b3"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="3dp"
android:paddingBottom="3dp"
android:layout_marginRight="15dp"
android:textSize="10sp"
android:background="@drawable/confide_bg_radius_line_gray_20"
tools:text="更多"/>
</merge>
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:layout_marginBottom="1dp"
android:layout_marginTop="1dp"
app:cardElevation="1dp"
app:cardCornerRadius="6dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--背景图片-->
<ImageView
android:id="@+id/img_bg"
android:layout_width="116dp"
android:layout_height="116dp"
android:background="@drawable/confidehome_listen_bg" />
<!--播放图片-->
<ImageView
android:id="@+id/img_disc"
android:layout_width="94dp"
android:layout_height="94dp"
android:layout_marginLeft="@dimen/dp_11"
android:layout_marginTop="@dimen/dp_11"
android:background="@drawable/confidehome_listen_disc" />
<ImageView
android:id="@+id/img_play"
android:layout_width="38dp"
android:layout_height="38dp"
android:layout_marginLeft="39dp"
android:layout_marginTop="39dp"
android:background="@drawable/confidehome_listen_play"/>
<!--遮罩图片-->
<ImageView
android:id="@+id/img_mask"
android:layout_width="116dp"
android:layout_height="116dp"
android:background="@drawable/confidehome_listen_mask" />
<TextView
android:id="@+id/tv_isLine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/confidehome_recommend_expert_line_bg"
android:paddingBottom="1dp"
android:paddingLeft="9dp"
android:paddingRight="9dp"
android:paddingTop="1dp"
android:textColor="@color/white"
android:textSize="@dimen/dp_10"
tools:text="在线" />
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="136dp"
android:layout_marginTop="16dp"
android:textColor="#555555"
android:textSize="@dimen/dp_15"
tools:text="姚雨晴" />
<ImageView
android:id="@+id/img_sex"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:layout_marginTop="19dp"
android:layout_toRightOf="@+id/tv_name"
tools:background="@drawable/confidehome_new_male" />
<TextView
android:id="@+id/tv_confide"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/dp_15"
android:layout_marginTop="16dp"
android:gravity="center"
tools:background="@drawable/confidehome_line_1" />
<TextView
android:id="@+id/tv_confideNum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_marginLeft="136dp"
android:layout_marginTop="12dp"
android:textColor="@color/_6"
android:textSize="@dimen/dp_11"
tools:text="8000人" />
<TextView
android:id="@+id/tv_tv_confideNumContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_marginRight="@dimen/dp_16"
android:layout_marginTop="12dp"
android:layout_toRightOf="@+id/tv_confideNum"
android:text="向TA倾诉"
android:textColor="@color/_9"
android:textSize="@dimen/dp_11" />
<TextView
android:id="@+id/tv_Connection"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_marginTop="@dimen/dp_12"
android:layout_toRightOf="@+id/tv_tv_confideNumContent"
android:textColor="@color/_6"
android:textSize="@dimen/dp_11"
tools:text="83%" />
<TextView
android:id="@+id/tv_ConnectionContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_marginTop="@dimen/dp_12"
android:layout_toRightOf="@+id/tv_Connection"
android:text="接通率"
android:textColor="@color/_9"
android:textSize="@dimen/dp_11" />
<View
android:id="@+id/v_line"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_below="@+id/tv_Connection"
android:layout_marginBottom="4dp"
android:layout_marginLeft="136dp"
android:layout_marginRight="@dimen/dp_10"
android:layout_marginTop="4dp"
android:background="@color/confidehome_line" />
<TextView
android:id="@+id/tv_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/v_line"
android:layout_marginLeft="136dp"
android:layout_marginRight="@dimen/dp_15"
android:ellipsize="end"
android:maxLines="2"
android:textColor="@color/_9"
android:textSize="@dimen/dp_11"
tools:text="没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。" />
</RelativeLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/confide_dp_15"
android:layout_marginRight="@dimen/confide_dp_15"
android:layout_marginBottom="1dp"
android:layout_marginTop="1dp"
app:cardElevation="1dp"
app:cardCornerRadius="6dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--背景图片-->
<ImageView
android:id="@+id/img_bg"
android:layout_width="116dp"
android:layout_height="116dp"
android:background="@drawable/confide_listen_bg" />
<!--播放图片-->
<ImageView
android:id="@+id/img_disc"
android:layout_width="94dp"
android:layout_height="94dp"
android:layout_marginLeft="@dimen/confide_dp_11"
android:layout_marginTop="@dimen/confide_dp_11"
android:background="@drawable/confide_listen_disc" />
<ImageView
android:id="@+id/img_play"
android:layout_width="38dp"
android:layout_height="38dp"
android:layout_marginLeft="39dp"
android:layout_marginTop="39dp"
android:background="@drawable/confide_listen_play"/>
<!--遮罩图片-->
<ImageView
android:id="@+id/img_mask"
android:layout_width="116dp"
android:layout_height="116dp"
android:background="@drawable/confide_listen_mask" />
<TextView
android:id="@+id/tv_isLine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/confide_recommend_expert_line_bg"
android:paddingBottom="1dp"
android:paddingLeft="9dp"
android:paddingRight="9dp"
android:paddingTop="1dp"
android:textColor="@color/white"
android:textSize="@dimen/confide_dp_10"
tools:text="在线" />
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="136dp"
android:layout_marginTop="16dp"
android:textColor="#555555"
android:textSize="@dimen/confide_dp_15"
tools:text="姚雨晴" />
<ImageView
android:id="@+id/img_sex"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:layout_marginTop="19dp"
android:layout_toRightOf="@+id/tv_name"
tools:background="@drawable/confide_new_male" />
<TextView
android:id="@+id/tv_confide"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/confide_dp_15"
android:layout_marginTop="16dp"
android:gravity="center"
tools:background="@drawable/confide_line_1" />
<TextView
android:id="@+id/tv_confideNum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_marginLeft="136dp"
android:layout_marginTop="12dp"
android:textColor="@color/_6"
android:textSize="@dimen/confide_dp_11"
tools:text="8000人" />
<TextView
android:id="@+id/tv_tv_confideNumContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_marginRight="@dimen/confide_dp_16"
android:layout_marginTop="12dp"
android:layout_toRightOf="@+id/tv_confideNum"
android:text="向TA倾诉"
android:textColor="@color/_9"
android:textSize="@dimen/confide_dp_11" />
<TextView
android:id="@+id/tv_Connection"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_marginTop="@dimen/confide_dp_12"
android:layout_toRightOf="@+id/tv_tv_confideNumContent"
android:textColor="@color/_6"
android:textSize="@dimen/confide_dp_11"
tools:text="83%" />
<TextView
android:id="@+id/tv_ConnectionContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_name"
android:layout_marginTop="@dimen/confide_dp_12"
android:layout_toRightOf="@+id/tv_Connection"
android:text="接通率"
android:textColor="@color/_9"
android:textSize="@dimen/confide_dp_11" />
<View
android:id="@+id/v_line"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_below="@+id/tv_Connection"
android:layout_marginBottom="4dp"
android:layout_marginLeft="136dp"
android:layout_marginRight="@dimen/confide_dp_10"
android:layout_marginTop="4dp"
android:background="@color/confide_line" />
<TextView
android:id="@+id/tv_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/v_line"
android:layout_marginLeft="136dp"
android:layout_marginRight="@dimen/confide_dp_15"
android:ellipsize="end"
android:maxLines="2"
android:textColor="@color/_9"
android:textSize="@dimen/confide_dp_11"
tools:text="没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cardElevation="0dp"
app:cardCornerRadius="18dp">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/play_head"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:src="@drawable/confidehome_float_head"/>
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:background="@color/platform_divide_color"/>
<ImageView
android:id="@+id/play_state"
android:layout_width="20dp"
android:layout_height="20dp"
android:padding="3dp"
android:layout_gravity="center"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:src="@drawable/confidehome_play_pause"/>
<View
android:id="@+id/hz_divider_line"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:background="@color/platform_divide_color"
android:visibility="gone"/>
<ImageView
android:id="@+id/play_close"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:src="@drawable/confidehome_play_close"
android:visibility="gone"/>
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cardElevation="0dp"
app:cardCornerRadius="18dp">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/play_head"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:src="@drawable/confide_float_head"/>
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:background="@color/platform_divide_color"/>
<ImageView
android:id="@+id/play_state"
android:layout_width="20dp"
android:layout_height="20dp"
android:padding="3dp"
android:layout_gravity="center"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:src="@drawable/confide_play_pause"/>
<View
android:id="@+id/hz_divider_line"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:background="@color/platform_divide_color"
android:visibility="gone"/>
<ImageView
android:id="@+id/play_close"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:src="@drawable/confide_play_close"
android:visibility="gone"/>
</LinearLayout>
</android.support.v7.widget.CardView>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:paddingLeft="4dp"
android:paddingRight="13dp"
xmlns:tools="http://schemas.android.com/tools">
<android.support.v7.widget.CardView
android:id="@+id/cv_icon"
android:layout_width="42dp"
android:layout_height="42dp"
app:cardCornerRadius="21dp"
app:cardElevation="0px">
<ImageView
android:id="@+id/img_icon"
android:layout_width="42dp"
android:layout_height="42dp"
android:scaleType="centerCrop"/>
</android.support.v7.widget.CardView>
<TextView
android:id="@+id/tv_name"
android:layout_toRightOf="@id/cv_icon"
android:layout_marginTop="3dp"
android:layout_marginLeft="12dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15dp"
android:textColor="@color/platform_color_black_333333"
tools:text="黄蓉"/>
<ImageView
android:id="@+id/img_sex"
android:layout_toRightOf="@+id/tv_name"
android:layout_marginTop="5dp"
android:layout_marginLeft="5dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:background="@drawable/confidehome_new_male"/>
<TextView
android:id="@+id/tv_history"
android:layout_toRightOf="@id/cv_icon"
android:layout_below="@+id/tv_name"
android:layout_marginLeft="12dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_10"
android:textColor="@color/platform_color_grey_999999"
tools:text="7月13日 你向TA倾诉过"/>
<TextView
android:id="@+id/tv_again"
android:layout_width="80dp"
android:layout_height="24dp"
android:textSize="12dp"
android:textColor="@color/white"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:gravity="center"
android:background="@drawable/confidehome_recent_btn_on_bg"
android:text="再倾诉一次"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:paddingLeft="4dp"
android:paddingRight="13dp"
xmlns:tools="http://schemas.android.com/tools">
<android.support.v7.widget.CardView
android:id="@+id/cv_icon"
android:layout_width="42dp"
android:layout_height="42dp"
app:cardCornerRadius="21dp"
app:cardElevation="0px">
<ImageView
android:id="@+id/img_icon"
android:layout_width="42dp"
android:layout_height="42dp"
android:scaleType="centerCrop"/>
</android.support.v7.widget.CardView>
<TextView
android:id="@+id/tv_name"
android:layout_toRightOf="@id/cv_icon"
android:layout_marginTop="3dp"
android:layout_marginLeft="12dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15dp"
android:textColor="@color/platform_color_black_333333"
tools:text="黄蓉"/>
<ImageView
android:id="@+id/img_sex"
android:layout_toRightOf="@+id/tv_name"
android:layout_marginTop="5dp"
android:layout_marginLeft="5dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:background="@drawable/confide_new_male"/>
<TextView
android:id="@+id/tv_history"
android:layout_toRightOf="@id/cv_icon"
android:layout_below="@+id/tv_name"
android:layout_marginLeft="12dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_10"
android:textColor="@color/platform_color_grey_999999"
tools:text="7月13日 你向TA倾诉过"/>
<TextView
android:id="@+id/tv_again"
android:layout_width="80dp"
android:layout_height="24dp"
android:textSize="12dp"
android:textColor="@color/white"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:gravity="center"
android:background="@drawable/confide_recent_btn_on_bg"
android:text="再倾诉一次"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="0px"
android:layout_height="1px"
android:layout_weight="1"/>
<View
android:layout_width="13dp"
android:layout_height="2dp"
android:layout_marginTop="46dp"
android:background="#E0E0E0"/>
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="34dp"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:textSize="@dimen/dp_18"
android:textColor="#444444"
tools:text="最佳倾诉榜单"/>
<View
android:layout_width="13dp"
android:layout_height="2dp"
android:layout_marginTop="46dp"
android:background="#E0E0E0"/>
<View
android:layout_width="0px"
android:layout_height="1px"
android:layout_weight="1"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="0px"
android:layout_height="1px"
android:layout_weight="1"/>
<View
android:layout_width="13dp"
android:layout_height="2dp"
android:layout_marginTop="46dp"
android:background="#E0E0E0"/>
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="34dp"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:textSize="@dimen/confide_dp_18"
android:textColor="#444444"
tools:text="最佳倾诉榜单"/>
<View
android:layout_width="13dp"
android:layout_height="2dp"
android:layout_marginTop="46dp"
android:background="#E0E0E0"/>
<View
android:layout_width="0px"
android:layout_height="1px"
android:layout_weight="1"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardElevation="1dp"
app:cardCornerRadius="6dp"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginBottom="2dp">
<FrameLayout
android:id="@+id/ll_layout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/img_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"/>
<TextView
android:id="@id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_14"
android:textColor="@color/white"
android:layout_marginTop="@dimen/dp_12"
android:paddingTop="2dp"
android:paddingBottom="1dp"
android:paddingLeft="@dimen/dp_10"
android:paddingRight="@dimen/dp_10"
android:background="@drawable/confidehome_recommend_expert_title_bg"
tools:text="情感恋爱"/>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_12"
android:layout_marginRight="@dimen/dp_12"
android:layout_marginTop="48dp"
android:layout_marginBottom="@dimen/dp_16"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="6dp"
app:cardElevation="1dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_isLine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="9dp"
android:paddingRight="9dp"
android:paddingTop="1dp"
android:paddingBottom="1dp"
android:textSize="@dimen/dp_10"
android:textColor="@color/white"
android:background="@drawable/confidehome_recommend_expert_line_bg"
tools:text="在线"/>
<android.support.v7.widget.CardView
android:id="@+id/cv_head"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginLeft="@dimen/dp_12"
android:layout_marginTop="@dimen/dp_20"
android:layout_marginBottom="@dimen/dp_20"
app:cardCornerRadius="50dp"
app:cardElevation="0px">
<ImageView
android:id="@+id/img_head"
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="fitXY" />
</android.support.v7.widget.CardView>
<ImageView
android:id="@+id/img_play"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginTop="91dp"
android:layout_marginLeft="84dp"
tools:background="@drawable/confidehome_paused"/>
<TextView
android:id="@+id/tv_name"
android:layout_toRightOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_22"
android:layout_marginLeft="14dp"
android:textSize="@dimen/dp_15"
android:textColor="#555555"
tools:text="姚雨晴"/>
<ImageView
android:id="@+id/img_sex"
android:layout_toRightOf="@+id/tv_name"
android:layout_marginTop="25dp"
android:layout_marginLeft="6dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:background="@drawable/confidehome_new_male"/>
<TextView
android:id="@+id/tv_confideNum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_11"
android:textColor="@color/_6"
android:layout_toRightOf="@+id/cv_head"
android:layout_below="@+id/tv_name"
android:layout_marginLeft="14dp"
android:layout_marginTop="10dp"
tools:text="8000人"/>
<TextView
android:id="@+id/tv_tv_confideNumContent"
android:layout_below="@+id/tv_name"
android:layout_toRightOf="@+id/tv_confideNum"
android:layout_marginTop="10dp"
android:layout_marginRight="@dimen/dp_16"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_11"
android:textColor="@color/_9"
android:text="向TA倾诉"/>
<TextView
android:id="@+id/tv_Connection"
android:layout_below="@+id/tv_name"
android:layout_toRightOf="@+id/tv_tv_confideNumContent"
android:layout_marginTop="@dimen/dp_10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_11"
android:textColor="@color/_6"
tools:text="83%"/>
<TextView
android:id="@+id/tv_ConnectionContent"
android:layout_below="@+id/tv_name"
android:layout_toRightOf="@+id/tv_Connection"
android:layout_marginTop="@dimen/dp_10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_11"
android:textColor="@color/_9"
android:text="接通率"/>
<LinearLayout
android:id="@+id/flowlayout_tag"
android:orientation="horizontal"
android:layout_below="@+id/tv_confideNum"
android:layout_toRightOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="16dp"
android:layout_marginBottom="8dp"
android:layout_marginLeft="@dimen/dp_12"
android:layout_marginRight="@dimen/dp_10"
android:layout_marginTop="4dp" />
<View
android:id="@+id/v_line"
android:layout_below="@+id/flowlayout_tag"
android:layout_toRightOf="@+id/cv_head"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="@dimen/dp_14"
android:layout_marginRight="@dimen/dp_10"
android:layout_marginBottom="4dp"
android:background="@color/confidehome_line"/>
<TextView
android:id="@+id/tv_content"
android:layout_below="@+id/v_line"
android:layout_toRightOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_14"
android:layout_marginRight="@dimen/dp_10"
android:textSize="@dimen/dp_11"
android:textColor="@color/_9"
android:lines="1"
android:ellipsize="end"
tools:text="没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。"/>
</RelativeLayout>
</android.support.v7.widget.CardView>
<TextView
android:id="@+id/tv_confide"
android:layout_width="128dp"
android:layout_height="28dp"
android:layout_marginTop="204dp"
android:layout_marginBottom="@dimen/dp_18"
android:layout_gravity="center_horizontal"
android:textSize="@dimen/dp_12"
android:textColor="@color/white"
android:gravity="center"
android:background="@drawable/confidehome_recommend_expert_btn_bg"
android:text="向TA倾诉"/>
</FrameLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardElevation="1dp"
app:cardCornerRadius="6dp"
android:layout_marginLeft="@dimen/confide_dp_10"
android:layout_marginBottom="2dp">
<FrameLayout
android:id="@+id/ll_layout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/img_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"/>
<TextView
android:id="@id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_14"
android:textColor="@color/white"
android:layout_marginTop="@dimen/confide_dp_12"
android:paddingTop="2dp"
android:paddingBottom="1dp"
android:paddingLeft="@dimen/confide_dp_10"
android:paddingRight="@dimen/confide_dp_10"
android:background="@drawable/confide_recommend_expert_title_bg"
tools:text="情感恋爱"/>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/confide_dp_12"
android:layout_marginRight="@dimen/confide_dp_12"
android:layout_marginTop="48dp"
android:layout_marginBottom="@dimen/confide_dp_16"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="6dp"
app:cardElevation="1dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_isLine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="9dp"
android:paddingRight="9dp"
android:paddingTop="1dp"
android:paddingBottom="1dp"
android:textSize="@dimen/confide_dp_10"
android:textColor="@color/white"
android:background="@drawable/confide_recommend_expert_line_bg"
tools:text="在线"/>
<android.support.v7.widget.CardView
android:id="@+id/cv_head"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginLeft="@dimen/confide_dp_12"
android:layout_marginTop="@dimen/confide_dp_20"
android:layout_marginBottom="@dimen/confide_dp_20"
app:cardCornerRadius="50dp"
app:cardElevation="0px">
<ImageView
android:id="@+id/img_head"
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="fitXY" />
</android.support.v7.widget.CardView>
<ImageView
android:id="@+id/img_play"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginTop="91dp"
android:layout_marginLeft="84dp"
tools:background="@drawable/confide_paused"/>
<TextView
android:id="@+id/tv_name"
android:layout_toRightOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/confide_dp_22"
android:layout_marginLeft="14dp"
android:textSize="@dimen/confide_dp_15"
android:textColor="#555555"
tools:text="姚雨晴"/>
<ImageView
android:id="@+id/img_sex"
android:layout_toRightOf="@+id/tv_name"
android:layout_marginTop="25dp"
android:layout_marginLeft="6dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:background="@drawable/confide_new_male"/>
<TextView
android:id="@+id/tv_confideNum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_6"
android:layout_toRightOf="@+id/cv_head"
android:layout_below="@+id/tv_name"
android:layout_marginLeft="14dp"
android:layout_marginTop="10dp"
tools:text="8000人"/>
<TextView
android:id="@+id/tv_tv_confideNumContent"
android:layout_below="@+id/tv_name"
android:layout_toRightOf="@+id/tv_confideNum"
android:layout_marginTop="10dp"
android:layout_marginRight="@dimen/confide_dp_16"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_9"
android:text="向TA倾诉"/>
<TextView
android:id="@+id/tv_Connection"
android:layout_below="@+id/tv_name"
android:layout_toRightOf="@+id/tv_tv_confideNumContent"
android:layout_marginTop="@dimen/confide_dp_10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_6"
tools:text="83%"/>
<TextView
android:id="@+id/tv_ConnectionContent"
android:layout_below="@+id/tv_name"
android:layout_toRightOf="@+id/tv_Connection"
android:layout_marginTop="@dimen/confide_dp_10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_9"
android:text="接通率"/>
<LinearLayout
android:id="@+id/flowlayout_tag"
android:orientation="horizontal"
android:layout_below="@+id/tv_confideNum"
android:layout_toRightOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="16dp"
android:layout_marginBottom="8dp"
android:layout_marginLeft="@dimen/confide_dp_12"
android:layout_marginRight="@dimen/confide_dp_10"
android:layout_marginTop="4dp" />
<View
android:id="@+id/v_line"
android:layout_below="@+id/flowlayout_tag"
android:layout_toRightOf="@+id/cv_head"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="@dimen/confide_dp_14"
android:layout_marginRight="@dimen/confide_dp_10"
android:layout_marginBottom="4dp"
android:background="@color/confide_line"/>
<TextView
android:id="@+id/tv_content"
android:layout_below="@+id/v_line"
android:layout_toRightOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/confide_dp_14"
android:layout_marginRight="@dimen/confide_dp_10"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_9"
android:lines="1"
android:ellipsize="end"
tools:text="没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。"/>
</RelativeLayout>
</android.support.v7.widget.CardView>
<TextView
android:id="@+id/tv_confide"
android:layout_width="128dp"
android:layout_height="28dp"
android:layout_marginTop="204dp"
android:layout_marginBottom="@dimen/confide_dp_18"
android:layout_gravity="center_horizontal"
android:textSize="@dimen/confide_dp_12"
android:textColor="@color/white"
android:gravity="center"
android:background="@drawable/confide_recommend_expert_btn_bg"
android:text="向TA倾诉"/>
</FrameLayout>
</android.support.v7.widget.CardView>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:paddingTop="14dp"
android:paddingBottom="35dp"
android:paddingLeft="5dp"
android:background="@drawable/confidehome_recommend_expert_bg">
<android.support.v4.view.ViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="250dp"
android:clipChildren="false"
android:layout_marginRight="15dp"/>
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:paddingTop="14dp"
android:paddingBottom="35dp"
android:paddingLeft="5dp"
android:background="@drawable/confide_recommend_expert_bg">
<android.support.v4.view.ViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="250dp"
android:clipChildren="false"
android:layout_marginRight="15dp"/>
</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto">
<!--头像+在线状态-->
<android.support.v7.widget.CardView
android:id="@+id/cv_head"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_marginStart="@dimen/dp_15"
android:layout_marginTop="24.5dp"
android:layout_marginBottom="24dp"
app:cardElevation="1dp"
app:cardCornerRadius="6dp">
<FrameLayout
android:layout_width="96dp"
android:layout_height="96dp">
<ImageView
android:id="@+id/img_head"
android:layout_width="96dp"
android:layout_height="96dp"
android:scaleType="fitXY"/>
<TextView
android:id="@+id/tv_isLine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="9dp"
android:paddingRight="9dp"
android:paddingTop="1dp"
android:paddingBottom="1dp"
android:textSize="@dimen/dp_10"
android:textColor="@color/white"
android:background="@drawable/confidehome_recommend_expert_line_bg"
tools:text="在线"/>
<ImageView
android:id="@+id/iv_play"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="bottom|right"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
tools:background="@drawable/confidehome_paused"/>
</FrameLayout>
</android.support.v7.widget.CardView>
<TextView
android:id="@+id/tv_name"
android:layout_toEndOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24.5dp"
android:layout_marginStart="14dp"
android:textSize="@dimen/dp_15"
android:textColor="#555555"
tools:text="姚雨晴"
tools:ignore="SpUsage" />
<ImageView
android:id="@+id/img_sex"
android:layout_toEndOf="@+id/tv_name"
android:layout_marginTop="29dp"
android:layout_marginStart="6dp"
android:layout_width="13dp"
android:layout_height="13dp"
tools:background="@drawable/confidehome_new_male"/>
<TextView
android:id="@+id/tv_confide"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentEnd="true"
android:layout_marginTop="24.5dp"
android:layout_marginEnd="@dimen/dp_15"
android:gravity="center"
tools:background="@drawable/confidehome_line_1"/>
<TextView
android:id="@+id/tv_confideNum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_11"
android:textColor="@color/_6"
android:layout_toEndOf="@+id/cv_head"
android:layout_below="@+id/tv_name"
android:layout_marginStart="@dimen/dp_12"
android:layout_marginTop="12dp"
tools:text="8000人"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_tv_confideNumContent"
android:layout_below="@+id/tv_name"
android:layout_toEndOf="@+id/tv_confideNum"
android:layout_marginTop="12dp"
android:layout_marginEnd="@dimen/dp_16"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_11"
android:textColor="@color/_9"
android:text="向TA倾诉"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_Connection"
android:layout_below="@+id/tv_name"
android:layout_toEndOf="@+id/tv_tv_confideNumContent"
android:layout_marginTop="@dimen/dp_12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/dp_11"
android:textColor="@color/_6"
tools:text="83%"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_ConnectionContent"
android:layout_below="@+id/tv_name"
android:layout_toEndOf="@+id/tv_Connection"
android:layout_marginTop="@dimen/dp_12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/dp_12"
android:textSize="@dimen/dp_11"
android:textColor="@color/_9"
android:text="接通率"
tools:ignore="SpUsage" />
<LinearLayout
android:id="@+id/flowlayout_tag"
android:orientation="horizontal"
android:layout_below="@+id/tv_Connection"
android:layout_toEndOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="16dp"
android:layout_marginBottom="8dp"
android:layout_marginStart="@dimen/dp_12"
android:layout_marginEnd="@dimen/dp_10"
android:layout_marginTop="4dp" />
<View
android:id="@+id/v_line"
android:layout_below="@+id/flowlayout_tag"
android:layout_toEndOf="@+id/cv_head"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginStart="@dimen/dp_12"
android:layout_marginEnd="@dimen/dp_15"
android:layout_marginBottom="4dp"
android:background="@color/confidehome_line"/>
<TextView
android:id="@+id/tv_content"
android:layout_below="@+id/v_line"
android:layout_toEndOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_12"
android:layout_marginEnd="@dimen/dp_15"
android:textSize="@dimen/dp_11"
android:textColor="@color/_9"
android:lines="1"
android:ellipsize="end"
tools:text="没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_price"
android:layout_below="@+id/tv_content"
android:layout_toEndOf="@+id/cv_head"
android:layout_marginStart="@dimen/dp_12"
android:layout_marginTop="6dp"
android:layout_marginBottom="20dp"
android:textSize="@dimen/dp_18"
android:textColor="#FF5B05"
android:gravity="bottom"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="199"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_priceContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_13"
android:layout_below="@+id/tv_content"
android:layout_toEndOf="@+id/tv_price"
android:textSize="@dimen/dp_11"
android:textColor="#FF5B05"
android:text="元/次"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tvOriginalPrice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_content"
android:layout_toEndOf="@+id/tv_priceContent"
android:layout_marginTop="@dimen/dp_14"
android:layout_marginStart="@dimen/dp_5"
android:textColor="#a2a2a2"
android:textSize="@dimen/dp_10"
tools:ignore="SpUsage"
tools:text="50元/次"/>
<TextView
android:id="@+id/tvCoupon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_12"
android:background="@drawable/confidehome_bg_color_ff5b05"
android:textSize="@dimen/dp_10"
android:textColor="#ff5b05"
android:paddingStart="@dimen/dp_4"
android:paddingEnd="@dimen/dp_4"
android:paddingTop="@dimen/dp_2"
android:paddingBottom="@dimen/dp_2"
tools:text="立减¥30"
tools:ignore="SpUsage" />
<View
android:layout_below="@+id/tv_price"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:background="@color/confidehome_line"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto">
<!--头像+在线状态-->
<android.support.v7.widget.CardView
android:id="@+id/cv_head"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_marginStart="@dimen/confide_dp_15"
android:layout_marginTop="24.5dp"
android:layout_marginBottom="24dp"
app:cardElevation="1dp"
app:cardCornerRadius="6dp">
<FrameLayout
android:layout_width="96dp"
android:layout_height="96dp">
<ImageView
android:id="@+id/img_head"
android:layout_width="96dp"
android:layout_height="96dp"
android:scaleType="fitXY"/>
<TextView
android:id="@+id/tv_isLine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="9dp"
android:paddingRight="9dp"
android:paddingTop="1dp"
android:paddingBottom="1dp"
android:textSize="@dimen/confide_dp_10"
android:textColor="@color/white"
android:background="@drawable/confide_recommend_expert_line_bg"
tools:text="在线"/>
<ImageView
android:id="@+id/iv_play"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="bottom|right"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
tools:background="@drawable/confide_paused"/>
</FrameLayout>
</android.support.v7.widget.CardView>
<TextView
android:id="@+id/tv_name"
android:layout_toEndOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24.5dp"
android:layout_marginStart="14dp"
android:textSize="@dimen/confide_dp_15"
android:textColor="#555555"
tools:text="姚雨晴"
tools:ignore="SpUsage" />
<ImageView
android:id="@+id/img_sex"
android:layout_toEndOf="@+id/tv_name"
android:layout_marginTop="29dp"
android:layout_marginStart="6dp"
android:layout_width="13dp"
android:layout_height="13dp"
tools:background="@drawable/confide_new_male"/>
<TextView
android:id="@+id/tv_confide"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentEnd="true"
android:layout_marginTop="24.5dp"
android:layout_marginEnd="@dimen/confide_dp_15"
android:gravity="center"
tools:background="@drawable/confide_line_1"/>
<TextView
android:id="@+id/tv_confideNum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_6"
android:layout_toEndOf="@+id/cv_head"
android:layout_below="@+id/tv_name"
android:layout_marginStart="@dimen/confide_dp_12"
android:layout_marginTop="12dp"
tools:text="8000人"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_tv_confideNumContent"
android:layout_below="@+id/tv_name"
android:layout_toEndOf="@+id/tv_confideNum"
android:layout_marginTop="12dp"
android:layout_marginEnd="@dimen/confide_dp_16"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_9"
android:text="向TA倾诉"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_Connection"
android:layout_below="@+id/tv_name"
android:layout_toEndOf="@+id/tv_tv_confideNumContent"
android:layout_marginTop="@dimen/confide_dp_12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_6"
tools:text="83%"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_ConnectionContent"
android:layout_below="@+id/tv_name"
android:layout_toEndOf="@+id/tv_Connection"
android:layout_marginTop="@dimen/confide_dp_12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/confide_dp_12"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_9"
android:text="接通率"
tools:ignore="SpUsage" />
<LinearLayout
android:id="@+id/flowlayout_tag"
android:orientation="horizontal"
android:layout_below="@+id/tv_Connection"
android:layout_toEndOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="16dp"
android:layout_marginBottom="8dp"
android:layout_marginStart="@dimen/confide_dp_12"
android:layout_marginEnd="@dimen/confide_dp_10"
android:layout_marginTop="4dp" />
<View
android:id="@+id/v_line"
android:layout_below="@+id/flowlayout_tag"
android:layout_toEndOf="@+id/cv_head"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginStart="@dimen/confide_dp_12"
android:layout_marginEnd="@dimen/confide_dp_15"
android:layout_marginBottom="4dp"
android:background="@color/confide_line"/>
<TextView
android:id="@+id/tv_content"
android:layout_below="@+id/v_line"
android:layout_toEndOf="@+id/cv_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/confide_dp_12"
android:layout_marginEnd="@dimen/confide_dp_15"
android:textSize="@dimen/confide_dp_11"
android:textColor="@color/_9"
android:lines="1"
android:ellipsize="end"
tools:text="没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_price"
android:layout_below="@+id/tv_content"
android:layout_toEndOf="@+id/cv_head"
android:layout_marginStart="@dimen/confide_dp_12"
android:layout_marginTop="6dp"
android:layout_marginBottom="20dp"
android:textSize="@dimen/confide_dp_18"
android:textColor="#FF5B05"
android:gravity="bottom"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="199"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tv_priceContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/confide_dp_13"
android:layout_below="@+id/tv_content"
android:layout_toEndOf="@+id/tv_price"
android:textSize="@dimen/confide_dp_11"
android:textColor="#FF5B05"
android:text="元/次"
tools:ignore="SpUsage" />
<TextView
android:id="@+id/tvOriginalPrice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_content"
android:layout_toEndOf="@+id/tv_priceContent"
android:layout_marginTop="@dimen/confide_dp_14"
android:layout_marginStart="@dimen/confide_dp_5"
android:textColor="#a2a2a2"
android:textSize="@dimen/confide_dp_10"
tools:ignore="SpUsage"
tools:text="50元/次"/>
<TextView
android:id="@+id/tvCoupon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_content"
android:layout_alignParentEnd="true"
android:layout_marginEnd="@dimen/confide_dp_15"
android:layout_marginTop="@dimen/confide_dp_12"
android:background="@drawable/confide_bg_color_ff5b05"
android:textSize="@dimen/confide_dp_10"
android:textColor="#ff5b05"
android:paddingStart="@dimen/confide_dp_4"
android:paddingEnd="@dimen/confide_dp_4"
android:paddingTop="@dimen/confide_dp_2"
android:paddingBottom="@dimen/confide_dp_2"
tools:text="立减¥30"
tools:ignore="SpUsage" />
<View
android:layout_below="@+id/tv_price"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="@dimen/confide_dp_15"
android:layout_marginRight="@dimen/confide_dp_15"
android:background="@color/confide_line"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/confidehome_filters_line" />
<!--之所以要加一层 是因为 要设置白色 背景 但是 TextView改为padding 不好用 比较急 先这样吧-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:id="@+id/tv_sexTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="24dp"
android:layout_marginTop="25dp"
android:textColor="@color/_6"
android:textSize="@dimen/dp_13"
tools:text="性别筛选" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="horizontal">
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/tvSex1"
android:layout_width="0px"
android:layout_height="30dp"
android:layout_marginLeft="24dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:background="@drawable/confidehome_filter_select_nor"
android:gravity="center"
android:orientation="vertical"
android:textColor="@color/confidehome_color_filter_selector"
android:textSize="@dimen/dp_13"
tools:text="只选男生" />
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/tvSex2"
android:layout_width="0px"
android:layout_height="30dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:background="@drawable/confidehome_filter_select_nor"
android:gravity="center"
android:orientation="vertical"
android:textColor="@color/confidehome_color_filter_selector"
android:textSize="@dimen/dp_13"
tools:text="只选女生" />
<TextView
android:layout_width="0px"
android:layout_height="30dp"
android:layout_marginRight="24dp"
android:layout_weight="1"
tools:text="站位用 只为了效果 啦啦啦" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:id="@+id/tv_ageTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="24dp"
android:layout_marginTop="25dp"
android:textColor="@color/_6"
android:textSize="@dimen/dp_13"
tools:text="年龄筛选" />
<android.support.v7.widget.RecyclerView
android:id="@+id/rvAge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="horizontal">
<Button
android:id="@+id/btnReset"
android:layout_width="0px"
android:layout_height="37dp"
android:layout_marginBottom="24dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:background="@drawable/confidehome_filter_reset_btn_bg"
android:text="@string/platform_reset"
android:textColor="@color/platform_main_theme_blue"
android:textSize="@dimen/dp_18" />
<Button
android:id="@+id/btnConfirm"
android:layout_width="0px"
android:layout_height="37dp"
android:layout_marginBottom="24dp"
android:layout_marginLeft="13dp"
android:layout_marginRight="15dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:background="@drawable/confidehome_filter_btn_bg"
android:text="@string/platform_confirm"
android:textColor="@color/white"
android:textSize="@dimen/dp_18" />
</LinearLayout>
<View
android:id="@+id/v_zhezhao"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80000000" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/confide_filters_line" />
<!--之所以要加一层 是因为 要设置白色 背景 但是 TextView改为padding 不好用 比较急 先这样吧-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:id="@+id/tv_sexTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="24dp"
android:layout_marginTop="25dp"
android:textColor="@color/_6"
android:textSize="@dimen/confide_dp_13"
tools:text="性别筛选" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="horizontal">
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/tvSex1"
android:layout_width="0px"
android:layout_height="30dp"
android:layout_marginLeft="24dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:background="@drawable/confide_filter_select_nor"
android:gravity="center"
android:orientation="vertical"
android:textColor="@color/confide_color_filter_selector"
android:textSize="@dimen/confide_dp_13"
tools:text="只选男生" />
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/tvSex2"
android:layout_width="0px"
android:layout_height="30dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:background="@drawable/confide_filter_select_nor"
android:gravity="center"
android:orientation="vertical"
android:textColor="@color/confide_color_filter_selector"
android:textSize="@dimen/confide_dp_13"
tools:text="只选女生" />
<TextView
android:layout_width="0px"
android:layout_height="30dp"
android:layout_marginRight="24dp"
android:layout_weight="1"
tools:text="站位用 只为了效果 啦啦啦" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:id="@+id/tv_ageTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="24dp"
android:layout_marginTop="25dp"
android:textColor="@color/_6"
android:textSize="@dimen/confide_dp_13"
tools:text="年龄筛选" />
<android.support.v7.widget.RecyclerView
android:id="@+id/rvAge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="horizontal">
<Button
android:id="@+id/btnReset"
android:layout_width="0px"
android:layout_height="37dp"
android:layout_marginBottom="24dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:background="@drawable/confide_filter_reset_btn_bg"
android:text="@string/platform_reset"
android:textColor="@color/confide_main_theme"
android:textSize="@dimen/confide_dp_18" />
<Button
android:id="@+id/btnConfirm"
android:layout_width="0px"
android:layout_height="37dp"
android:layout_marginBottom="24dp"
android:layout_marginLeft="13dp"
android:layout_marginRight="15dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:background="@drawable/confide_filter_btn_bg"
android:text="@string/platform_confirm"
android:textColor="@color/white"
android:textSize="@dimen/confide_dp_18" />
</LinearLayout>
<View
android:id="@+id/v_zhezhao"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80000000" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:orientation="vertical">
<TextView
android:id="@+id/tvSort"
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center_vertical"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
tools:text="智能排序" />
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
android:background="@color/confidehome_line"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:orientation="vertical">
<TextView
android:id="@+id/tvSort"
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center_vertical"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
tools:text="智能排序" />
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
android:background="@color/confide_line"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/confidehome_filters_line"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/rvSortItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white" />
<View
android:id="@+id/v_zhezhao"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80000000"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/confide_filters_line"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/rvSortItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white" />
<View
android:id="@+id/v_zhezhao"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80000000"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="48dp">
<View
android:id="@+id/v_bg"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@drawable/confidehome_common_bg"/>
<LinearLayout
android:id="@+id/ll_bar_root"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="48dp">
<ImageView
android:id="@+id/img_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:background="@drawable/confidehome_back"/>
<TextView
android:id="@+id/tv_title"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textSize="17dp"
android:textColor="#FFFFFF"
android:text="@string/confidehome_title"/>
<ImageView
android:id="@+id/img_mine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:background="@drawable/confidehome_mine"/>
</LinearLayout>
</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@drawable/confide_common_bg"
android:id="@+id/rl_confide_title_layout"
>
<LinearLayout
android:id="@+id/ll_bar_root"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="48dp">
<ImageView
android:id="@+id/img_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:background="@drawable/confide_back"/>
<TextView
android:id="@+id/tv_title"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textSize="17dp"
android:textColor="#FFFFFF"
android:text="@string/confide_title"/>
<ImageView
android:id="@+id/img_mine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:background="@drawable/confide_mine"/>
</LinearLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="confidehome_line">#F0F0F0</color>
<color name="confidehome_filters_line">#E0E0E0</color>
<color name="confidehome_category_bg">#FAFAFA</color>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="confidehome_title">即时倾诉</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="color_242424">#242424</color>
<color name="new_divide_color">#f0f0f0</color>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="confide_color_242424">#242424</color>
<color name="confide_new_divide_color">#f0f0f0</color>
<color name="confide_line">#F0F0F0</color>
<color name="confide_filters_line">#E0E0E0</color>
<color name="confide_category_bg">#FAFAFA</color>
</resources>
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<!--分割线粗细-->
<dimen name="divide_line_stroke_width">0.5dp</dimen>
<!--距离部分-->
<dimen name="default_dis_size_nano">2dp</dimen>
<dimen name="default_dis_size_micro">4dp</dimen>
<dimen name="default_dis_size_small">6dp</dimen>
<dimen name="default_dis_size">8dp</dimen>
<dimen name="default_dis_size_big">10dp</dimen>
<dimen name="default_dis_size_large">12dp</dimen>
<dimen name="default_dis_size_huge">14dp</dimen>
<dimen name="default_dis_size_huge_more">16dp</dimen>
<!--字体大小部分-->
<dimen name="default_text_size_micro">8sp</dimen>
<dimen name="default_text_size_little">10sp</dimen>
<dimen name="default_text_size_small">12sp</dimen>
<dimen name="default_text_size">14sp</dimen>
<dimen name="default_text_size_big">16sp</dimen>
<dimen name="default_text_size_large">18sp</dimen>
<!--TitleBar高度-->
<dimen name="title_bar_height">45dp</dimen>
<dimen name="action_bar_height">48dip</dimen>
<!--JumpTextView部分-->
<dimen name="jump_text_view_min_height">55dp</dimen>
<dimen name="jump_text_view_icon_size">25dp</dimen>
<!-- dialog -->
<dimen name="normal_text_size">16sp</dimen>
<dimen name="big_text_size">17sp</dimen>
<dimen name="light_line_size">1px</dimen>
<dimen name="dialog_padding_vertical">20dip</dimen>
<dimen name="custom_dialog_padding_vertical">15dip</dimen>
<dimen name="dark_line_size">3px</dimen>
<dimen name="dialog_text_margin_horizontal">15dip</dimen>
<dimen name="very_samll_text_size">9sp</dimen>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<!--动态-->
<!--顶部title Size-->
<dimen name="title_height">45dp</dimen>
<dimen name="title_txt_sp">20sp</dimen>
<!-- map -->
<dimen name="chatroom_head_height">200dp</dimen>
<dimen name="dp_1">1dp</dimen>
<dimen name="dp_2">2dp</dimen>
<dimen name="dp_3">3dp</dimen>
<dimen name="dp_4">4dp</dimen>
<dimen name="dp_5">5dp</dimen>
<dimen name="dp_6">6dp</dimen>
<dimen name="dp_7">7dp</dimen>
<dimen name="dp_8">8dp</dimen>
<dimen name="dp_9">9dp</dimen>
<dimen name="dp_10">10dp</dimen>
<dimen name="dp_11">11dp</dimen>
<dimen name="dp_12">12dp</dimen>
<dimen name="dp_13">13dp</dimen>
<dimen name="dp_14">14dp</dimen>
<dimen name="dp_15">15dp</dimen>
<dimen name="dp_16">16dp</dimen>
<dimen name="dp_17">17dp</dimen>
<dimen name="dp_18">18dp</dimen>
<dimen name="dp_19">19dp</dimen>
<dimen name="dp_20">20dp</dimen>
<dimen name="dp_21">21dp</dimen>
<dimen name="dp_22">22dp</dimen>
<dimen name="dp_23">23dp</dimen>
<dimen name="dp_24">24dp</dimen>
<dimen name="dp_25">25dp</dimen>
<dimen name="dp_26">26dp</dimen>
<dimen name="dp_27">27dp</dimen>
<dimen name="dp_28">28dp</dimen>
<dimen name="dp_29">29dp</dimen>
<dimen name="dp_30">30dp</dimen>
<dimen name="dp_31">31dp</dimen>
<dimen name="dp_32">32dp</dimen>
<dimen name="dp_33">33dp</dimen>
<dimen name="dp_34">34dp</dimen>
<dimen name="dp_35">35dp</dimen>
<dimen name="dp_36">36dp</dimen>
<dimen name="dp_37">37dp</dimen>
<dimen name="dp_38">38dp</dimen>
<dimen name="dp_48">48dp</dimen>
<dimen name="dp_60">60dp</dimen>
<dimen name="dp_64">64dp</dimen>
<dimen name="dp_88">88dp</dimen>
<dimen name="dp_99">99dp</dimen>
<dimen name="dp_115">115dp</dimen>
<dimen name="dp_127">127dp</dimen>
<dimen name="head_size_big">72dp</dimen>
</resources>
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<!--分割线粗细-->
<dimen name="confide_divide_line_stroke_width">0.5dp</dimen>
<!--距离部分-->
<dimen name="confide_default_dis_size_nano">2dp</dimen>
<dimen name="confide_default_dis_size_micro">4dp</dimen>
<dimen name="confide_default_dis_size_small">6dp</dimen>
<dimen name="confide_default_dis_size">8dp</dimen>
<dimen name="confide_default_dis_size_big">10dp</dimen>
<dimen name="confide_default_dis_size_large">12dp</dimen>
<dimen name="confide_default_dis_size_huge">14dp</dimen>
<dimen name="confide_default_dis_size_huge_more">16dp</dimen>
<!--字体大小部分-->
<dimen name="confide_default_text_size_micro">8sp</dimen>
<dimen name="confide_default_text_size_little">10sp</dimen>
<dimen name="confide_default_text_size_small">12sp</dimen>
<dimen name="confide_default_text_size">14sp</dimen>
<dimen name="confide_default_text_size_big">16sp</dimen>
<dimen name="confide_default_text_size_large">18sp</dimen>
<!--TitleBar高度-->
<dimen name="confide_title_bar_height">45dp</dimen>
<dimen name="confide_action_bar_height">48dip</dimen>
<!--JumpTextView部分-->
<dimen name="confide_jump_text_view_min_height">55dp</dimen>
<dimen name="confide_jump_text_view_icon_size">25dp</dimen>
<!-- dialog -->
<dimen name="confide_normal_text_size">16sp</dimen>
<dimen name="confide_big_text_size">17sp</dimen>
<dimen name="confide_light_line_size">1px</dimen>
<dimen name="confide_dialog_padding_vertical">20dip</dimen>
<dimen name="confide_custom_dialog_padding_vertical">15dip</dimen>
<dimen name="confide_dark_line_size">3px</dimen>
<dimen name="confide_dialog_text_margin_horizontal">15dip</dimen>
<dimen name="confide_very_samll_text_size">9sp</dimen>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="confide_activity_horizontal_margin">16dp</dimen>
<dimen name="confide_activity_vertical_margin">16dp</dimen>
<!--动态-->
<!--顶部title Size-->
<dimen name="confide_title_height">45dp</dimen>
<dimen name="confide_title_txt_sp">20sp</dimen>
<!-- map -->
<dimen name="confide_chatroom_head_height">200dp</dimen>
<dimen name="confide_dp_1">1dp</dimen>
<dimen name="confide_dp_2">2dp</dimen>
<dimen name="confide_dp_3">3dp</dimen>
<dimen name="confide_dp_4">4dp</dimen>
<dimen name="confide_dp_5">5dp</dimen>
<dimen name="confide_dp_6">6dp</dimen>
<dimen name="confide_dp_7">7dp</dimen>
<dimen name="confide_dp_8">8dp</dimen>
<dimen name="confide_dp_9">9dp</dimen>
<dimen name="confide_dp_10">10dp</dimen>
<dimen name="confide_dp_11">11dp</dimen>
<dimen name="confide_dp_12">12dp</dimen>
<dimen name="confide_dp_13">13dp</dimen>
<dimen name="confide_dp_14">14dp</dimen>
<dimen name="confide_dp_15">15dp</dimen>
<dimen name="confide_dp_16">16dp</dimen>
<dimen name="confide_dp_17">17dp</dimen>
<dimen name="confide_dp_18">18dp</dimen>
<dimen name="confide_dp_19">19dp</dimen>
<dimen name="confide_dp_20">20dp</dimen>
<dimen name="confide_dp_21">21dp</dimen>
<dimen name="confide_dp_22">22dp</dimen>
<dimen name="confide_dp_23">23dp</dimen>
<dimen name="confide_dp_24">24dp</dimen>
<dimen name="confide_dp_25">25dp</dimen>
<dimen name="confide_dp_26">26dp</dimen>
<dimen name="confide_dp_27">27dp</dimen>
<dimen name="confide_dp_28">28dp</dimen>
<dimen name="confide_dp_29">29dp</dimen>
<dimen name="confide_dp_30">30dp</dimen>
<dimen name="confide_dp_31">31dp</dimen>
<dimen name="confide_dp_32">32dp</dimen>
<dimen name="confide_dp_33">33dp</dimen>
<dimen name="confide_dp_34">34dp</dimen>
<dimen name="confide_dp_35">35dp</dimen>
<dimen name="confide_dp_36">36dp</dimen>
<dimen name="confide_dp_37">37dp</dimen>
<dimen name="confide_dp_38">38dp</dimen>
<dimen name="confide_dp_48">48dp</dimen>
<dimen name="confide_dp_60">60dp</dimen>
<dimen name="confide_dp_64">64dp</dimen>
<dimen name="confide_dp_88">88dp</dimen>
<dimen name="confide_dp_99">99dp</dimen>
<dimen name="confide_dp_115">115dp</dimen>
<dimen name="confide_dp_127">127dp</dimen>
<dimen name="confide_head_size_big">72dp</dimen>
</resources>
<resources>
<string name="app_name">PhoneCall</string>
</resources>
<resources>
<string name="confide_app_name">PhoneCall</string>
<string name="confide_title">即时倾诉</string>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="confide_NoTitleTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:windowActionBar">false</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="colorPrimary">@color/confide_main_theme</item>
<item name="colorPrimaryDark">@color/confide_main_theme</item>
<item name="colorAccent">@color/confide_main_theme</item>
</style>
</resources>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<!--主题色-->
<color name="confide_main_theme">#fdbd00</color>
<!--主题浅色-->
<color name="confide_main_theme_light">#FFEC8C</color>
<color name="confide_main_theme_light">#FCDA42</color>
<!--主题亮色-->
<color name="confide_main_theme_bright">#fffae0</color>
<!--确认按钮背景颜色-->
......
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