这个icon在有标题内容的时候就去掉吧,只显示标题内容

This commit is contained in:
ningwenqiang 2024-10-15 13:15:10 +08:00
parent 1be00c75c4
commit 417a9ac628
2 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,7 @@ public class LiveNewReadySwViewHolder extends AbsViewHolder implements View.OnCl
mRootView = (ConstraintLayout) findViewById(R.id.traceroute_rootview); mRootView = (ConstraintLayout) findViewById(R.id.traceroute_rootview);
selectorProtocol = (ImageView) findViewById(R.id.selector_protocol); selectorProtocol = (ImageView) findViewById(R.id.selector_protocol);
anchorAgreement = (TextView) findViewById(R.id.anchor_agreement); anchorAgreement = (TextView) findViewById(R.id.anchor_agreement);
titleIconImg=findViewById(R.id.titleIconImg);
btn_live_clarity = findViewById(R.id.btn_live_clarity); btn_live_clarity = findViewById(R.id.btn_live_clarity);
mRootView.setOnClickListener(new View.OnClickListener() { mRootView.setOnClickListener(new View.OnClickListener() {
@Override @Override

View File

@ -139,6 +139,7 @@
tools:ignore="MissingConstraints" /> tools:ignore="MissingConstraints" />
<ImageView <ImageView
android:id="@+id/titleIconImg"
app:layout_constraintEnd_toEndOf="@+id/edit_title" app:layout_constraintEnd_toEndOf="@+id/edit_title"
app:layout_constraintTop_toTopOf="@+id/edit_title" app:layout_constraintTop_toTopOf="@+id/edit_title"
app:layout_constraintBottom_toBottomOf="@+id/edit_title" app:layout_constraintBottom_toBottomOf="@+id/edit_title"