mirror of
https://github.com/bitwarden/mobile
synced 2025-12-13 23:03:23 +00:00
Android listview cell background set via drawable so that we can retain the selected state coloring. Adjustments to style separator for tableview cells.
This commit is contained in:
@@ -22,7 +22,15 @@ namespace Bit.Android.Controls
|
||||
|
||||
if(View != null)
|
||||
{
|
||||
View.SetBackgroundColor(extendedCell.BackgroundColor.ToAndroid());
|
||||
if(extendedCell.BackgroundColor != Color.White)
|
||||
{
|
||||
View.SetBackgroundColor(extendedCell.BackgroundColor.ToAndroid());
|
||||
}
|
||||
else
|
||||
{
|
||||
View.SetBackgroundResource(Resource.Drawable.list_selector);
|
||||
}
|
||||
|
||||
if(item.IsEnabled)
|
||||
{
|
||||
View.SetMainTextColor(Color.Black);
|
||||
|
||||
Reference in New Issue
Block a user