forked from organicmaps/organicmaps
Text is now clickable and increased margin b/w Text and moreBtn
Signed-off-by: ANS-UXI <anshumansahoo500@gmail.com>
This commit is contained in:
parent
74a17c44b3
commit
7f7e028d0e
2 changed files with 10 additions and 5 deletions
|
@ -43,6 +43,7 @@
|
|||
android:gravity="start|top"
|
||||
android:text="@string/category_desc_more"
|
||||
android:textColor="?attr/colorAccent"
|
||||
android:textSize="14sp" />
|
||||
android:textSize="14sp"
|
||||
android:layout_marginTop="2dp" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -432,10 +432,14 @@ public class BookmarkListAdapter extends RecyclerView.Adapter<Holders.BaseBookma
|
|||
TextView text = desc.findViewById(R.id.text);
|
||||
holder = new Holders.DescriptionViewHolder(desc, mSectionsDataSource.getCategory());
|
||||
setMoreButtonVisibility(text, moreBtn);
|
||||
moreBtn.setOnClickListener((v ->
|
||||
{
|
||||
onMoreButtonClicked(moreBtn, text);
|
||||
}));
|
||||
View.OnClickListener listener = new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
onMoreButtonClicked(moreBtn, text);
|
||||
}
|
||||
};
|
||||
text.setOnClickListener(listener);
|
||||
moreBtn.setOnClickListener(listener);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue