Commit b8c3d004 by 霍志良

feat:UI修改

parent bfd0bd2e
...@@ -7,6 +7,7 @@ import android.widget.TextView; ...@@ -7,6 +7,7 @@ import android.widget.TextView;
import com.ydl.ydlcommon.modular.ModularServiceManager; import com.ydl.ydlcommon.modular.ModularServiceManager;
import com.yidianling.consultant.api.IConsultantService; import com.yidianling.consultant.api.IConsultantService;
import com.yidianling.im.R; import com.yidianling.im.R;
import com.yidianling.im.session.extension.CustomAttachmentJumpToDaoYi;
import com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter; import com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter;
import com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase; import com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase;
...@@ -19,6 +20,7 @@ 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 { public class MsgViewHolderJumpToDaoYi extends MsgViewHolderBase implements View.OnClickListener {
private TextView jumpToDaoYi; private TextView jumpToDaoYi;
private TextView daoYiDesc;
public MsgViewHolderJumpToDaoYi(BaseMultiItemFetchLoadAdapter adapter) { public MsgViewHolderJumpToDaoYi(BaseMultiItemFetchLoadAdapter adapter) {
super(adapter); super(adapter);
...@@ -31,8 +33,11 @@ public class MsgViewHolderJumpToDaoYi extends MsgViewHolderBase implements View. ...@@ -31,8 +33,11 @@ public class MsgViewHolderJumpToDaoYi extends MsgViewHolderBase implements View.
@Override @Override
protected void inflateContentView() { protected void inflateContentView() {
CustomAttachmentJumpToDaoYi customJumpDaoYi = (CustomAttachmentJumpToDaoYi) message.getAttachment();
jumpToDaoYi=findViewById(R.id.jumpToDaoYi); jumpToDaoYi=findViewById(R.id.jumpToDaoYi);
daoYiDesc=findViewById(R.id.desc);
jumpToDaoYi.setOnClickListener(this); jumpToDaoYi.setOnClickListener(this);
daoYiDesc.setText(customJumpDaoYi.desc);
} }
@Override @Override
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="255dp"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:orientation="vertical"
>
<TextView <TextView
android:id="@+id/desc" android:id="@+id/desc"
...@@ -11,23 +13,30 @@ ...@@ -11,23 +13,30 @@
android:text="您可以点击以下按钮,将会有专业的咨询顾问为您推荐适合您的专家哦~" android:text="您可以点击以下按钮,将会有专业的咨询顾问为您推荐适合您的专家哦~"
android:textColor="@color/im_color_242424" android:textColor="@color/im_color_242424"
android:textSize="@dimen/im_text_size_17" android:textSize="@dimen/im_text_size_17"
app:layout_constraintStart_toStartOf="parent" android:layout_marginTop="@dimen/platform_dp_9"
app:layout_constraintTop_toTopOf="parent" /> android:layout_marginLeft="@dimen/platform_dp_12"
android:layout_marginRight="@dimen/platform_dp_12" />
<TextView <RelativeLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/platform_dp_6" android:paddingRight="@dimen/platform_dp_12"
android:background="@drawable/im_custom_159cef_22bfff" android:paddingBottom="@dimen/platform_dp_16"
android:paddingLeft="@dimen/platform_dp_30" >
android:paddingTop="@dimen/platform_dp_8" <TextView
android:paddingRight="@dimen/platform_dp_30" android:layout_width="wrap_content"
android:paddingBottom="@dimen/platform_dp_8" android:layout_height="wrap_content"
android:text="前往" android:layout_marginTop="@dimen/platform_dp_6"
android:textColor="@color/white" android:background="@drawable/im_custom_159cef_22bfff"
android:textSize="@dimen/im_text_size_15" android:paddingLeft="@dimen/platform_dp_30"
app:layout_constraintEnd_toEndOf="parent" android:paddingTop="@dimen/platform_dp_8"
app:layout_constraintTop_toBottomOf="@id/desc" android:paddingRight="@dimen/platform_dp_30"
android:id="@+id/jumpToDaoYi" android:paddingBottom="@dimen/platform_dp_8"
/> android:text="前往"
</android.support.constraint.ConstraintLayout> android:textColor="@color/white"
\ No newline at end of file android:textSize="@dimen/im_text_size_15"
android:id="@+id/jumpToDaoYi"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
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