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
b8c3d004
Commit
b8c3d004
authored
Dec 17, 2020
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI修改
parent
bfd0bd2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
22 deletions
+36
-22
MsgViewHolderJumpToDaoYi.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderJumpToDaoYi.java
+5
-0
im_ui_message_custom_jump_to_daoyi.xml
m-im/src/main/res/layout/im_ui_message_custom_jump_to_daoyi.xml
+31
-22
No files found.
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderJumpToDaoYi.java
View file @
b8c3d004
...
...
@@ -7,6 +7,7 @@ import android.widget.TextView;
import
com.ydl.ydlcommon.modular.ModularServiceManager
;
import
com.yidianling.consultant.api.IConsultantService
;
import
com.yidianling.im.R
;
import
com.yidianling.im.session.extension.CustomAttachmentJumpToDaoYi
;
import
com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter
;
import
com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase
;
...
...
@@ -19,6 +20,7 @@ import com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase;
*/
public
class
MsgViewHolderJumpToDaoYi
extends
MsgViewHolderBase
implements
View
.
OnClickListener
{
private
TextView
jumpToDaoYi
;
private
TextView
daoYiDesc
;
public
MsgViewHolderJumpToDaoYi
(
BaseMultiItemFetchLoadAdapter
adapter
)
{
super
(
adapter
);
...
...
@@ -31,8 +33,11 @@ public class MsgViewHolderJumpToDaoYi extends MsgViewHolderBase implements View.
@Override
protected
void
inflateContentView
()
{
CustomAttachmentJumpToDaoYi
customJumpDaoYi
=
(
CustomAttachmentJumpToDaoYi
)
message
.
getAttachment
();
jumpToDaoYi
=
findViewById
(
R
.
id
.
jumpToDaoYi
);
daoYiDesc
=
findViewById
(
R
.
id
.
desc
);
jumpToDaoYi
.
setOnClickListener
(
this
);
daoYiDesc
.
setText
(
customJumpDaoYi
.
desc
);
}
@Override
...
...
m-im/src/main/res/layout/im_ui_message_custom_jump_to_daoyi.xml
View file @
b8c3d004
<?xml version="1.0" encoding="utf-8"?>
<
android.support.constraint.Constraint
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
Linear
Layout
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:layout_width=
"255dp"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/desc"
...
...
@@ -11,23 +13,30 @@
android:text=
"您可以点击以下按钮,将会有专业的咨询顾问为您推荐适合您的专家哦~"
android:textColor=
"@color/im_color_242424"
android:textSize=
"@dimen/im_text_size_17"
a
pp:layout_constraintStart_toStartOf=
"parent
"
a
pp:layout_constraintTop_toTopOf=
"parent"
/>
<
TextView
a
ndroid:layout_marginTop=
"@dimen/platform_dp_9
"
a
ndroid:layout_marginLeft=
"@dimen/platform_dp_12"
android:layout_marginRight=
"@dimen/platform_dp_12"
/>
<
RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/platform_dp_6"
android:background=
"@drawable/im_custom_159cef_22bfff"
android:paddingLeft=
"@dimen/platform_dp_30"
android:paddingTop=
"@dimen/platform_dp_8"
android:paddingRight=
"@dimen/platform_dp_30"
android:paddingBottom=
"@dimen/platform_dp_8"
android:text=
"前往"
android:textColor=
"@color/white"
android:textSize=
"@dimen/im_text_size_15"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/desc"
android:id=
"@+id/jumpToDaoYi"
/>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
android:paddingRight=
"@dimen/platform_dp_12"
android:paddingBottom=
"@dimen/platform_dp_16"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/platform_dp_6"
android:background=
"@drawable/im_custom_159cef_22bfff"
android:paddingLeft=
"@dimen/platform_dp_30"
android:paddingTop=
"@dimen/platform_dp_8"
android:paddingRight=
"@dimen/platform_dp_30"
android:paddingBottom=
"@dimen/platform_dp_8"
android:text=
"前往"
android:textColor=
"@color/white"
android:textSize=
"@dimen/im_text_size_15"
android:id=
"@+id/jumpToDaoYi"
android:layout_alignParentRight=
"true"
/>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
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