diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index 2cb0d7d59..98c2f782c 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -296,11 +296,11 @@ + - @@ -607,55 +607,103 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - + - - - - + @@ -666,6 +714,18 @@ + + + + + + + + + + + + diff --git a/src/Android/Controls/ExtendedNavigationPage.cs b/src/Android/Controls/ExtendedNavigationPage.cs deleted file mode 100644 index a137c8a7f..000000000 --- a/src/Android/Controls/ExtendedNavigationPage.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Android.App; -using Android.Graphics.Drawables; -using Bit.Android.Controls; -using Bit.App.Controls; -using Xamarin.Forms; -using Xamarin.Forms.Platform.Android; - -//[assembly: ExportRenderer(typeof(ExtendedNavigationPage), typeof(ExtendedNavigationRenderer))] -namespace Bit.Android.Controls -{ - public class ExtendedNavigationRenderer : NavigationRenderer - { - protected override void OnElementChanged(ElementChangedEventArgs e) - { - base.OnElementChanged(e); - - RemoveAppIconFromActionBar(); - } - - private void RemoveAppIconFromActionBar() - { - // ref: http://stackoverflow.com/questions/14606294/remove-icon-logo-from-action-bar-on-android - var actionBar = ((Activity)Context).ActionBar; - actionBar.SetIcon(new ColorDrawable(Color.Transparent.ToAndroid())); - } - } -} diff --git a/src/Android/Controls/ExtendedTabbedPageRenderer.cs b/src/Android/Controls/ExtendedTabbedPageRenderer.cs new file mode 100644 index 000000000..67fe6cd3e --- /dev/null +++ b/src/Android/Controls/ExtendedTabbedPageRenderer.cs @@ -0,0 +1,99 @@ +using System; +using System.ComponentModel; +using Bit.Android.Controls; +using Bit.App.Controls; +using Xamarin.Forms; +using Xamarin.Forms.Platform.Android; +using Android.Support.Design.Widget; +using Xamarin.Forms.Platform.Android.AppCompat; +using System.Reflection; +using System.Linq; + +[assembly: ExportRenderer(typeof(ExtendedTabbedPage), typeof(ExtendedTabbedPageRenderer))] +namespace Bit.Android.Controls +{ + public class ExtendedTabbedPageRenderer : TabbedPageRenderer, TabLayout.IOnTabSelectedListener + { + private TabLayout _tabLayout; + + protected override void OnElementChanged(ElementChangedEventArgs e) + { + base.OnElementChanged(e); + var view = (ExtendedTabbedPage)Element; + + var field = typeof(ExtendedTabbedPageRenderer).BaseType.GetField("_tabLayout", + BindingFlags.Instance | BindingFlags.NonPublic); + _tabLayout = field?.GetValue(this) as TabLayout; + if(_tabLayout != null) + { + var tab = _tabLayout.GetTabAt(0); + SetSelectedTabIcon(tab, Element.Children[0].Icon, true); + } + } + + protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e) + { + base.OnElementPropertyChanged(sender, e); + var view = (ExtendedTabbedPage)Element; + } + + void TabLayout.IOnTabSelectedListener.OnTabSelected(TabLayout.Tab tab) + { + if(Element == null) + { + return; + } + + var selectedIndex = tab.Position; + var child = Element.Children[selectedIndex]; + if(Element.Children.Count > selectedIndex && selectedIndex >= 0) + { + Element.CurrentPage = Element.Children[selectedIndex]; + } + + SetSelectedTabIcon(tab, child.Icon, true); + } + + void TabLayout.IOnTabSelectedListener.OnTabUnselected(TabLayout.Tab tab) + { + var child = Element.Children[tab.Position]; + SetSelectedTabIcon(tab, child.Icon, false); + } + + private void SetSelectedTabIcon(TabLayout.Tab tab, string icon, bool selected) + { + if(string.IsNullOrEmpty(icon)) + { + return; + } + + var selectedResource = IdFromTitle(string.Format("{0}_selected", icon), ResourceManager.DrawableClass); + if(selected && selectedResource != 0) + { + tab.SetIcon(selectedResource); + } + else + { + tab.SetIcon(IdFromTitle(icon, ResourceManager.DrawableClass)); + } + } + + private int IdFromTitle(string title, Type type) + { + var name = System.IO.Path.GetFileNameWithoutExtension(title); + return GetId(type, name); + } + + private int GetId(Type type, string propertyName) + { + var props = type.GetFields(); + var prop = props.FirstOrDefault(p => p.Name == propertyName); + if(prop != null) + { + return (int)prop.GetValue(type); + } + + return 0; + } + } +} diff --git a/src/Android/Controls/ExtendedTableViewRenderer.cs b/src/Android/Controls/ExtendedTableViewRenderer.cs index 740ac3f69..773c79384 100644 --- a/src/Android/Controls/ExtendedTableViewRenderer.cs +++ b/src/Android/Controls/ExtendedTableViewRenderer.cs @@ -51,6 +51,7 @@ namespace Bit.Android.Controls { if(i == 0 && (element?.NoHeader ?? false)) { + totalHeight += 1; continue; } diff --git a/src/Android/Resources/Resource.Designer.cs b/src/Android/Resources/Resource.Designer.cs index 6cc2f11c2..66d81f3ac 100644 --- a/src/Android/Resources/Resource.Designer.cs +++ b/src/Android/Resources/Resource.Designer.cs @@ -1310,32 +1310,32 @@ namespace Bit.Android public partial class Color { - // aapt resource value: 0x7f0a006b - public const int abc_background_cache_hint_selector_material_dark = 2131361899; - // aapt resource value: 0x7f0a006c - public const int abc_background_cache_hint_selector_material_light = 2131361900; + public const int abc_background_cache_hint_selector_material_dark = 2131361900; // aapt resource value: 0x7f0a006d - public const int abc_color_highlight_material = 2131361901; + public const int abc_background_cache_hint_selector_material_light = 2131361901; + + // aapt resource value: 0x7f0a006e + public const int abc_color_highlight_material = 2131361902; // aapt resource value: 0x7f0a0015 public const int abc_input_method_navigation_guard = 2131361813; - // aapt resource value: 0x7f0a006e - public const int abc_primary_text_disable_only_material_dark = 2131361902; - // aapt resource value: 0x7f0a006f - public const int abc_primary_text_disable_only_material_light = 2131361903; + public const int abc_primary_text_disable_only_material_dark = 2131361903; // aapt resource value: 0x7f0a0070 - public const int abc_primary_text_material_dark = 2131361904; + public const int abc_primary_text_disable_only_material_light = 2131361904; // aapt resource value: 0x7f0a0071 - public const int abc_primary_text_material_light = 2131361905; + public const int abc_primary_text_material_dark = 2131361905; // aapt resource value: 0x7f0a0072 - public const int abc_search_url_text = 2131361906; + public const int abc_primary_text_material_light = 2131361906; + + // aapt resource value: 0x7f0a0073 + public const int abc_search_url_text = 2131361907; // aapt resource value: 0x7f0a0016 public const int abc_search_url_text_normal = 2131361814; @@ -1346,11 +1346,11 @@ namespace Bit.Android // aapt resource value: 0x7f0a0018 public const int abc_search_url_text_selected = 2131361816; - // aapt resource value: 0x7f0a0073 - public const int abc_secondary_text_material_dark = 2131361907; - // aapt resource value: 0x7f0a0074 - public const int abc_secondary_text_material_light = 2131361908; + public const int abc_secondary_text_material_dark = 2131361908; + + // aapt resource value: 0x7f0a0075 + public const int abc_secondary_text_material_light = 2131361909; // aapt resource value: 0x7f0a006a public const int accent = 2131361898; @@ -1415,8 +1415,8 @@ namespace Bit.Android // aapt resource value: 0x7f0a0008 public const int common_action_bar_splitter = 2131361800; - // aapt resource value: 0x7f0a0075 - public const int common_google_signin_btn_text_dark = 2131361909; + // aapt resource value: 0x7f0a0076 + public const int common_google_signin_btn_text_dark = 2131361910; // aapt resource value: 0x7f0a0009 public const int common_google_signin_btn_text_dark_default = 2131361801; @@ -1430,8 +1430,8 @@ namespace Bit.Android // aapt resource value: 0x7f0a000a public const int common_google_signin_btn_text_dark_pressed = 2131361802; - // aapt resource value: 0x7f0a0076 - public const int common_google_signin_btn_text_light = 2131361910; + // aapt resource value: 0x7f0a0077 + public const int common_google_signin_btn_text_light = 2131361911; // aapt resource value: 0x7f0a000d public const int common_google_signin_btn_text_light_default = 2131361805; @@ -1445,8 +1445,8 @@ namespace Bit.Android // aapt resource value: 0x7f0a000e public const int common_google_signin_btn_text_light_pressed = 2131361806; - // aapt resource value: 0x7f0a0077 - public const int common_plus_signin_btn_text_dark = 2131361911; + // aapt resource value: 0x7f0a0078 + public const int common_plus_signin_btn_text_dark = 2131361912; // aapt resource value: 0x7f0a0000 public const int common_plus_signin_btn_text_dark_default = 2131361792; @@ -1460,8 +1460,8 @@ namespace Bit.Android // aapt resource value: 0x7f0a0001 public const int common_plus_signin_btn_text_dark_pressed = 2131361793; - // aapt resource value: 0x7f0a0078 - public const int common_plus_signin_btn_text_light = 2131361912; + // aapt resource value: 0x7f0a0079 + public const int common_plus_signin_btn_text_light = 2131361913; // aapt resource value: 0x7f0a0004 public const int common_plus_signin_btn_text_light_default = 2131361796; @@ -1664,11 +1664,11 @@ namespace Bit.Android // aapt resource value: 0x7f0a004c public const int switch_thumb_disabled_material_light = 2131361868; - // aapt resource value: 0x7f0a0079 - public const int switch_thumb_material_dark = 2131361913; - // aapt resource value: 0x7f0a007a - public const int switch_thumb_material_light = 2131361914; + public const int switch_thumb_material_dark = 2131361914; + + // aapt resource value: 0x7f0a007b + public const int switch_thumb_material_light = 2131361915; // aapt resource value: 0x7f0a004d public const int switch_thumb_normal_material_dark = 2131361869; @@ -1676,6 +1676,9 @@ namespace Bit.Android // aapt resource value: 0x7f0a004e public const int switch_thumb_normal_material_light = 2131361870; + // aapt resource value: 0x7f0a006b + public const int tabtext = 2131361899; + // aapt resource value: 0x7f0a0063 public const int white = 2131361891; @@ -2285,466 +2288,478 @@ namespace Bit.Android public const int cogs = 2130837580; // aapt resource value: 0x7f02004d - public const int common_full_open_on_phone = 2130837581; + public const int cogs_selected = 2130837581; // aapt resource value: 0x7f02004e - public const int common_google_signin_btn_icon_dark = 2130837582; + public const int common_full_open_on_phone = 2130837582; // aapt resource value: 0x7f02004f - public const int common_google_signin_btn_icon_dark_disabled = 2130837583; + public const int common_google_signin_btn_icon_dark = 2130837583; // aapt resource value: 0x7f020050 - public const int common_google_signin_btn_icon_dark_focused = 2130837584; + public const int common_google_signin_btn_icon_dark_disabled = 2130837584; // aapt resource value: 0x7f020051 - public const int common_google_signin_btn_icon_dark_normal = 2130837585; + public const int common_google_signin_btn_icon_dark_focused = 2130837585; // aapt resource value: 0x7f020052 - public const int common_google_signin_btn_icon_dark_pressed = 2130837586; + public const int common_google_signin_btn_icon_dark_normal = 2130837586; // aapt resource value: 0x7f020053 - public const int common_google_signin_btn_icon_light = 2130837587; + public const int common_google_signin_btn_icon_dark_pressed = 2130837587; // aapt resource value: 0x7f020054 - public const int common_google_signin_btn_icon_light_disabled = 2130837588; + public const int common_google_signin_btn_icon_light = 2130837588; // aapt resource value: 0x7f020055 - public const int common_google_signin_btn_icon_light_focused = 2130837589; + public const int common_google_signin_btn_icon_light_disabled = 2130837589; // aapt resource value: 0x7f020056 - public const int common_google_signin_btn_icon_light_normal = 2130837590; + public const int common_google_signin_btn_icon_light_focused = 2130837590; // aapt resource value: 0x7f020057 - public const int common_google_signin_btn_icon_light_pressed = 2130837591; + public const int common_google_signin_btn_icon_light_normal = 2130837591; // aapt resource value: 0x7f020058 - public const int common_google_signin_btn_text_dark = 2130837592; + public const int common_google_signin_btn_icon_light_pressed = 2130837592; // aapt resource value: 0x7f020059 - public const int common_google_signin_btn_text_dark_disabled = 2130837593; + public const int common_google_signin_btn_text_dark = 2130837593; // aapt resource value: 0x7f02005a - public const int common_google_signin_btn_text_dark_focused = 2130837594; + public const int common_google_signin_btn_text_dark_disabled = 2130837594; // aapt resource value: 0x7f02005b - public const int common_google_signin_btn_text_dark_normal = 2130837595; + public const int common_google_signin_btn_text_dark_focused = 2130837595; // aapt resource value: 0x7f02005c - public const int common_google_signin_btn_text_dark_pressed = 2130837596; + public const int common_google_signin_btn_text_dark_normal = 2130837596; // aapt resource value: 0x7f02005d - public const int common_google_signin_btn_text_light = 2130837597; + public const int common_google_signin_btn_text_dark_pressed = 2130837597; // aapt resource value: 0x7f02005e - public const int common_google_signin_btn_text_light_disabled = 2130837598; + public const int common_google_signin_btn_text_light = 2130837598; // aapt resource value: 0x7f02005f - public const int common_google_signin_btn_text_light_focused = 2130837599; + public const int common_google_signin_btn_text_light_disabled = 2130837599; // aapt resource value: 0x7f020060 - public const int common_google_signin_btn_text_light_normal = 2130837600; + public const int common_google_signin_btn_text_light_focused = 2130837600; // aapt resource value: 0x7f020061 - public const int common_google_signin_btn_text_light_pressed = 2130837601; + public const int common_google_signin_btn_text_light_normal = 2130837601; // aapt resource value: 0x7f020062 - public const int common_ic_googleplayservices = 2130837602; + public const int common_google_signin_btn_text_light_pressed = 2130837602; // aapt resource value: 0x7f020063 - public const int common_plus_signin_btn_icon_dark = 2130837603; + public const int common_ic_googleplayservices = 2130837603; // aapt resource value: 0x7f020064 - public const int common_plus_signin_btn_icon_dark_disabled = 2130837604; + public const int common_plus_signin_btn_icon_dark = 2130837604; // aapt resource value: 0x7f020065 - public const int common_plus_signin_btn_icon_dark_focused = 2130837605; + public const int common_plus_signin_btn_icon_dark_disabled = 2130837605; // aapt resource value: 0x7f020066 - public const int common_plus_signin_btn_icon_dark_normal = 2130837606; + public const int common_plus_signin_btn_icon_dark_focused = 2130837606; // aapt resource value: 0x7f020067 - public const int common_plus_signin_btn_icon_dark_pressed = 2130837607; + public const int common_plus_signin_btn_icon_dark_normal = 2130837607; // aapt resource value: 0x7f020068 - public const int common_plus_signin_btn_icon_light = 2130837608; + public const int common_plus_signin_btn_icon_dark_pressed = 2130837608; // aapt resource value: 0x7f020069 - public const int common_plus_signin_btn_icon_light_disabled = 2130837609; + public const int common_plus_signin_btn_icon_light = 2130837609; // aapt resource value: 0x7f02006a - public const int common_plus_signin_btn_icon_light_focused = 2130837610; + public const int common_plus_signin_btn_icon_light_disabled = 2130837610; // aapt resource value: 0x7f02006b - public const int common_plus_signin_btn_icon_light_normal = 2130837611; + public const int common_plus_signin_btn_icon_light_focused = 2130837611; // aapt resource value: 0x7f02006c - public const int common_plus_signin_btn_icon_light_pressed = 2130837612; + public const int common_plus_signin_btn_icon_light_normal = 2130837612; // aapt resource value: 0x7f02006d - public const int common_plus_signin_btn_text_dark = 2130837613; + public const int common_plus_signin_btn_icon_light_pressed = 2130837613; // aapt resource value: 0x7f02006e - public const int common_plus_signin_btn_text_dark_disabled = 2130837614; + public const int common_plus_signin_btn_text_dark = 2130837614; // aapt resource value: 0x7f02006f - public const int common_plus_signin_btn_text_dark_focused = 2130837615; + public const int common_plus_signin_btn_text_dark_disabled = 2130837615; // aapt resource value: 0x7f020070 - public const int common_plus_signin_btn_text_dark_normal = 2130837616; + public const int common_plus_signin_btn_text_dark_focused = 2130837616; // aapt resource value: 0x7f020071 - public const int common_plus_signin_btn_text_dark_pressed = 2130837617; + public const int common_plus_signin_btn_text_dark_normal = 2130837617; // aapt resource value: 0x7f020072 - public const int common_plus_signin_btn_text_light = 2130837618; + public const int common_plus_signin_btn_text_dark_pressed = 2130837618; // aapt resource value: 0x7f020073 - public const int common_plus_signin_btn_text_light_disabled = 2130837619; + public const int common_plus_signin_btn_text_light = 2130837619; // aapt resource value: 0x7f020074 - public const int common_plus_signin_btn_text_light_focused = 2130837620; + public const int common_plus_signin_btn_text_light_disabled = 2130837620; // aapt resource value: 0x7f020075 - public const int common_plus_signin_btn_text_light_normal = 2130837621; + public const int common_plus_signin_btn_text_light_focused = 2130837621; // aapt resource value: 0x7f020076 - public const int common_plus_signin_btn_text_light_pressed = 2130837622; + public const int common_plus_signin_btn_text_light_normal = 2130837622; // aapt resource value: 0x7f020077 - public const int design_fab_background = 2130837623; + public const int common_plus_signin_btn_text_light_pressed = 2130837623; // aapt resource value: 0x7f020078 - public const int design_snackbar_background = 2130837624; + public const int design_fab_background = 2130837624; // aapt resource value: 0x7f020079 - public const int envelope = 2130837625; + public const int design_snackbar_background = 2130837625; // aapt resource value: 0x7f02007a - public const int eye = 2130837626; + public const int envelope = 2130837626; // aapt resource value: 0x7f02007b - public const int eye_slash = 2130837627; + public const int eye = 2130837627; // aapt resource value: 0x7f02007c - public const int fa_lock = 2130837628; + public const int eye_slash = 2130837628; // aapt resource value: 0x7f02007d - public const int fingerprint = 2130837629; + public const int fa_lock = 2130837629; // aapt resource value: 0x7f02007e - public const int fingerprint_white = 2130837630; + public const int fa_lock_selected = 2130837630; // aapt resource value: 0x7f02007f - public const int folder = 2130837631; + public const int fingerprint = 2130837631; // aapt resource value: 0x7f020080 - public const int globe = 2130837632; + public const int fingerprint_white = 2130837632; // aapt resource value: 0x7f020081 - public const int hockeyapp_btn_background = 2130837633; + public const int folder = 2130837633; // aapt resource value: 0x7f020082 - public const int ic_audiotrack = 2130837634; + public const int globe = 2130837634; // aapt resource value: 0x7f020083 - public const int ic_audiotrack_light = 2130837635; + public const int hockeyapp_btn_background = 2130837635; // aapt resource value: 0x7f020084 - public const int ic_bluetooth_grey = 2130837636; + public const int ic_audiotrack = 2130837636; // aapt resource value: 0x7f020085 - public const int ic_bluetooth_white = 2130837637; + public const int ic_audiotrack_light = 2130837637; // aapt resource value: 0x7f020086 - public const int ic_cast_dark = 2130837638; + public const int ic_bluetooth_grey = 2130837638; // aapt resource value: 0x7f020087 - public const int ic_cast_disabled_light = 2130837639; + public const int ic_bluetooth_white = 2130837639; // aapt resource value: 0x7f020088 - public const int ic_cast_grey = 2130837640; + public const int ic_cast_dark = 2130837640; // aapt resource value: 0x7f020089 - public const int ic_cast_light = 2130837641; + public const int ic_cast_disabled_light = 2130837641; // aapt resource value: 0x7f02008a - public const int ic_cast_off_light = 2130837642; + public const int ic_cast_grey = 2130837642; // aapt resource value: 0x7f02008b - public const int ic_cast_on_0_light = 2130837643; + public const int ic_cast_light = 2130837643; // aapt resource value: 0x7f02008c - public const int ic_cast_on_1_light = 2130837644; + public const int ic_cast_off_light = 2130837644; // aapt resource value: 0x7f02008d - public const int ic_cast_on_2_light = 2130837645; + public const int ic_cast_on_0_light = 2130837645; // aapt resource value: 0x7f02008e - public const int ic_cast_on_light = 2130837646; + public const int ic_cast_on_1_light = 2130837646; // aapt resource value: 0x7f02008f - public const int ic_cast_white = 2130837647; + public const int ic_cast_on_2_light = 2130837647; // aapt resource value: 0x7f020090 - public const int ic_close_dark = 2130837648; + public const int ic_cast_on_light = 2130837648; // aapt resource value: 0x7f020091 - public const int ic_close_light = 2130837649; + public const int ic_cast_white = 2130837649; // aapt resource value: 0x7f020092 - public const int ic_collapse = 2130837650; + public const int ic_close_dark = 2130837650; // aapt resource value: 0x7f020093 - public const int ic_collapse_00000 = 2130837651; + public const int ic_close_light = 2130837651; // aapt resource value: 0x7f020094 - public const int ic_collapse_00001 = 2130837652; + public const int ic_collapse = 2130837652; // aapt resource value: 0x7f020095 - public const int ic_collapse_00002 = 2130837653; + public const int ic_collapse_00000 = 2130837653; // aapt resource value: 0x7f020096 - public const int ic_collapse_00003 = 2130837654; + public const int ic_collapse_00001 = 2130837654; // aapt resource value: 0x7f020097 - public const int ic_collapse_00004 = 2130837655; + public const int ic_collapse_00002 = 2130837655; // aapt resource value: 0x7f020098 - public const int ic_collapse_00005 = 2130837656; + public const int ic_collapse_00003 = 2130837656; // aapt resource value: 0x7f020099 - public const int ic_collapse_00006 = 2130837657; + public const int ic_collapse_00004 = 2130837657; // aapt resource value: 0x7f02009a - public const int ic_collapse_00007 = 2130837658; + public const int ic_collapse_00005 = 2130837658; // aapt resource value: 0x7f02009b - public const int ic_collapse_00008 = 2130837659; + public const int ic_collapse_00006 = 2130837659; // aapt resource value: 0x7f02009c - public const int ic_collapse_00009 = 2130837660; + public const int ic_collapse_00007 = 2130837660; // aapt resource value: 0x7f02009d - public const int ic_collapse_00010 = 2130837661; + public const int ic_collapse_00008 = 2130837661; // aapt resource value: 0x7f02009e - public const int ic_collapse_00011 = 2130837662; + public const int ic_collapse_00009 = 2130837662; // aapt resource value: 0x7f02009f - public const int ic_collapse_00012 = 2130837663; + public const int ic_collapse_00010 = 2130837663; // aapt resource value: 0x7f0200a0 - public const int ic_collapse_00013 = 2130837664; + public const int ic_collapse_00011 = 2130837664; // aapt resource value: 0x7f0200a1 - public const int ic_collapse_00014 = 2130837665; + public const int ic_collapse_00012 = 2130837665; // aapt resource value: 0x7f0200a2 - public const int ic_collapse_00015 = 2130837666; + public const int ic_collapse_00013 = 2130837666; // aapt resource value: 0x7f0200a3 - public const int ic_errorstatus = 2130837667; + public const int ic_collapse_00014 = 2130837667; // aapt resource value: 0x7f0200a4 - public const int ic_expand = 2130837668; + public const int ic_collapse_00015 = 2130837668; // aapt resource value: 0x7f0200a5 - public const int ic_expand_00000 = 2130837669; + public const int ic_errorstatus = 2130837669; // aapt resource value: 0x7f0200a6 - public const int ic_expand_00001 = 2130837670; + public const int ic_expand = 2130837670; // aapt resource value: 0x7f0200a7 - public const int ic_expand_00002 = 2130837671; + public const int ic_expand_00000 = 2130837671; // aapt resource value: 0x7f0200a8 - public const int ic_expand_00003 = 2130837672; + public const int ic_expand_00001 = 2130837672; // aapt resource value: 0x7f0200a9 - public const int ic_expand_00004 = 2130837673; + public const int ic_expand_00002 = 2130837673; // aapt resource value: 0x7f0200aa - public const int ic_expand_00005 = 2130837674; + public const int ic_expand_00003 = 2130837674; // aapt resource value: 0x7f0200ab - public const int ic_expand_00006 = 2130837675; + public const int ic_expand_00004 = 2130837675; // aapt resource value: 0x7f0200ac - public const int ic_expand_00007 = 2130837676; + public const int ic_expand_00005 = 2130837676; // aapt resource value: 0x7f0200ad - public const int ic_expand_00008 = 2130837677; + public const int ic_expand_00006 = 2130837677; // aapt resource value: 0x7f0200ae - public const int ic_expand_00009 = 2130837678; + public const int ic_expand_00007 = 2130837678; // aapt resource value: 0x7f0200af - public const int ic_expand_00010 = 2130837679; + public const int ic_expand_00008 = 2130837679; // aapt resource value: 0x7f0200b0 - public const int ic_expand_00011 = 2130837680; + public const int ic_expand_00009 = 2130837680; // aapt resource value: 0x7f0200b1 - public const int ic_expand_00012 = 2130837681; + public const int ic_expand_00010 = 2130837681; // aapt resource value: 0x7f0200b2 - public const int ic_expand_00013 = 2130837682; + public const int ic_expand_00011 = 2130837682; // aapt resource value: 0x7f0200b3 - public const int ic_expand_00014 = 2130837683; + public const int ic_expand_00012 = 2130837683; // aapt resource value: 0x7f0200b4 - public const int ic_expand_00015 = 2130837684; + public const int ic_expand_00013 = 2130837684; // aapt resource value: 0x7f0200b5 - public const int ic_media_pause = 2130837685; + public const int ic_expand_00014 = 2130837685; // aapt resource value: 0x7f0200b6 - public const int ic_media_play = 2130837686; + public const int ic_expand_00015 = 2130837686; // aapt resource value: 0x7f0200b7 - public const int ic_media_route_disabled_mono_dark = 2130837687; + public const int ic_media_pause = 2130837687; // aapt resource value: 0x7f0200b8 - public const int ic_media_route_off_mono_dark = 2130837688; + public const int ic_media_play = 2130837688; // aapt resource value: 0x7f0200b9 - public const int ic_media_route_on_0_mono_dark = 2130837689; + public const int ic_media_route_disabled_mono_dark = 2130837689; // aapt resource value: 0x7f0200ba - public const int ic_media_route_on_1_mono_dark = 2130837690; + public const int ic_media_route_off_mono_dark = 2130837690; // aapt resource value: 0x7f0200bb - public const int ic_media_route_on_2_mono_dark = 2130837691; + public const int ic_media_route_on_0_mono_dark = 2130837691; // aapt resource value: 0x7f0200bc - public const int ic_media_route_on_mono_dark = 2130837692; + public const int ic_media_route_on_1_mono_dark = 2130837692; // aapt resource value: 0x7f0200bd - public const int ic_pause_dark = 2130837693; + public const int ic_media_route_on_2_mono_dark = 2130837693; // aapt resource value: 0x7f0200be - public const int ic_pause_light = 2130837694; + public const int ic_media_route_on_mono_dark = 2130837694; // aapt resource value: 0x7f0200bf - public const int ic_play_dark = 2130837695; + public const int ic_pause_dark = 2130837695; // aapt resource value: 0x7f0200c0 - public const int ic_play_light = 2130837696; + public const int ic_pause_light = 2130837696; // aapt resource value: 0x7f0200c1 - public const int ic_speaker_dark = 2130837697; + public const int ic_play_dark = 2130837697; // aapt resource value: 0x7f0200c2 - public const int ic_speaker_group_dark = 2130837698; + public const int ic_play_light = 2130837698; // aapt resource value: 0x7f0200c3 - public const int ic_speaker_group_light = 2130837699; + public const int ic_speaker_dark = 2130837699; // aapt resource value: 0x7f0200c4 - public const int ic_speaker_light = 2130837700; + public const int ic_speaker_group_dark = 2130837700; // aapt resource value: 0x7f0200c5 - public const int ic_successstatus = 2130837701; + public const int ic_speaker_group_light = 2130837701; // aapt resource value: 0x7f0200c6 - public const int ic_tv_dark = 2130837702; + public const int ic_speaker_light = 2130837702; // aapt resource value: 0x7f0200c7 - public const int ic_tv_light = 2130837703; + public const int ic_successstatus = 2130837703; // aapt resource value: 0x7f0200c8 - public const int icon = 2130837704; + public const int ic_tv_dark = 2130837704; // aapt resource value: 0x7f0200c9 - public const int ion_chevron_right = 2130837705; + public const int ic_tv_light = 2130837705; // aapt resource value: 0x7f0200ca - public const int lightbulb = 2130837706; + public const int icon = 2130837706; // aapt resource value: 0x7f0200cb - public const int @lock = 2130837707; + public const int ion_chevron_right = 2130837707; // aapt resource value: 0x7f0200cc - public const int logo = 2130837708; + public const int lightbulb = 2130837708; // aapt resource value: 0x7f0200cd - public const int more = 2130837709; + public const int @lock = 2130837709; // aapt resource value: 0x7f0200ce - public const int mr_dialog_material_background_dark = 2130837710; + public const int logo = 2130837710; // aapt resource value: 0x7f0200cf - public const int mr_dialog_material_background_light = 2130837711; + public const int more = 2130837711; // aapt resource value: 0x7f0200d0 - public const int mr_ic_audiotrack_light = 2130837712; + public const int mr_dialog_material_background_dark = 2130837712; // aapt resource value: 0x7f0200d1 - public const int mr_ic_cast_dark = 2130837713; + public const int mr_dialog_material_background_light = 2130837713; // aapt resource value: 0x7f0200d2 - public const int mr_ic_cast_light = 2130837714; + public const int mr_ic_audiotrack_light = 2130837714; // aapt resource value: 0x7f0200d3 - public const int mr_ic_close_dark = 2130837715; + public const int mr_ic_cast_dark = 2130837715; // aapt resource value: 0x7f0200d4 - public const int mr_ic_close_light = 2130837716; + public const int mr_ic_cast_light = 2130837716; // aapt resource value: 0x7f0200d5 - public const int mr_ic_media_route_connecting_mono_dark = 2130837717; + public const int mr_ic_close_dark = 2130837717; // aapt resource value: 0x7f0200d6 - public const int mr_ic_media_route_connecting_mono_light = 2130837718; + public const int mr_ic_close_light = 2130837718; // aapt resource value: 0x7f0200d7 - public const int mr_ic_media_route_mono_dark = 2130837719; + public const int mr_ic_media_route_connecting_mono_dark = 2130837719; // aapt resource value: 0x7f0200d8 - public const int mr_ic_media_route_mono_light = 2130837720; + public const int mr_ic_media_route_connecting_mono_light = 2130837720; // aapt resource value: 0x7f0200d9 - public const int mr_ic_pause_dark = 2130837721; + public const int mr_ic_media_route_mono_dark = 2130837721; // aapt resource value: 0x7f0200da - public const int mr_ic_pause_light = 2130837722; + public const int mr_ic_media_route_mono_light = 2130837722; // aapt resource value: 0x7f0200db - public const int mr_ic_play_dark = 2130837723; + public const int mr_ic_pause_dark = 2130837723; // aapt resource value: 0x7f0200dc - public const int mr_ic_play_light = 2130837724; - - // aapt resource value: 0x7f0200e6 - public const int notification_template_icon_bg = 2130837734; + public const int mr_ic_pause_light = 2130837724; // aapt resource value: 0x7f0200dd - public const int plus = 2130837725; + public const int mr_ic_play_dark = 2130837725; // aapt resource value: 0x7f0200de - public const int refresh = 2130837726; + public const int mr_ic_play_light = 2130837726; + + // aapt resource value: 0x7f0200ea + public const int notification_template_icon_bg = 2130837738; // aapt resource value: 0x7f0200df - public const int roundedbg = 2130837727; + public const int plus = 2130837727; // aapt resource value: 0x7f0200e0 - public const int roundedbgdark = 2130837728; + public const int refresh = 2130837728; // aapt resource value: 0x7f0200e1 - public const int splash_screen = 2130837729; + public const int roundedbg = 2130837729; // aapt resource value: 0x7f0200e2 - public const int star = 2130837730; + public const int roundedbgdark = 2130837730; // aapt resource value: 0x7f0200e3 - public const int tools = 2130837731; + public const int splash_screen = 2130837731; // aapt resource value: 0x7f0200e4 - public const int upload = 2130837732; + public const int star = 2130837732; // aapt resource value: 0x7f0200e5 - public const int user = 2130837733; + public const int star_selected = 2130837733; + + // aapt resource value: 0x7f0200e6 + public const int tools = 2130837734; + + // aapt resource value: 0x7f0200e7 + public const int tools_selected = 2130837735; + + // aapt resource value: 0x7f0200e8 + public const int upload = 2130837736; + + // aapt resource value: 0x7f0200e9 + public const int user = 2130837737; static Drawable() { diff --git a/src/Android/Resources/drawable-hdpi/cogs.png b/src/Android/Resources/drawable-hdpi/cogs.png index 1c069b1ac..85d021bd0 100644 Binary files a/src/Android/Resources/drawable-hdpi/cogs.png and b/src/Android/Resources/drawable-hdpi/cogs.png differ diff --git a/src/Android/Resources/drawable-hdpi/cogs_selected.png b/src/Android/Resources/drawable-hdpi/cogs_selected.png new file mode 100644 index 000000000..1a6f2f47e Binary files /dev/null and b/src/Android/Resources/drawable-hdpi/cogs_selected.png differ diff --git a/src/Android/Resources/drawable-hdpi/fa_lock.png b/src/Android/Resources/drawable-hdpi/fa_lock.png index b6565c374..96882cc76 100644 Binary files a/src/Android/Resources/drawable-hdpi/fa_lock.png and b/src/Android/Resources/drawable-hdpi/fa_lock.png differ diff --git a/src/Android/Resources/drawable-hdpi/fa_lock_selected.png b/src/Android/Resources/drawable-hdpi/fa_lock_selected.png new file mode 100644 index 000000000..7d4e6f32d Binary files /dev/null and b/src/Android/Resources/drawable-hdpi/fa_lock_selected.png differ diff --git a/src/Android/Resources/drawable-hdpi/star.png b/src/Android/Resources/drawable-hdpi/star.png index 8cbc47a86..2bf8f07f0 100644 Binary files a/src/Android/Resources/drawable-hdpi/star.png and b/src/Android/Resources/drawable-hdpi/star.png differ diff --git a/src/Android/Resources/drawable-hdpi/star_selected.png b/src/Android/Resources/drawable-hdpi/star_selected.png new file mode 100644 index 000000000..8856e0828 Binary files /dev/null and b/src/Android/Resources/drawable-hdpi/star_selected.png differ diff --git a/src/Android/Resources/drawable-hdpi/tools.png b/src/Android/Resources/drawable-hdpi/tools.png index 301aa75ac..b8f4fa643 100644 Binary files a/src/Android/Resources/drawable-hdpi/tools.png and b/src/Android/Resources/drawable-hdpi/tools.png differ diff --git a/src/Android/Resources/drawable-hdpi/tools_selected.png b/src/Android/Resources/drawable-hdpi/tools_selected.png new file mode 100644 index 000000000..774e4e438 Binary files /dev/null and b/src/Android/Resources/drawable-hdpi/tools_selected.png differ diff --git a/src/Android/Resources/drawable-xhdpi/cogs.png b/src/Android/Resources/drawable-xhdpi/cogs.png index 1c069b1ac..7e35e06c1 100644 Binary files a/src/Android/Resources/drawable-xhdpi/cogs.png and b/src/Android/Resources/drawable-xhdpi/cogs.png differ diff --git a/src/Android/Resources/drawable-xhdpi/cogs_selected.png b/src/Android/Resources/drawable-xhdpi/cogs_selected.png new file mode 100644 index 000000000..b9e14d7fa Binary files /dev/null and b/src/Android/Resources/drawable-xhdpi/cogs_selected.png differ diff --git a/src/Android/Resources/drawable-xhdpi/fa_lock.png b/src/Android/Resources/drawable-xhdpi/fa_lock.png index b6565c374..527a6aa93 100644 Binary files a/src/Android/Resources/drawable-xhdpi/fa_lock.png and b/src/Android/Resources/drawable-xhdpi/fa_lock.png differ diff --git a/src/Android/Resources/drawable-xhdpi/fa_lock_selected.png b/src/Android/Resources/drawable-xhdpi/fa_lock_selected.png new file mode 100644 index 000000000..fc178e24e Binary files /dev/null and b/src/Android/Resources/drawable-xhdpi/fa_lock_selected.png differ diff --git a/src/Android/Resources/drawable-xhdpi/star.png b/src/Android/Resources/drawable-xhdpi/star.png index 8cbc47a86..546034ca0 100644 Binary files a/src/Android/Resources/drawable-xhdpi/star.png and b/src/Android/Resources/drawable-xhdpi/star.png differ diff --git a/src/Android/Resources/drawable-xhdpi/star_selected.png b/src/Android/Resources/drawable-xhdpi/star_selected.png new file mode 100644 index 000000000..34457819a Binary files /dev/null and b/src/Android/Resources/drawable-xhdpi/star_selected.png differ diff --git a/src/Android/Resources/drawable-xhdpi/tools.png b/src/Android/Resources/drawable-xhdpi/tools.png index 301aa75ac..cc30113b2 100644 Binary files a/src/Android/Resources/drawable-xhdpi/tools.png and b/src/Android/Resources/drawable-xhdpi/tools.png differ diff --git a/src/Android/Resources/drawable-xhdpi/tools_selected.png b/src/Android/Resources/drawable-xhdpi/tools_selected.png new file mode 100644 index 000000000..be7629e3d Binary files /dev/null and b/src/Android/Resources/drawable-xhdpi/tools_selected.png differ diff --git a/src/Android/Resources/drawable-xxhdpi/cogs.png b/src/Android/Resources/drawable-xxhdpi/cogs.png index 1c069b1ac..040338b17 100644 Binary files a/src/Android/Resources/drawable-xxhdpi/cogs.png and b/src/Android/Resources/drawable-xxhdpi/cogs.png differ diff --git a/src/Android/Resources/drawable-xxhdpi/cogs_selected.png b/src/Android/Resources/drawable-xxhdpi/cogs_selected.png new file mode 100644 index 000000000..991d5902c Binary files /dev/null and b/src/Android/Resources/drawable-xxhdpi/cogs_selected.png differ diff --git a/src/Android/Resources/drawable-xxhdpi/fa_lock.png b/src/Android/Resources/drawable-xxhdpi/fa_lock.png index b6565c374..033949599 100644 Binary files a/src/Android/Resources/drawable-xxhdpi/fa_lock.png and b/src/Android/Resources/drawable-xxhdpi/fa_lock.png differ diff --git a/src/Android/Resources/drawable-xxhdpi/fa_lock_selected.png b/src/Android/Resources/drawable-xxhdpi/fa_lock_selected.png new file mode 100644 index 000000000..e0cc037c5 Binary files /dev/null and b/src/Android/Resources/drawable-xxhdpi/fa_lock_selected.png differ diff --git a/src/Android/Resources/drawable-xxhdpi/star.png b/src/Android/Resources/drawable-xxhdpi/star.png index 8cbc47a86..c311d40d4 100644 Binary files a/src/Android/Resources/drawable-xxhdpi/star.png and b/src/Android/Resources/drawable-xxhdpi/star.png differ diff --git a/src/Android/Resources/drawable-xxhdpi/star_selected.png b/src/Android/Resources/drawable-xxhdpi/star_selected.png new file mode 100644 index 000000000..ffb60fd84 Binary files /dev/null and b/src/Android/Resources/drawable-xxhdpi/star_selected.png differ diff --git a/src/Android/Resources/drawable-xxhdpi/tools.png b/src/Android/Resources/drawable-xxhdpi/tools.png index 301aa75ac..992e31a36 100644 Binary files a/src/Android/Resources/drawable-xxhdpi/tools.png and b/src/Android/Resources/drawable-xxhdpi/tools.png differ diff --git a/src/Android/Resources/drawable-xxhdpi/tools_selected.png b/src/Android/Resources/drawable-xxhdpi/tools_selected.png new file mode 100644 index 000000000..6304abfab Binary files /dev/null and b/src/Android/Resources/drawable-xxhdpi/tools_selected.png differ diff --git a/src/Android/Resources/drawable-xxxhdpi/cogs.png b/src/Android/Resources/drawable-xxxhdpi/cogs.png index 1c069b1ac..b12b500c0 100644 Binary files a/src/Android/Resources/drawable-xxxhdpi/cogs.png and b/src/Android/Resources/drawable-xxxhdpi/cogs.png differ diff --git a/src/Android/Resources/drawable-xxxhdpi/cogs_selected.png b/src/Android/Resources/drawable-xxxhdpi/cogs_selected.png new file mode 100644 index 000000000..bce1b2939 Binary files /dev/null and b/src/Android/Resources/drawable-xxxhdpi/cogs_selected.png differ diff --git a/src/Android/Resources/drawable-xxxhdpi/fa_lock.png b/src/Android/Resources/drawable-xxxhdpi/fa_lock.png index b6565c374..c7cc70ffb 100644 Binary files a/src/Android/Resources/drawable-xxxhdpi/fa_lock.png and b/src/Android/Resources/drawable-xxxhdpi/fa_lock.png differ diff --git a/src/Android/Resources/drawable-xxxhdpi/fa_lock_selected.png b/src/Android/Resources/drawable-xxxhdpi/fa_lock_selected.png new file mode 100644 index 000000000..0b550f6e6 Binary files /dev/null and b/src/Android/Resources/drawable-xxxhdpi/fa_lock_selected.png differ diff --git a/src/Android/Resources/drawable-xxxhdpi/star.png b/src/Android/Resources/drawable-xxxhdpi/star.png index 8cbc47a86..44da06e9e 100644 Binary files a/src/Android/Resources/drawable-xxxhdpi/star.png and b/src/Android/Resources/drawable-xxxhdpi/star.png differ diff --git a/src/Android/Resources/drawable-xxxhdpi/star_selected.png b/src/Android/Resources/drawable-xxxhdpi/star_selected.png new file mode 100644 index 000000000..d24d5080a Binary files /dev/null and b/src/Android/Resources/drawable-xxxhdpi/star_selected.png differ diff --git a/src/Android/Resources/drawable-xxxhdpi/tools.png b/src/Android/Resources/drawable-xxxhdpi/tools.png index 301aa75ac..4ae8bbe9e 100644 Binary files a/src/Android/Resources/drawable-xxxhdpi/tools.png and b/src/Android/Resources/drawable-xxxhdpi/tools.png differ diff --git a/src/Android/Resources/drawable-xxxhdpi/tools_selected.png b/src/Android/Resources/drawable-xxxhdpi/tools_selected.png new file mode 100644 index 000000000..44a5d254e Binary files /dev/null and b/src/Android/Resources/drawable-xxxhdpi/tools_selected.png differ diff --git a/src/Android/Resources/drawable/cogs.png b/src/Android/Resources/drawable/cogs.png index 1c069b1ac..b11a88b2e 100644 Binary files a/src/Android/Resources/drawable/cogs.png and b/src/Android/Resources/drawable/cogs.png differ diff --git a/src/Android/Resources/drawable/cogs_selected.png b/src/Android/Resources/drawable/cogs_selected.png new file mode 100644 index 000000000..466522930 Binary files /dev/null and b/src/Android/Resources/drawable/cogs_selected.png differ diff --git a/src/Android/Resources/drawable/fa_lock.png b/src/Android/Resources/drawable/fa_lock.png index b6565c374..45538ef5a 100644 Binary files a/src/Android/Resources/drawable/fa_lock.png and b/src/Android/Resources/drawable/fa_lock.png differ diff --git a/src/Android/Resources/drawable/fa_lock_selected.png b/src/Android/Resources/drawable/fa_lock_selected.png new file mode 100644 index 000000000..7ca4ed6f5 Binary files /dev/null and b/src/Android/Resources/drawable/fa_lock_selected.png differ diff --git a/src/Android/Resources/drawable/star.png b/src/Android/Resources/drawable/star.png index 8cbc47a86..906b0abd4 100644 Binary files a/src/Android/Resources/drawable/star.png and b/src/Android/Resources/drawable/star.png differ diff --git a/src/Android/Resources/drawable/star_selected.png b/src/Android/Resources/drawable/star_selected.png new file mode 100644 index 000000000..f1f6e7f38 Binary files /dev/null and b/src/Android/Resources/drawable/star_selected.png differ diff --git a/src/Android/Resources/drawable/tools.png b/src/Android/Resources/drawable/tools.png index 301aa75ac..91ca58dbd 100644 Binary files a/src/Android/Resources/drawable/tools.png and b/src/Android/Resources/drawable/tools.png differ diff --git a/src/Android/Resources/drawable/tools_selected.png b/src/Android/Resources/drawable/tools_selected.png new file mode 100644 index 000000000..6a0edc787 Binary files /dev/null and b/src/Android/Resources/drawable/tools_selected.png differ diff --git a/src/Android/Resources/layout/tabs.axml b/src/Android/Resources/layout/tabs.axml index 97cb27ad3..b8d4c541c 100644 --- a/src/Android/Resources/layout/tabs.axml +++ b/src/Android/Resources/layout/tabs.axml @@ -7,5 +7,9 @@ android:background="?attr/colorPrimary" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:tabIndicatorColor="@android:color/white" + app:tabMaxWidth="0dp" app:tabGravity="fill" + app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget" + app:tabTextColor="@color/tabtext" + app:tabSelectedTextColor="@android:color/white" app:tabMode="fixed" /> \ No newline at end of file diff --git a/src/Android/Resources/values/colors.xml b/src/Android/Resources/values/colors.xml index f23da718e..248359a59 100644 --- a/src/Android/Resources/values/colors.xml +++ b/src/Android/Resources/values/colors.xml @@ -8,4 +8,5 @@ #3c8dbc #222d32 #3883af + #c5ddeb diff --git a/src/Android/Resources/values/styles.xml b/src/Android/Resources/values/styles.xml index b090271ea..70ddd5208 100644 --- a/src/Android/Resources/values/styles.xml +++ b/src/Android/Resources/values/styles.xml @@ -1,6 +1,6 @@  - @@ -12,5 +12,6 @@ @color/primary @color/lightgray true + @color/darkaccent