1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-20 02:03:49 +00:00

added "more" disclosure image for vault listing cell "more options" action sheet.

This commit is contained in:
Kyle Spearrin
2016-06-15 00:36:50 -04:00
parent a238523551
commit 0d3cb7c117
18 changed files with 118 additions and 34 deletions

View File

@@ -299,6 +299,21 @@
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxhdpi\bg.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\more.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-hdpi\more.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-mdpi\more.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\more.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxhdpi\more.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Import Project="..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

View File

@@ -33,9 +33,9 @@ namespace Bit.Android.Controls
resourceId = context.Resources.GetIdentifier(fileName, "drawable", context.PackageName);
}
var image = new ImageView(context);
var image = new DisclosureImage(context, extendedCell);
image.SetImageResource(resourceId);
image.SetPadding(0, 0, 30, 0);
image.SetPadding(10, 10, 30, 10);
View.SetAccessoryView(image);
}
}
@@ -43,6 +43,30 @@ namespace Bit.Android.Controls
return View;
}
private class DisclosureImage : ImageView
{
private ExtendedTextCell _cell;
public DisclosureImage(Context context, ExtendedTextCell cell) : base(context)
{
_cell = cell;
}
public override bool OnTouchEvent(MotionEvent e)
{
switch(e.Action)
{
case MotionEventActions.Up:
_cell.OnDisclousureTapped();
break;
default:
break;
}
return true;
}
}
protected override void OnCellPropertyChanged(object sender, PropertyChangedEventArgs args)
{
base.OnCellPropertyChanged(sender, args);

View File

@@ -2274,58 +2274,61 @@ namespace Bit.Android
public const int ion_plus = 2130837656;
// aapt resource value: 0x7f020099
public const int mr_dialog_material_background_dark = 2130837657;
public const int more = 2130837657;
// aapt resource value: 0x7f02009a
public const int mr_dialog_material_background_light = 2130837658;
public const int mr_dialog_material_background_dark = 2130837658;
// aapt resource value: 0x7f02009b
public const int mr_ic_audiotrack_light = 2130837659;
public const int mr_dialog_material_background_light = 2130837659;
// aapt resource value: 0x7f02009c
public const int mr_ic_cast_dark = 2130837660;
public const int mr_ic_audiotrack_light = 2130837660;
// aapt resource value: 0x7f02009d
public const int mr_ic_cast_light = 2130837661;
public const int mr_ic_cast_dark = 2130837661;
// aapt resource value: 0x7f02009e
public const int mr_ic_close_dark = 2130837662;
public const int mr_ic_cast_light = 2130837662;
// aapt resource value: 0x7f02009f
public const int mr_ic_close_light = 2130837663;
public const int mr_ic_close_dark = 2130837663;
// aapt resource value: 0x7f0200a0
public const int mr_ic_media_route_connecting_mono_dark = 2130837664;
public const int mr_ic_close_light = 2130837664;
// aapt resource value: 0x7f0200a1
public const int mr_ic_media_route_connecting_mono_light = 2130837665;
public const int mr_ic_media_route_connecting_mono_dark = 2130837665;
// aapt resource value: 0x7f0200a2
public const int mr_ic_media_route_mono_dark = 2130837666;
public const int mr_ic_media_route_connecting_mono_light = 2130837666;
// aapt resource value: 0x7f0200a3
public const int mr_ic_media_route_mono_light = 2130837667;
public const int mr_ic_media_route_mono_dark = 2130837667;
// aapt resource value: 0x7f0200a4
public const int mr_ic_pause_dark = 2130837668;
public const int mr_ic_media_route_mono_light = 2130837668;
// aapt resource value: 0x7f0200a5
public const int mr_ic_pause_light = 2130837669;
public const int mr_ic_pause_dark = 2130837669;
// aapt resource value: 0x7f0200a6
public const int mr_ic_play_dark = 2130837670;
public const int mr_ic_pause_light = 2130837670;
// aapt resource value: 0x7f0200a7
public const int mr_ic_play_light = 2130837671;
// aapt resource value: 0x7f0200aa
public const int notification_template_icon_bg = 2130837674;
public const int mr_ic_play_dark = 2130837671;
// aapt resource value: 0x7f0200a8
public const int roundedbg = 2130837672;
public const int mr_ic_play_light = 2130837672;
// aapt resource value: 0x7f0200ab
public const int notification_template_icon_bg = 2130837675;
// aapt resource value: 0x7f0200a9
public const int roundedbgdark = 2130837673;
public const int roundedbg = 2130837673;
// aapt resource value: 0x7f0200aa
public const int roundedbgdark = 2130837674;
static Drawable()
{

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 B