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
9083a428
Commit
9083a428
authored
Jul 10, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI修改
parent
c34b87c1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
MsgViewHolderText.java
m-im/src/main/java/com/yidianling/uikit/business/session/viewholder/MsgViewHolderText.java
+4
-2
im_nim_lingxi_multiple_choice.xml
m-im/src/main/res/layout/im_nim_lingxi_multiple_choice.xml
+1
-1
im_nim_message_item_text.xml
m-im/src/main/res_uikit/layout/im_nim_message_item_text.xml
+1
-0
No files found.
m-im/src/main/java/com/yidianling/uikit/business/session/viewholder/MsgViewHolderText.java
View file @
9083a428
...
@@ -51,16 +51,18 @@ public class MsgViewHolderText extends MsgViewHolderBase {
...
@@ -51,16 +51,18 @@ public class MsgViewHolderText extends MsgViewHolderBase {
private
void
layoutDirection
()
{
private
void
layoutDirection
()
{
if
(
isReceivedMessage
())
{
if
(
isReceivedMessage
())
{
avatarRight
.
setVisibility
(
View
.
INVISIBLE
);
bodyTextView
.
setTextColor
(
context
.
getResources
().
getColor
(
R
.
color
.
im_color_242424
));
bodyTextView
.
setTextColor
(
context
.
getResources
().
getColor
(
R
.
color
.
im_color_242424
));
bodyTextView
.
setBackgroundResource
(
NimUIKitImpl
.
getOptions
().
messageLeftBackground
);
bodyTextView
.
setBackgroundResource
(
NimUIKitImpl
.
getOptions
().
messageLeftBackground
);
bodyTextView
.
setPadding
(
ScreenUtil
.
dip2px
(
13
),
ScreenUtil
.
dip2px
(
7
),
ScreenUtil
.
dip2px
(
13
),
ScreenUtil
.
dip2px
(
7
));
bodyTextView
.
setPadding
(
ScreenUtil
.
dip2px
(
13
),
ScreenUtil
.
dip2px
(
7
),
ScreenUtil
.
dip2px
(
13
),
ScreenUtil
.
dip2px
(
7
));
}
else
{
}
else
{
avatarLeft
.
setVisibility
(
View
.
INVISIBLE
);
bodyTextView
.
setTextColor
(
context
.
getResources
().
getColor
(
R
.
color
.
white
));
bodyTextView
.
setTextColor
(
context
.
getResources
().
getColor
(
R
.
color
.
white
));
bodyTextView
.
setBackgroundResource
(
NimUIKitImpl
.
getOptions
().
messageRightBackground
);
bodyTextView
.
setBackgroundResource
(
NimUIKitImpl
.
getOptions
().
messageRightBackground
);
bodyTextView
.
setPadding
(
ScreenUtil
.
dip2px
(
13
),
ScreenUtil
.
dip2px
(
7
),
ScreenUtil
.
dip2px
(
13
),
ScreenUtil
.
dip2px
(
7
));
bodyTextView
.
setPadding
(
ScreenUtil
.
dip2px
(
13
),
ScreenUtil
.
dip2px
(
7
),
ScreenUtil
.
dip2px
(
13
),
ScreenUtil
.
dip2px
(
7
));
}
}
int
textWidth
=
RxDeviceTool
.
getScreenWidth
(
context
)
-
RxImageTool
.
dp2px
(
122
f
);
/*
int textWidth = RxDeviceTool.getScreenWidth(context) - RxImageTool.dp2px(122f);
bodyTextView
.
setMaxWidth
(
textWidth
);
bodyTextView.setMaxWidth(textWidth);
*/
}
}
@Override
@Override
...
...
m-im/src/main/res/layout/im_nim_lingxi_multiple_choice.xml
View file @
9083a428
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
android:layout_width=
"110dp"
android:layout_width=
"110dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/platform_dp_8"
android:layout_marginTop=
"@dimen/platform_dp_8"
android:layout_marginEnd=
"@dimen/platform_dp_
12
"
android:layout_marginEnd=
"@dimen/platform_dp_
9
"
android:layout_marginBottom=
"@dimen/platform_dp_16"
android:layout_marginBottom=
"@dimen/platform_dp_16"
android:background=
"@drawable/im_background_18dp_ebebeb"
android:background=
"@drawable/im_background_18dp_ebebeb"
android:enabled=
"false"
android:enabled=
"false"
...
...
m-im/src/main/res_uikit/layout/im_nim_message_item_text.xml
View file @
9083a428
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:lineSpacingExtra=
"3dip"
android:lineSpacingExtra=
"3dip"
android:minHeight=
"40dp"
android:minHeight=
"40dp"
android:maxWidth=
"263dp"
android:textColor=
"@color/im_color_242424"
android:textColor=
"@color/im_color_242424"
android:textSize=
"17dp"
/>
android:textSize=
"17dp"
/>
</LinearLayout>
</LinearLayout>
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