AboutViewHolder: Set the background of the field item to green when verified

This commit is contained in:
Jeff Bowen 2022-11-16 19:01:32 -05:00
parent f500cc7ebf
commit 5d056d5bea
No known key found for this signature in database
GPG Key ID: 2743796118658EBB
1 changed files with 5 additions and 1 deletions

View File

@ -183,7 +183,7 @@ public class ProfileAboutFragment extends Fragment implements WindowInsetsAwareF
} }
private abstract class BaseViewHolder extends BindableViewHolder<AccountField>{ private abstract class BaseViewHolder extends BindableViewHolder<AccountField>{
private ShapeDrawable background=new ShapeDrawable(); protected ShapeDrawable background=new ShapeDrawable();
public BaseViewHolder(int layout){ public BaseViewHolder(int layout){
super(getActivity(), layout, list); super(getActivity(), layout, list);
@ -220,6 +220,10 @@ public class ProfileAboutFragment extends Fragment implements WindowInsetsAwareF
super.onBind(item); super.onBind(item);
title.setText(item.parsedName); title.setText(item.parsedName);
value.setText(item.parsedValue); value.setText(item.parsedValue);
if(item.verifiedAt != null){
background.getPaint().setARGB(255,213,228, 217);
itemView.setBackground(background);
}
} }
@Override @Override