Commit b8c3d004 by 霍志良

feat:UI修改

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