Commit ca213269 by 霍志良

feat:UI修改

parent b0253549
......@@ -47,11 +47,11 @@ public class MsgViewHolderLingxiFirstQuestion extends MsgViewHolderBase {
contentContainer.postDelayed(new Runnable() {
@Override
public void run() {
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams( contentContainer.getWidth(),
(contentContainer.getHeight()/15)*13);
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams( content_width.getWidth(),
(content_width.getWidth()/15)*13);
imageView.setLayoutParams(params);
imageView.invalidate();
imageView.requestLayout();
imageView.postInvalidate();
// imageView.requestLayout();
}
},200);
......
......@@ -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) {
......
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment