mirror of
https://github.com/bitwarden/android.git
synced 2025-03-07 23:16:00 +03:00
Remove header, upper header text, set accent color.
This commit is contained in:
parent
1c4efb91b9
commit
4dfba13aea
2 changed files with 17 additions and 1 deletions
|
@ -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,7 +86,16 @@ namespace Bit.Android.Controls
|
||||||
var textCell = layout?.GetChildAt(0) as BaseCellView;
|
var textCell = layout?.GetChildAt(0) as BaseCellView;
|
||||||
if(textCell != null)
|
if(textCell != null)
|
||||||
{
|
{
|
||||||
textCell.SetMainTextColor(Xamarin.Forms.Color.FromHex("777777"));
|
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"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -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>(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue