Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
dae7daba
Commit
dae7daba
authored
Jun 04, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/4.2.40(复联迁移)' into 4.2.40(复联迁移)
parents
7b03f3b9
a8fcd685
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
298 additions
and
278 deletions
+298
-278
build.gradle
app/build.gradle
+1
-0
WVClickAbstractListener.java
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
+4
-1
config.gradle
config.gradle
+4
-4
ExpertSearchAdapter.kt
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
+4
-2
IMServiceImpl.kt
m-im/src/main/java/com/yidianling/im/modular/service/IMServiceImpl.kt
+7
-9
MsgViewHolderConfirmOrder.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderConfirmOrder.java
+5
-3
MsgViewHolderOrderAlreadyDone.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderOrderAlreadyDone.java
+0
-3
ExpertConsultServiceItemView.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
+14
-5
im_expert_consult_service_item_view.xml
m-im/src/main/res/layout/im_expert_consult_service_item_view.xml
+14
-3
im_ui_message_modify_time.xml
m-im/src/main/res/layout/im_ui_message_modify_time.xml
+54
-54
im_ui_message_modify_time_rec.xml
m-im/src/main/res/layout/im_ui_message_modify_time_rec.xml
+52
-53
im_ui_message_received_money.xml
m-im/src/main/res/layout/im_ui_message_received_money.xml
+68
-69
im_ui_message_subscript_time.xml
m-im/src/main/res/layout/im_ui_message_subscript_time.xml
+71
-72
No files found.
app/build.gradle
View file @
dae7daba
...
...
@@ -211,6 +211,7 @@ dependencies {
implementation
project
(
':m-muse'
)
implementation
project
(
':m-im'
)
implementation
modularPublication
(
'com.ydl:m-im-api'
)
implementation
project
(
':m-dynamic'
)
implementation
project
(
':m-course'
)
//文章模块
...
...
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
View file @
dae7daba
...
...
@@ -8,7 +8,9 @@ import com.ydl.confide.api.IConfideService;
import
com.ydl.webview.H5JsBean
;
import
com.ydl.webview.H5Params
;
import
com.ydl.webview.NewH5Activity
;
import
com.ydl.ydlcommon.modular.ModularServiceManager
;
import
com.yidianling.common.tools.LogUtil
;
import
com.yidianling.im.api.service.IImService
;
/**
* webview 点击事件监听 抽象类
...
...
@@ -303,7 +305,8 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
@Override
public
void
chatSchedule
(
H5JsBean
.
H5JsCmd
.
Params
params
)
{
ModularServiceManager
.
INSTANCE
.
provide
(
IImService
.
class
)
.
chatScheule
(
mContext
,
params
.
getUser_url
(),
params
.
getDoc_url
(),
params
.
getDsmId
(),
params
.
getTitle
(),
params
.
getToUid
());
}
@Override
...
...
config.gradle
View file @
dae7daba
...
...
@@ -6,11 +6,11 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.49.09"
,
"m-consultant"
:
"0.0.59.7
8
"
,
"m-consultant"
:
"0.0.59.7
9
"
,
"m-fm"
:
"0.0.30.03"
,
"m-user"
:
"0.0.61.34"
,
"m-home"
:
"0.0.22.62"
,
"m-im"
:
"0.0.19.
14
"
,
"m-im"
:
"0.0.19.
20
"
,
"m-dynamic"
:
"0.0.7.22"
,
"m-article"
:
"0.0.0.8"
,
...
...
@@ -89,11 +89,11 @@ ext {
//第三步 若干
"m-confide"
:
"0.0.49.09"
,
"m-consultant"
:
"0.0.59.7
8
"
,
"m-consultant"
:
"0.0.59.7
9
"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.34"
,
"m-home"
:
"0.0.22.62"
,
"m-im"
:
"0.0.19.
14
"
,
"m-im"
:
"0.0.19.
20
"
,
"m-dynamic"
:
"0.0.7.22"
,
"m-article"
:
"0.0.0.6"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
View file @
dae7daba
...
...
@@ -36,6 +36,7 @@ import kotlinx.android.synthetic.main.consultant_expert_search_products_item.vie
import
kotlinx.android.synthetic.main.consultant_item_empty.view.*
import
kotlinx.android.synthetic.main.consultant_item_footer.view.*
import
kotlinx.android.synthetic.main.consultant_item_tag.view.*
import
java.math.BigDecimal
/**
* 专家服务列表适配器
...
...
@@ -266,8 +267,9 @@ class ExpertSearchAdapter(
holder
.
tvSaleDurationForMonth
.
text
=
durationStringBuffer
.
append
(
itemBean
.
allSaleDuration
.
toInt
()).
append
(
""
).
toString
()
//价格
val
sb
=
StringBuffer
()
holder
.
tvPrice
.
text
=
sb
.
append
(
""
).
append
(
itemBean
.
minBookingPrice
).
toString
()
val
price
=
BigDecimal
(
itemBean
.
minBookingPrice
)
// 去掉末尾无用的.00
holder
.
tvPrice
.
text
=
price
.
stripTrailingZeros
().
toPlainString
()
//套餐
holder
.
ll_products
.
removeAllViews
()
if
(
null
!=
itemBean
.
products
&&
!
itemBean
.
products
.
isEmpty
())
{
...
...
m-im/src/main/java/com/yidianling/im/modular/service/IMServiceImpl.kt
View file @
dae7daba
...
...
@@ -4,8 +4,8 @@ import android.annotation.SuppressLint
import
android.app.Activity
import
android.app.Application
import
android.content.Context
import
androidx.fragment.app.Fragment
import
androidx.appcompat.app.AppCompatActivity
import
androidx.fragment.app.Fragment
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.netease.nimlib.sdk.NIMClient
import
com.netease.nimlib.sdk.RequestCallback
...
...
@@ -22,19 +22,15 @@ import com.ydl.ydlcommon.utils.remind.HttpErrorUtils
import
com.yidianling.avchatkit.common.util.NetworkUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.im.R
import
com.yidianling.im.api.bean.IMInitConfigBean
import
com.yidianling.im.api.bean.IMLoginInfo
import
com.yidianling.im.api.bean.IMRegisterObserverCustomNotificationCallBack
import
com.yidianling.im.api.bean.IMRequestCallback
import
com.yidianling.im.api.bean.*
import
com.yidianling.im.api.listener.ApiStringResponseCallback
import
com.yidianling.im.api.bean.IMSendCustomNotificationResultCallBack
import
com.yidianling.im.api.service.IImService
import
com.yidianling.im.bridge.P2PCustomActionHandlerImpl
import
com.yidianling.im.config.NimApplication
import
com.yidianling.im.config.constants.ImConstants
import
com.yidianling.im.helper.IMChatUtil
import
com.yidianling.im.helper.LogoutHelper
import
com.yidianling.im.helper.ImObserversHelper
import
com.yidianling.im.helper.LogoutHelper
import
com.yidianling.im.helper.MsgReceiveHelper
import
com.yidianling.im.http.ImRetrofitApi
import
com.yidianling.im.preference.IMCache
...
...
@@ -375,8 +371,9 @@ class IMServiceImpl : IImService {
)
NIMClient
.
getService
(
MsgService
::
class
.
java
).
sendMessage
(
message
,
false
)
.
setCallback
(
object
:
RequestCallback
<
Void
>
{
override
fun
onSuccess
(
param
:
Void
)
{
.
setCallback
(
object
:
RequestCallback
<
Void
?>
{
override
fun
onSuccess
(
param
:
Void
?)
{
MessageListPanelHelper
.
getInstance
().
notifyAddMessage
(
message
)
startChat
(
context
,
toUid
.
toString
(),
0
x001
,
0
)
}
...
...
@@ -388,6 +385,7 @@ class IMServiceImpl : IImService {
ToastUtil
.
toastShort
(
"加载失败"
)
}
})
}
override
fun
initIm
(
app
:
Application
,
activity
:
Class
<
out
Activity
>)
{
...
...
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderConfirmOrder.java
View file @
dae7daba
package
com
.
yidianling
.
im
.
session
.
viewholder
;
import
android.annotation.SuppressLint
;
import
android.os.Handler
;
import
android.text.TextUtils
;
import
android.view.View
;
import
android.widget.ImageView
;
...
...
@@ -136,9 +137,10 @@ public class MsgViewHolderConfirmOrder extends MsgViewHolderBase {
//确认完成,按钮置灰,更新本地消息
updateLocalMsg
();
// 跳转服务单评价页
H5Params
orderParams
=
new
H5Params
(
ImConstants
.
Companion
.
getPLAY_SCORE_URL
()
+
IMChatUtil
.
doctorId
+
"/"
+
serviceId
,
null
);
NewH5Activity
.
start
(
context
,
orderParams
);
new
Handler
().
postDelayed
(()
->
{
H5Params
orderParams
=
new
H5Params
(
ImConstants
.
Companion
.
getPLAY_SCORE_URL
()
+
IMChatUtil
.
doctorId
+
"/"
+
serviceId
,
null
);
NewH5Activity
.
start
(
context
,
orderParams
);
},
1000
);
},
throwable
->
ToastUtil
.
toastShort
(
throwable
.
getMessage
())
);
...
...
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderOrderAlreadyDone.java
View file @
dae7daba
...
...
@@ -129,9 +129,6 @@ public class MsgViewHolderOrderAlreadyDone extends MsgViewHolderBase {
.
subscribe
(
it
->
{
//确认完成,按钮置灰,更新本地消息
updateLocalMsg
();
// 跳转订单评价页
H5Params
orderParams
=
new
H5Params
(
ImConstants
.
Companion
.
getPLAY_SCORE_URL
()
+
IMChatUtil
.
doctorId
+
"/"
+
orderId
,
null
);
NewH5Activity
.
start
(
context
,
orderParams
);
},
throwable
->
ToastUtil
.
toastShort
(
throwable
.
getMessage
())
);
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
View file @
dae7daba
...
...
@@ -83,17 +83,26 @@ class ExpertConsultServiceItemView : LinearLayout {
)
//时间,取productSpecDtos数组最后一个的时间
service_item_time
.
text
=
"/${bean.productDto.minOrderTime}分钟"
//
service_item_time.text = "/${bean.productDto.minOrderTime}分钟"
}
//好评率,*20后 保留1位小数
service_item_feddbackrate
.
visibility
=
VISIBLE
tv_feedbackRate
.
visibility
=
VISIBLE
service_item_feddbackrate
.
text
=
String
.
format
(
"%.1f"
,
(
bean
.
productDto
.
feedbackRate
)
*
100f
)
+
"%"
if
(
bean
.
productDto
.
feedbackRate
>
0
)
{
// 好评率大于0才展示出来,否则隐藏
//好评率,*20后 保留1位小数
service_item_feddbackrate
.
visibility
=
VISIBLE
tv_feedbackRate
.
visibility
=
VISIBLE
service_item_feddbackrate
.
text
=
String
.
format
(
"%.1f"
,
(
bean
.
productDto
.
feedbackRate
)
*
100f
)
+
"%"
}
else
{
service_item_feddbackrate
.
visibility
=
GONE
tv_feedbackRate
.
visibility
=
GONE
}
//销量
...
...
m-im/src/main/res/layout/im_expert_consult_service_item_view.xml
View file @
dae7daba
...
...
@@ -58,9 +58,11 @@
android:layout_height=
"match_parent"
android:text=
"¥"
android:textColor=
"#FF5040"
android:textSize=
"
9d
p"
android:textSize=
"
12s
p"
android:textStyle=
"bold"
android:layout_marginTop=
"4dp"
/>
android:gravity=
"bottom"
android:paddingBottom=
"4dp"
/>
<TextView
android:id=
"@+id/service_item_price"
...
...
@@ -68,9 +70,17 @@
android:layout_height=
"wrap_content"
android:text=
"0"
android:textColor=
"#FF5040"
android:textSize=
"1
6d
p"
android:textSize=
"1
8s
p"
android:textStyle=
"bold"
android:layout_marginBottom=
"1dp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:gravity=
"bottom"
android:textColor=
"#999999"
android:textSize=
"12sp"
android:paddingBottom=
"4dp"
android:text=
"起"
/>
</LinearLayout>
<TextView
...
...
@@ -79,6 +89,7 @@
android:layout_height=
"wrap_content"
android:text=
"/0分钟"
android:textColor=
"#999999"
android:visibility=
"gone"
android:textSize=
"12dp"
/>
<TextView
android:id=
"@+id/service_item_low_buy_time"
...
...
m-im/src/main/res/layout/im_ui_message_modify_time.xml
View file @
dae7daba
<?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"
android:gravity=
"right"
>
<LinearLayout
android:id=
"@+id/modify_time_main"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:background=
"@drawable/im_bg_raduis_up_green"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"10dp"
android:src=
"@drawable/im_ico_chat_time"
/>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:paddingRight=
"10dp"
android:text=
"修改预约时间"
android:textColor=
"#ffffff"
android:textSize=
"14sp"
/>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"11sp"
android:layout_alignLeft=
"@id/modify_time_main"
android:layout_alignRight=
"@id/modify_time_main"
android:textColor=
"#999999"
android:layout_below=
"@id/modify_time_main"
android:background=
"@drawable/im_bg_raduis_down_white"
android:paddingLeft=
"10dp"
android:paddingTop=
"2dp"
android:paddingBottom=
"2dp"
android:text=
"修改预约时间"
/>
<ImageView
android:id=
"@+id/trangle_orange"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"15dp"
android:layout_toRightOf=
"@id/modify_time_main"
android:src=
"@mipmap/im_right_22"
/>
</RelativeLayout>
<?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"
android:gravity=
"right"
>
<LinearLayout
android:id=
"@+id/modify_time_main"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:background=
"@drawable/im_bg_raduis_up_green"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"10dp"
android:src=
"@drawable/im_ico_chat_time"
/>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:paddingRight=
"10dp"
android:text=
"修改预约时间"
android:textColor=
"#ffffff"
android:textSize=
"14sp"
/>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"11sp"
android:layout_alignLeft=
"@id/modify_time_main"
android:layout_alignRight=
"@id/modify_time_main"
android:textColor=
"#999999"
android:layout_below=
"@id/modify_time_main"
android:background=
"@drawable/im_bg_raduis_down_white"
android:paddingLeft=
"10dp"
android:paddingTop=
"2dp"
android:paddingBottom=
"2dp"
android:text=
"修改预约时间"
/>
<!-- <ImageView-->
<!-- android:id="@+id/trangle_orange"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="15dp"-->
<!-- android:layout_toRightOf="@id/modify_time_main"-->
<!-- android:src="@mipmap/im_right_22"/>-->
</RelativeLayout>
m-im/src/main/res/layout/im_ui_message_modify_time_rec.xml
View file @
dae7daba
<?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"
>
<LinearLayout
android:id=
"@+id/modify_time_main"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:layout_toRightOf=
"@id/trangle_orange"
android:background=
"@drawable/im_bg_raduis_up_green"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"10dp"
android:src=
"@drawable/im_ico_chat_time"
/>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:paddingRight=
"10dp"
android:text=
"修改预约时间"
android:textColor=
"#ffffff"
android:textSize=
"14sp"
/>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"11sp"
android:layout_alignLeft=
"@id/modify_time_main"
android:layout_alignRight=
"@id/modify_time_main"
android:textColor=
"#999999"
android:layout_below=
"@id/modify_time_main"
android:background=
"@drawable/im_bg_raduis_down_white"
android:paddingLeft=
"10dp"
android:paddingTop=
"2dp"
android:paddingBottom=
"2dp"
android:text=
"修改预约时间"
/>
<ImageView
android:id=
"@+id/trangle_orange"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"15dp"
android:src=
"@mipmap/im_left_2"
/>
</RelativeLayout>
<?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"
>
<LinearLayout
android:id=
"@+id/modify_time_main"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:background=
"@drawable/im_bg_raduis_up_green"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"10dp"
android:src=
"@drawable/im_ico_chat_time"
/>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:paddingRight=
"10dp"
android:text=
"修改预约时间"
android:textColor=
"#ffffff"
android:textSize=
"14sp"
/>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"11sp"
android:layout_alignLeft=
"@id/modify_time_main"
android:layout_alignRight=
"@id/modify_time_main"
android:textColor=
"#999999"
android:layout_below=
"@id/modify_time_main"
android:background=
"@drawable/im_bg_raduis_down_white"
android:paddingLeft=
"10dp"
android:paddingTop=
"2dp"
android:paddingBottom=
"2dp"
android:text=
"修改预约时间"
/>
<!-- <ImageView-->
<!-- android:id="@+id/trangle_orange"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="15dp"-->
<!-- android:src="@mipmap/im_left_2"/>-->
</RelativeLayout>
m-im/src/main/res/layout/im_ui_message_received_money.xml
View file @
dae7daba
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id=
"@+id/message_received"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
xmlns:tools=
"http://schemas.android.com/tools"
>
<RelativeLayout
android:id=
"@+id/red_packet_main"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_toRightOf=
"@id/trangle_orange"
android:background=
"@drawable/im_bg_raduis_up_green"
>
<TextView
android:id=
"@+id/packet_title"
android:layout_width=
"160dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_toRightOf=
"@+id/packte_im"
android:paddingRight=
"10dp"
android:text=
"1对1专业咨询"
android:textColor=
"#ffffff"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/text_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/packet_title"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"5dp"
android:layout_toRightOf=
"@+id/packte_im"
tools:text=
"您需要支付300元"
android:textColor=
"#ffffff"
android:textSize=
"12sp"
/>
<ImageView
android:id=
"@+id/packte_im"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"10dp"
android:src=
"@mipmap/im_weifu"
android:layout_alignParentTop=
"true"
android:layout_alignParentLeft=
"true"
android:layout_alignParentStart=
"true"
/>
</RelativeLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"11sp"
android:layout_alignLeft=
"@id/red_packet_main"
android:layout_alignRight=
"@id/red_packet_main"
android:textColor=
"#999999"
android:layout_below=
"@id/red_packet_main"
android:background=
"@drawable/im_bg_raduis_down_white"
android:paddingLeft=
"10dp"
android:paddingTop=
"2dp"
android:paddingBottom=
"2dp"
android:text=
"收款"
/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id=
"@+id/message_received"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
xmlns:tools=
"http://schemas.android.com/tools"
>
<RelativeLayout
android:id=
"@+id/red_packet_main"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/im_bg_raduis_up_green"
>
<TextView
android:id=
"@+id/packet_title"
android:layout_width=
"160dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_toRightOf=
"@+id/packte_im"
android:paddingRight=
"10dp"
android:text=
"1对1专业咨询"
android:textColor=
"#ffffff"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/text_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/packet_title"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"5dp"
android:layout_toRightOf=
"@+id/packte_im"
tools:text=
"您需要支付300元"
android:textColor=
"#ffffff"
android:textSize=
"12sp"
/>
<ImageView
android:id=
"@+id/packte_im"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"10dp"
android:src=
"@mipmap/im_weifu"
android:layout_alignParentTop=
"true"
android:layout_alignParentLeft=
"true"
android:layout_alignParentStart=
"true"
/>
</RelativeLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"11sp"
android:layout_alignLeft=
"@id/red_packet_main"
android:layout_alignRight=
"@id/red_packet_main"
android:textColor=
"#999999"
android:layout_below=
"@id/red_packet_main"
android:background=
"@drawable/im_bg_raduis_down_white"
android:paddingLeft=
"10dp"
android:paddingTop=
"2dp"
android:paddingBottom=
"2dp"
android:text=
"收款"
/>
</RelativeLayout>
m-im/src/main/res/layout/im_ui_message_subscript_time.xml
View file @
dae7daba
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id=
"@+id/message_received"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<RelativeLayout
android:id=
"@+id/red_packet_main"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_toLeftOf=
"@+id/trangle_orange"
android:background=
"@drawable/im_bg_raduis_up_green"
>
<TextView
android:id=
"@+id/packet_title"
android:layout_width=
"160dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_toRightOf=
"@+id/packte_im"
android:paddingRight=
"10dp"
android:text=
"请尽快添加可预约时间"
android:textColor=
"#ffffff"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/text_content1"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/packet_title"
android:layout_toRightOf=
"@+id/packte_im"
android:text=
""
android:textColor=
"#ffffff"
android:textSize=
"12sp"
/>
<ImageView
android:id=
"@+id/packte_im"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"10dp"
android:src=
"@mipmap/im_shijianxiao"
android:layout_alignParentTop=
"true"
android:layout_alignParentLeft=
"true"
android:layout_alignParentStart=
"true"
/>
</RelativeLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"11sp"
android:layout_alignLeft=
"@id/red_packet_main"
android:layout_alignRight=
"@id/red_packet_main"
android:textColor=
"#999999"
android:layout_below=
"@id/red_packet_main"
android:background=
"@drawable/im_bg_raduis_down_white"
android:paddingLeft=
"10dp"
android:paddingTop=
"2dp"
android:paddingBottom=
"2dp"
android:text=
"添加新时段提醒"
/>
<ImageView
android:id=
"@+id/trangle_orange"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"15dp"
android:layout_alignParentRight=
"true"
android:src=
"@mipmap/im_right_22"
/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id=
"@+id/message_received"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<RelativeLayout
android:id=
"@+id/red_packet_main"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/im_bg_raduis_up_green"
>
<TextView
android:id=
"@+id/packet_title"
android:layout_width=
"160dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_toRightOf=
"@+id/packte_im"
android:paddingRight=
"10dp"
android:text=
"请尽快添加可预约时间"
android:textColor=
"#ffffff"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/text_content1"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/packet_title"
android:layout_toRightOf=
"@+id/packte_im"
android:text=
""
android:textColor=
"#ffffff"
android:textSize=
"12sp"
/>
<ImageView
android:id=
"@+id/packte_im"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"10dp"
android:src=
"@mipmap/im_shijianxiao"
android:layout_alignParentTop=
"true"
android:layout_alignParentLeft=
"true"
android:layout_alignParentStart=
"true"
/>
</RelativeLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"11sp"
android:layout_alignLeft=
"@id/red_packet_main"
android:layout_alignRight=
"@id/red_packet_main"
android:textColor=
"#999999"
android:layout_below=
"@id/red_packet_main"
android:background=
"@drawable/im_bg_raduis_down_white"
android:paddingLeft=
"10dp"
android:paddingTop=
"2dp"
android:paddingBottom=
"2dp"
android:text=
"添加新时段提醒"
/>
<!-- <ImageView-->
<!-- android:id="@+id/trangle_orange"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="15dp"-->
<!-- android:layout_alignParentRight="true"-->
<!-- android:src="@mipmap/im_right_22"/>-->
</RelativeLayout>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment