1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-18 01:03:24 +00:00

entry cell renderer

This commit is contained in:
Kyle Spearrin
2019-04-05 13:35:19 -04:00
parent 1085808867
commit 8c79c42b28
7 changed files with 454 additions and 11 deletions

View File

@@ -25,13 +25,12 @@ namespace Bit.Droid.Renderers.BoxedView
ValueLabel = new TextView(context);
ValueLabel.SetSingleLine(true);
ValueLabel.Ellipsize = TextUtils.TruncateAt.End;
ValueLabel.Gravity = GravityFlags.Right;
ValueLabel.Gravity = GravityFlags.Left;
var textParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WrapContent,
ViewGroup.LayoutParams.WrapContent);
using(textParams)
using(var lParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WrapContent,
ViewGroup.LayoutParams.WrapContent))
{
CellContent.AddView(ValueLabel, textParams);
CellContent.AddView(ValueLabel, lParams);
}
}