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
08c57020
Commit
08c57020
authored
Jul 08, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:消息对其、部分颜色修改
parent
2228d086
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
18 deletions
+22
-18
MsgViewHolderLingxiAnswerQuestion.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiAnswerQuestion.java
+2
-0
MsgViewHolderLingxiWhichQuestion.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
+1
-0
MsgViewHolderBase.java
m-im/src/main/java/com/yidianling/uikit/business/session/viewholder/MsgViewHolderBase.java
+5
-5
im_nim_lingxi_multiple_choice.xml
m-im/src/main/res/layout/im_nim_lingxi_multiple_choice.xml
+2
-0
im_nim_read_recipt_layout.xml
m-im/src/main/res_uikit/layout/im_nim_read_recipt_layout.xml
+12
-13
No files found.
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiAnswerQuestion.java
View file @
08c57020
package
com
.
yidianling
.
im
.
session
.
viewholder
;
import
android.view.View
;
import
android.widget.TextView
;
import
com.yidianling.im.R
;
...
...
@@ -39,6 +40,7 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
@Override
protected
void
bindContentView
()
{
avatarLeft
.
setVisibility
(
View
.
INVISIBLE
);
customattachLingxiAnswerQuestion
=
((
CustomAttachLingxiAnswerQuestion
)
message
.
getAttachment
());
itemBeans
=
customattachLingxiAnswerQuestion
.
answers
;
sb
=
new
StringBuffer
();
...
...
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
View file @
08c57020
...
...
@@ -96,6 +96,7 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
@Override
protected
void
bindContentView
()
{
avatarRight
.
setVisibility
(
View
.
INVISIBLE
);
ImIn
.
INSTANCE
.
setImMessage
(
message
);
customAttachLingxiWhichQuestion
=
((
CustomAttachLingxiWhichQuestion
)
message
.
getAttachment
());
examId
=
customAttachLingxiWhichQuestion
.
examId
;
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/viewholder/MsgViewHolderBase.java
View file @
08c57020
...
...
@@ -58,8 +58,8 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
protected
TextView
readReceiptTextView
;
protected
TextView
ackMsgTextView
;
p
rivate
HeadImageView
avatarLeft
;
p
rivate
HeadImageView
avatarRight
;
p
ublic
HeadImageView
avatarLeft
;
p
ublic
HeadImageView
avatarRight
;
public
ImageView
nameIconView
;
...
...
@@ -424,11 +424,11 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
}
}
public
void
setAvatarLeftInVisibity
(){
public
void
setAvatarLeftInVisibity
()
{
avatarLeft
.
setVisibility
(
View
.
INVISIBLE
);
}
public
void
setAvatarRightInVisibity
(){
public
void
setAvatarRightInVisibity
()
{
avatarRight
.
setVisibility
(
View
.
INVISIBLE
);
}
...
...
@@ -448,7 +448,7 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
if
(
isReceivedMessage
())
{
audioRightSmallTip
.
setVisibility
(
View
.
VISIBLE
);
audioLeftSmallTip
.
setVisibility
(
View
.
GONE
);
}
else
{
}
else
{
audioRightSmallTip
.
setVisibility
(
View
.
GONE
);
audioLeftSmallTip
.
setVisibility
(
View
.
VISIBLE
);
}
...
...
m-im/src/main/res/layout/im_nim_lingxi_multiple_choice.xml
View file @
08c57020
...
...
@@ -18,6 +18,8 @@
app:layout_constraintLeft_toLeftOf=
"parent"
tools:text=
"请问是发生了什么事情导致的呢?(多选)?"
android:textSize=
"@dimen/im_text_size_17"
android:includeFontPadding=
"false"
android:lineSpacingExtra=
"3dip"
android:textColor=
"@color/im_color_242424"
android:paddingBottom=
"@dimen/platform_dp_16"
>
...
...
m-im/src/main/res_uikit/layout/im_nim_read_recipt_layout.xml
View file @
08c57020
<?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/textViewAlreadyRead"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:layout_marginBottom=
"3dip"
android:background=
"@color/im_transparent"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/textViewAlreadyRead"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:layout_marginLeft=
"2dp"
android:layout_marginRight=
"2dp"
android:text=
"@string/im_readed"
android:textColor=
"#666666"
android:textSize=
"12sp"
android:visibility=
"gone"
tools:visibility=
"visible"
/>
android:layout_marginBottom=
"3dip"
android:background=
"@color/im_transparent"
android:text=
"@string/im_readed"
android:textColor=
"#999999"
android:textSize=
"12sp"
android:visibility=
"gone"
tools:visibility=
"visible"
/>
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