Commit 78fca931 by 霍志良

feat:对接接口,配合服务端红点消失隐藏的需求

parent ab9603dd
...@@ -8,6 +8,7 @@ import com.ydl.ydlnet.YDLHttpUtils ...@@ -8,6 +8,7 @@ import com.ydl.ydlnet.YDLHttpUtils
import com.yidianling.im.api.bean.IMExpertBuild import com.yidianling.im.api.bean.IMExpertBuild
import com.yidianling.im.bean.* import com.yidianling.im.bean.*
import io.reactivex.Observable import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.* import retrofit2.http.*
/** /**
...@@ -102,4 +103,7 @@ interface ImRetrofitApi { ...@@ -102,4 +103,7 @@ interface ImRetrofitApi {
@Headers(YDL_DOMAIN+ YDL_DOMAIN_JAVA) @Headers(YDL_DOMAIN+ YDL_DOMAIN_JAVA)
fun getPushConfideStatus(@Query("uid") uid: String, @Query("listenerUid") listenerUid: String): Observable<BaseAPIResponse<PushConfideStatusBean>> fun getPushConfideStatus(@Query("uid") uid: String, @Query("listenerUid") listenerUid: String): Observable<BaseAPIResponse<PushConfideStatusBean>>
@POST("lingxi/asistant/buryRedPoint")
@Headers(YDL_DOMAIN+ YDL_DOMAIN_JAVA)
fun imBuryRedPoints(@Body body: RequestBody): Observable<BaseAPIResponse<Any>>
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ import android.content.Intent; ...@@ -6,6 +6,7 @@ import android.content.Intent;
import android.text.TextUtils; import android.text.TextUtils;
import android.view.View; import android.view.View;
import com.google.gson.Gson;
import com.netease.nimlib.sdk.NIMClient; import com.netease.nimlib.sdk.NIMClient;
import com.netease.nimlib.sdk.RequestCallback; import com.netease.nimlib.sdk.RequestCallback;
import com.netease.nimlib.sdk.StatusCode; import com.netease.nimlib.sdk.StatusCode;
...@@ -19,12 +20,15 @@ import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum; ...@@ -19,12 +20,15 @@ import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum;
import com.netease.nimlib.sdk.msg.model.IMMessage; import com.netease.nimlib.sdk.msg.model.IMMessage;
import com.netease.nimlib.sdk.team.constant.TeamTypeEnum; import com.netease.nimlib.sdk.team.constant.TeamTypeEnum;
import com.netease.nimlib.sdk.team.model.Team; import com.netease.nimlib.sdk.team.model.Team;
import com.ydl.ydlcommon.data.http.RxUtils;
import com.ydl.ydlcommon.data.http.UpLoadLogUtils; import com.ydl.ydlcommon.data.http.UpLoadLogUtils;
import com.ydl.ydlcommon.utils.log.LogHelper; import com.ydl.ydlcommon.utils.log.LogHelper;
import com.ydl.ydlcommon.view.dialog.CommonDialog; import com.ydl.ydlcommon.view.dialog.CommonDialog;
import com.yidianling.avchatkit.TeamAVChatProfile; import com.yidianling.avchatkit.TeamAVChatProfile;
import com.yidianling.common.tools.LogUtil;
import com.yidianling.common.tools.ToastUtil; import com.yidianling.common.tools.ToastUtil;
import com.yidianling.im.R; import com.yidianling.im.R;
import com.yidianling.im.http.ImRetrofitApi;
import com.yidianling.im.router.ImIn; import com.yidianling.im.router.ImIn;
import com.yidianling.im.session.action.AVChatAction; import com.yidianling.im.session.action.AVChatAction;
import com.yidianling.im.session.action.H5VideoAction; import com.yidianling.im.session.action.H5VideoAction;
...@@ -93,10 +97,12 @@ import com.yidianling.im.session.viewholder.MsgViewHolderSticker; ...@@ -93,10 +97,12 @@ import com.yidianling.im.session.viewholder.MsgViewHolderSticker;
import com.yidianling.im.session.viewholder.MsgViewHolderSubscriptTime; import com.yidianling.im.session.viewholder.MsgViewHolderSubscriptTime;
import com.yidianling.im.session.viewholder.MsgViewHolderSystemTips; import com.yidianling.im.session.viewholder.MsgViewHolderSystemTips;
import com.yidianling.im.session.viewholder.MsgViewHolderTip; import com.yidianling.im.session.viewholder.MsgViewHolderTip;
import com.yidianling.im.ui.param.BuryRedPointsParm;
import com.yidianling.nimbase.api.model.session.SessionCustomization; import com.yidianling.nimbase.api.model.session.SessionCustomization;
import com.yidianling.nimbase.api.model.session.SessionEventListener; import com.yidianling.nimbase.api.model.session.SessionEventListener;
import com.yidianling.nimbase.business.session.actions.BaseAction; import com.yidianling.nimbase.business.session.actions.BaseAction;
import com.yidianling.nimbase.impl.cache.TeamDataCache; import com.yidianling.nimbase.impl.cache.TeamDataCache;
import com.yidianling.uikit.business.session.activity.YDLP2PMessageActivity;
import com.yidianling.user.api.bean.UserResponseBean; import com.yidianling.user.api.bean.UserResponseBean;
import com.yidianling.uikit.api.NimUIKit; import com.yidianling.uikit.api.NimUIKit;
import com.yidianling.uikit.business.session.actions.ImageAction; import com.yidianling.uikit.business.session.actions.ImageAction;
...@@ -107,8 +113,15 @@ import com.yidianling.uikit.business.team.model.TeamRequestCode; ...@@ -107,8 +113,15 @@ import com.yidianling.uikit.business.team.model.TeamRequestCode;
import com.yidianling.uikit.custom.bridge.ActionHandlerStorage; import com.yidianling.uikit.custom.bridge.ActionHandlerStorage;
import com.yidianling.uikit.custom.bridge.IP2PCustomActionHandler; import com.yidianling.uikit.custom.bridge.IP2PCustomActionHandler;
import java.util.ArrayList; import java.util.ArrayList;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
import okhttp3.MediaType;
import okhttp3.RequestBody;
/** /**
* UIKit自定义消息界面用法展示类 * UIKit自定义消息界面用法展示类
*/ */
...@@ -126,7 +139,6 @@ public class SessionHelper { ...@@ -126,7 +139,6 @@ public class SessionHelper {
private static int last_user_type = -2; private static int last_user_type = -2;
public static void init() { public static void init() {
// 注册自定义消息附件解析器 // 注册自定义消息附件解析器
NIMClient.getService(MsgService.class).registerCustomAttachmentParser(new CustomAttachParser()); NIMClient.getService(MsgService.class).registerCustomAttachmentParser(new CustomAttachParser());
...@@ -140,6 +152,8 @@ public class SessionHelper { ...@@ -140,6 +152,8 @@ public class SessionHelper {
LogHelper.Companion.getInstance().writeLogSync("开启聊天:" LogHelper.Companion.getInstance().writeLogSync("开启聊天:"
+ "user_type = " + user_type + "user_type = " + user_type
+ ", account = " + account); + ", account = " + account);
//只要打开聊天页面,就请求接口,服务端用来判断消息红点显示隐藏
notifyRedPoint(context, account, ImIn.INSTANCE.getUserInfo().getUid());
StatusCode status = NIMClient.getStatus(); StatusCode status = NIMClient.getStatus();
if (status == StatusCode.UNLOGIN) { if (status == StatusCode.UNLOGIN) {
RequestCallback<LoginInfo> callback = new RequestCallback<LoginInfo>() { RequestCallback<LoginInfo> callback = new RequestCallback<LoginInfo>() {
...@@ -195,6 +209,24 @@ public class SessionHelper { ...@@ -195,6 +209,24 @@ public class SessionHelper {
} }
} }
/*
* 通知服务端红点
* */
private static void notifyRedPoint(Context context, String assistantUid, String userId) {
String str = new Gson().toJson(new BuryRedPointsParm(assistantUid, userId));
RequestBody body = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), str);
Disposable subscribe = ImRetrofitApi.Companion.getImRetrofitApi().imBuryRedPoints(body)
.compose(RxUtils.INSTANCE.resultJavaData())
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(it -> {
LogUtil.e("redPointsSuccess");
}, throwable ->
LogUtil.e(throwable.getMessage())
);
}
public static void startTeamSession(Context context, String tid) { public static void startTeamSession(Context context, String tid) {
startTeamSession(context, tid, null, null); startTeamSession(context, tid, null, null);
} }
......
package com.yidianling.im.ui.param
/**
* @author huozhiliang
* @描述:
* @Copyright Copyright (c) 2018
* @Company 壹点灵
* @date 2020/9/8
*/
class BuryRedPointsParm (assistantUid :String,userId:String)
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/im_custom_message_round_white_6dp_bg" android:background="@drawable/im_custom_message_round_white_6dp_bg"
android:padding="@dimen/platform_dp_10" android:orientation="vertical"
android:orientation="vertical"> android:padding="@dimen/platform_dp_10">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/platform_dp_10"
android:text="为你推荐了一位咨询师,快去看看吧!" android:text="为你推荐了一位咨询师,快去看看吧!"
android:textSize="12sp"
android:textColor="@color/color_9f9f9f" android:textColor="@color/color_9f9f9f"
android:layout_marginEnd="@dimen/platform_dp_10" android:textSize="12sp" />
>
</TextView>
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/platform_dp_6" android:layout_marginTop="@dimen/platform_dp_6"
android:background="@drawable/im_custom_message_round_f7f7f7_4dp_bg" android:background="@drawable/im_custom_message_round_f7f7f7_4dp_bg">
>
<FrameLayout <FrameLayout
android:layout_width="200dp" android:layout_width="200dp"
android:layout_height="230dp" android:layout_height="230dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
> app:layout_constraintTop_toTopOf="parent">
<FrameLayout <FrameLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<ImageView <ImageView
android:layout_width="200dp"
android:layout_height="200dp"
android:id="@+id/expert_Img" android:id="@+id/expert_Img"
> android:layout_width="200dp"
</ImageView> android:layout_height="200dp" />
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingBottom="@dimen/dp_40" android:paddingBottom="@dimen/dp_40">
>
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="100dp" android:layout_height="100dp"
android:background="@drawable/im_message_shader_bg"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
app:layout_constraintBottom_toBottomOf="parent" android:background="@drawable/im_message_shader_bg"
> app:layout_constraintBottom_toBottomOf="parent">
<TextView <TextView
android:id="@+id/expertName"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="名字" android:layout_marginStart="@dimen/platform_dp_10"
android:layout_marginTop="@dimen/platform_dp_38" android:layout_marginTop="@dimen/platform_dp_38"
android:text="名字"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="@dimen/im_text_size_15" android:textSize="@dimen/im_text_size_15"
android:id="@+id/expertName"
android:layout_marginStart="@dimen/platform_dp_10"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent" />
>
</TextView>
<TextView <TextView
android:id="@+id/expertSecondTitle" android:id="@+id/expertSecondTitle"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintStart_toEndOf="@id/expertName"
app:layout_constraintBottom_toBottomOf="@id/expertName"
android:textSize="@dimen/platform_sp_12"
android:text="二级心理咨询师二级心理咨询师二级心理咨询师"
android:layout_marginEnd="@dimen/platform_dp_5"
app:layout_constraintEnd_toEndOf="parent"
android:textColor="@color/white"
android:layout_marginStart="@dimen/platform_dp_8" android:layout_marginStart="@dimen/platform_dp_8"
android:maxLines="1" android:layout_marginEnd="@dimen/platform_dp_5"
android:ellipsize="end" android:ellipsize="end"
> android:maxLines="1"
</TextView> android:text="二级心理咨询师二级心理咨询师二级心理咨询师"
android:textColor="@color/white"
android:textSize="@dimen/platform_sp_12"
app:layout_constraintBottom_toBottomOf="@id/expertName"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/expertName" />
<android.support.v7.widget.RecyclerView <android.support.v7.widget.RecyclerView
android:id="@+id/expertTagRV"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/platform_dp_10"
android:layout_marginTop="@dimen/platform_dp_6" android:layout_marginTop="@dimen/platform_dp_6"
android:layout_marginBottom="@dimen/platform_dp_22" android:layout_marginBottom="@dimen/platform_dp_22"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/expertName"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:orientation="horizontal" android:orientation="horizontal"
app:layoutManager="android.support.v7.widget.LinearLayoutManager" app:layoutManager="android.support.v7.widget.LinearLayoutManager"
android:id="@+id/expertTagRV" app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginStart="@dimen/platform_dp_10" app:layout_constraintEnd_toEndOf="parent"
> app:layout_constraintStart_toStartOf="parent"
</android.support.v7.widget.RecyclerView> app:layout_constraintTop_toBottomOf="@id/expertName" />
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>
...@@ -102,163 +98,157 @@ ...@@ -102,163 +98,157 @@
<RelativeLayout <RelativeLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="@dimen/platform_dp_6" android:paddingBottom="@dimen/platform_dp_6">
>
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/im_custom_message_round_white_4dp_bg"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginStart="@dimen/platform_dp_6" android:layout_marginStart="@dimen/platform_dp_6"
android:layout_marginEnd="@dimen/platform_dp_6" android:layout_marginEnd="@dimen/platform_dp_6"
android:paddingStart="@dimen/platform_dp_8" android:background="@drawable/im_custom_message_round_white_4dp_bg"
> android:paddingStart="@dimen/platform_dp_8">
<TextView <TextView
android:id="@+id/scoreExpert"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="4.9"
android:id="@+id/scoreExpert"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:includeFontPadding="false"
android:padding="0dp"
android:layout_marginTop="@dimen/platform_dp_8" android:layout_marginTop="@dimen/platform_dp_8"
android:textSize="17sp"
android:fontFamily="@font/platform_din_bold" android:fontFamily="@font/platform_din_bold"
android:includeFontPadding="false"
android:padding="0dp"
android:text="4.9"
android:textColor="@color/im_color_FF5040" android:textColor="@color/im_color_FF5040"
android:textSize="17sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/m_im_ll_feedbackRate" app:layout_constraintTop_toBottomOf="@id/m_im_ll_feedbackRate"
> app:layout_constraintTop_toTopOf="parent" />
</TextView>
<TextView <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0000人评价" android:layout_marginBottom="@dimen/platform_dp_8"
android:textSize="7sp" android:gravity="center"
android:id="@+id/commentCount"
app:layout_constraintTop_toBottomOf="@id/scoreExpert"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="@id/scoreExpert" app:layout_constraintLeft_toLeftOf="@id/scoreExpert"
android:drawableRight="@drawable/im_arrow_right_4dp" app:layout_constraintTop_toBottomOf="@id/scoreExpert">
<TextView
android:id="@+id/commentCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/platform_dp_3"
android:backgroundTint="@color/color_666666" android:backgroundTint="@color/color_666666"
android:layout_marginBottom="@dimen/platform_dp_8" android:includeFontPadding="false"
> android:text="0000人评价"
</TextView> android:textSize="8sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/im_arrow_right_4dp" />
</LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/m_im_ll_feedbackRate" android:id="@+id/m_im_ll_feedbackRate"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintLeft_toRightOf="@id/scoreExpert"
app:layout_constraintBottom_toBottomOf="@id/scoreExpert"
android:layout_marginLeft="@dimen/platform_dp_4" android:layout_marginLeft="@dimen/platform_dp_4"
android:layout_marginBottom="@dimen/platform_dp_4" android:layout_marginBottom="@dimen/platform_dp_4"
> android:orientation="horizontal"
</LinearLayout> app:layout_constraintBottom_toBottomOf="@id/scoreExpert"
app:layout_constraintLeft_toRightOf="@id/scoreExpert" />
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/m_im_ll_feedbackRate" app:layout_constraintStart_toEndOf="@id/m_im_ll_feedbackRate"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent">
app:layout_constraintBottom_toBottomOf="parent"
android:orientation="horizontal"
>
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="2"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center"
android:layout_marginRight="@dimen/platform_dp_5" android:layout_marginRight="@dimen/platform_dp_5"
> android:layout_weight="2"
android:gravity="center"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/cerfiticateYear"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="999"
android:textSize="14sp"
android:fontFamily="@font/platform_din_bold" android:fontFamily="@font/platform_din_bold"
android:text="999"
android:textColor="@color/im_color_242424" android:textColor="@color/im_color_242424"
android:id="@+id/cerfiticateYear" android:textSize="14sp" />
>
</TextView>
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="持证年限"
android:textSize="6sp"
android:layout_marginTop="@dimen/platform_dp_2" android:layout_marginTop="@dimen/platform_dp_2"
android:text="持证年限"
android:textColor="@color/color_666666" android:textColor="@color/color_666666"
/> android:textSize="6sp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="2"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center"
android:layout_marginRight="@dimen/platform_dp_4" android:layout_marginRight="@dimen/platform_dp_4"
> android:layout_weight="2"
android:gravity="center"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/serviceCount"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="999"
android:textSize="14sp"
android:fontFamily="@font/platform_din_bold" android:fontFamily="@font/platform_din_bold"
android:text="999"
android:textColor="@color/im_color_242424" android:textColor="@color/im_color_242424"
android:id="@+id/serviceCount" android:textSize="14sp" />
>
</TextView>
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="服务人数"
android:textSize="6sp"
android:layout_marginTop="@dimen/platform_dp_2" android:layout_marginTop="@dimen/platform_dp_2"
android:text="服务人数"
android:textColor="@color/color_666666" android:textColor="@color/color_666666"
/> android:textSize="6sp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="3"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:layout_weight="3"
android:gravity="center" android:gravity="center"
> android:orientation="vertical">
<TextView <TextView
android:id="@+id/serviceTime"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="999"
android:textSize="14sp"
android:fontFamily="@font/platform_din_bold" android:fontFamily="@font/platform_din_bold"
android:text="999"
android:textColor="@color/im_color_242424" android:textColor="@color/im_color_242424"
android:id="@+id/serviceTime" android:textSize="14sp" />
>
</TextView>
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="服务时长(小时)"
android:textSize="6sp"
android:layout_marginTop="@dimen/platform_dp_2" android:layout_marginTop="@dimen/platform_dp_2"
android:text="服务时长(小时)"
android:textColor="@color/color_666666" android:textColor="@color/color_666666"
/> android:textSize="6sp" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>
</RelativeLayout> </RelativeLayout>
</FrameLayout> </FrameLayout>
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>
</LinearLayout> </LinearLayout>
\ No newline at end of file
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