mirror of
https://github.com/bitwarden/mobile
synced 2025-12-21 10:43:22 +00:00
Remove header, upper header text, set accent color.
This commit is contained in:
@@ -60,6 +60,7 @@ namespace Bit.Android.Controls
|
|||||||
{
|
{
|
||||||
private readonly ExtendedTableView _view;
|
private readonly ExtendedTableView _view;
|
||||||
private readonly AListView _listView;
|
private readonly AListView _listView;
|
||||||
|
private bool _removedHeader;
|
||||||
|
|
||||||
public CustomTableViewModelRenderer(Context context, AListView listView, TableView view)
|
public CustomTableViewModelRenderer(Context context, AListView listView, TableView view)
|
||||||
: base(context, listView, view)
|
: base(context, listView, view)
|
||||||
@@ -85,9 +86,18 @@ namespace Bit.Android.Controls
|
|||||||
var textCell = layout?.GetChildAt(0) as BaseCellView;
|
var textCell = layout?.GetChildAt(0) as BaseCellView;
|
||||||
if(textCell != null)
|
if(textCell != null)
|
||||||
{
|
{
|
||||||
|
if(!_removedHeader && position == 0 && _view.NoHeader)
|
||||||
|
{
|
||||||
|
textCell.Visibility = ViewStates.Gone;
|
||||||
|
_removedHeader = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
textCell.MainText = textCell.MainText?.ToUpperInvariant();
|
||||||
textCell.SetMainTextColor(Xamarin.Forms.Color.FromHex("777777"));
|
textCell.SetMainTextColor(Xamarin.Forms.Color.FromHex("777777"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
baseView.SetBackgroundColor(_view.SeparatorColor.ToAndroid());
|
baseView.SetBackgroundColor(_view.SeparatorColor.ToAndroid());
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ using Plugin.Connectivity.Abstractions;
|
|||||||
using Acr.UserDialogs;
|
using Acr.UserDialogs;
|
||||||
using PushNotification.Plugin.Abstractions;
|
using PushNotification.Plugin.Abstractions;
|
||||||
using Android.Content;
|
using Android.Content;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Bit.Android
|
namespace Bit.Android
|
||||||
{
|
{
|
||||||
@@ -33,8 +34,13 @@ namespace Bit.Android
|
|||||||
|
|
||||||
HockeyApp.Android.CrashManager.Register(this, HockeyAppId,
|
HockeyApp.Android.CrashManager.Register(this, HockeyAppId,
|
||||||
new HockeyAppCrashManagerListener(appIdService, authService));
|
new HockeyAppCrashManagerListener(appIdService, authService));
|
||||||
|
|
||||||
global::Xamarin.Forms.Forms.Init(this, bundle);
|
global::Xamarin.Forms.Forms.Init(this, bundle);
|
||||||
|
|
||||||
|
typeof(Xamarin.Forms.Color).GetProperty("Accent", BindingFlags.Public | BindingFlags.Static)
|
||||||
|
.SetValue(null, Xamarin.Forms.Color.FromHex("d2d6de"));
|
||||||
|
|
||||||
|
|
||||||
LoadApplication(new App.App(
|
LoadApplication(new App.App(
|
||||||
Resolver.Resolve<IAuthService>(),
|
Resolver.Resolve<IAuthService>(),
|
||||||
Resolver.Resolve<IConnectivity>(),
|
Resolver.Resolve<IConnectivity>(),
|
||||||
|
|||||||
Reference in New Issue
Block a user