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
ca213269
Commit
ca213269
authored
Jul 10, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI修改
parent
b0253549
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
MsgViewHolderLingxiFirstQuestion.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiFirstQuestion.java
+4
-4
MsgViewHolderBase.java
m-im/src/main/java/com/yidianling/uikit/business/session/viewholder/MsgViewHolderBase.java
+2
-0
im_nim_message_item.xml
m-im/src/main/res_uikit/layout/im_nim_message_item.xml
+1
-0
No files found.
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiFirstQuestion.java
View file @
ca213269
...
...
@@ -47,11 +47,11 @@ public class MsgViewHolderLingxiFirstQuestion extends MsgViewHolderBase {
contentContainer
.
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
FrameLayout
.
LayoutParams
params
=
new
FrameLayout
.
LayoutParams
(
content
Container
.
getWidth
(),
(
content
Container
.
getHeight
()/
15
)*
13
);
FrameLayout
.
LayoutParams
params
=
new
FrameLayout
.
LayoutParams
(
content
_width
.
getWidth
(),
(
content
_width
.
getWidth
()/
15
)*
13
);
imageView
.
setLayoutParams
(
params
);
imageView
.
i
nvalidate
();
imageView
.
requestLayout
();
imageView
.
postI
nvalidate
();
//
imageView.requestLayout();
}
},
200
);
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/viewholder/MsgViewHolderBase.java
View file @
ca213269
...
...
@@ -62,6 +62,7 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
public
HeadImageView
avatarRight
;
public
ImageView
nameIconView
;
protected
FrameLayout
content_width
;
protected
TextView
audioRightSmallTip
;
protected
TextView
audioLeftSmallTip
;
...
...
@@ -195,6 +196,7 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
audioRightSmallTip
=
findViewById
(
R
.
id
.
audio_right_small_tip
);
audioLeftSmallTip
=
findViewById
(
R
.
id
.
audio_left_small_tip
);
content_width
=
findViewById
(
R
.
id
.
content_width
);
// 这里只要inflate出来后加入一次即可
if
(
contentContainer
.
getChildCount
()
==
0
)
{
...
...
m-im/src/main/res_uikit/layout/im_nim_message_item.xml
View file @
ca213269
...
...
@@ -111,6 +111,7 @@
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/content_width"
android:layout_below=
"@id/message_item_name_layout"
android:layout_toStartOf=
"@id/message_item_portrait_right"
android:layout_toEndOf=
"@id/message_item_portrait_left"
>
...
...
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