diff --git a/src/ArtTestApp/ArtTestApp.csproj b/src/ArtTestApp/ArtTestApp.csproj index b207682c..b969c0e3 100644 --- a/src/ArtTestApp/ArtTestApp.csproj +++ b/src/ArtTestApp/ArtTestApp.csproj @@ -3,8 +3,6 @@ Debug AnyCPU - 8.0.30703 - 2.0 {1FF6C335-A627-43C9-AAA7-CBAC2E74CD18} {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} Library @@ -26,7 +24,6 @@ DEBUG;TRACE prompt 4 - True None @@ -37,7 +34,6 @@ prompt 4 False - SdkOnly diff --git a/src/KeePass.sln b/src/KeePass.sln index c531de97..8a0931b9 100644 --- a/src/KeePass.sln +++ b/src/KeePass.sln @@ -37,6 +37,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlayServicesTest", "PlaySer EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "App1", "App1\App1.csproj", "{A29ECF2C-3313-4F93-8B78-DC3F1319E835}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MaterialTest", "MaterialTest\MaterialTest.csproj", "{83B92CEE-9923-44E6-B0B4-9930D0BFE95E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MaterialTest2", "MaterialTest2\MaterialTest2.csproj", "{B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -404,6 +408,55 @@ Global {A29ECF2C-3313-4F93-8B78-DC3F1319E835}.ReleaseNoNet|Mixed Platforms.Deploy.0 = Release|Any CPU {A29ECF2C-3313-4F93-8B78-DC3F1319E835}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU {A29ECF2C-3313-4F93-8B78-DC3F1319E835}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Debug|Win32.ActiveCfg = Debug|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Debug|x64.ActiveCfg = Debug|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Release|Any CPU.Build.0 = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Release|Any CPU.Deploy.0 = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Release|Win32.ActiveCfg = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.Release|x64.ActiveCfg = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.ReleaseNoNet|Any CPU.ActiveCfg = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.ReleaseNoNet|Any CPU.Build.0 = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.ReleaseNoNet|Any CPU.Deploy.0 = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.ReleaseNoNet|Mixed Platforms.Deploy.0 = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU + {83B92CEE-9923-44E6-B0B4-9930D0BFE95E}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Debug|Win32.ActiveCfg = Debug|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Debug|Win32.Build.0 = Debug|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Debug|x64.ActiveCfg = Debug|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Debug|x64.Build.0 = Debug|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Release|Any CPU.Build.0 = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Release|Win32.ActiveCfg = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Release|Win32.Build.0 = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Release|x64.ActiveCfg = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.Release|x64.Build.0 = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.ReleaseNoNet|Any CPU.ActiveCfg = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.ReleaseNoNet|Any CPU.Build.0 = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.ReleaseNoNet|Win32.Build.0 = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU + {B7BBC4A2-0301-4DFF-B03C-C88CD4F1F890}.ReleaseNoNet|x64.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -414,7 +467,7 @@ Global {9A4C5BAA-1A8A-49B4-BBC3-60D4871FB36C} = {CAC7DBC4-E21F-41E1-B33A-E3A04585F6A3} EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = keepass2android\keepass2android.csproj + StartupItem = MaterialTest2\MaterialTest2.csproj Policies = $0 $0.DotNetNamingPolicy = $1 $1.DirectoryNamespaceAssociation = None diff --git a/src/MaterialTest/Resources/layout/toolbar.xml b/src/MaterialTest/Resources/layout/toolbar.xml new file mode 100644 index 00000000..b6dc0a2e --- /dev/null +++ b/src/MaterialTest/Resources/layout/toolbar.xml @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/src/MaterialTest/Resources/layout/toolbar2.xml b/src/MaterialTest/Resources/layout/toolbar2.xml new file mode 100644 index 00000000..b6dc0a2e --- /dev/null +++ b/src/MaterialTest/Resources/layout/toolbar2.xml @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/src/MaterialTest/Resources/values-v21/styles.xml b/src/MaterialTest/Resources/values-v21/styles.xml new file mode 100644 index 00000000..00f20009 --- /dev/null +++ b/src/MaterialTest/Resources/values-v21/styles.xml @@ -0,0 +1,14 @@ + + + + + diff --git a/src/MaterialTest/Resources/values/styles.xml b/src/MaterialTest/Resources/values/styles.xml new file mode 100644 index 00000000..5f5cda29 --- /dev/null +++ b/src/MaterialTest/Resources/values/styles.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/src/MaterialTest/packages.config b/src/MaterialTest/packages.config new file mode 100644 index 00000000..3cbc47d1 --- /dev/null +++ b/src/MaterialTest/packages.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/MaterialTest2/Assets/AboutAssets.txt b/src/MaterialTest2/Assets/AboutAssets.txt new file mode 100644 index 00000000..a9b0638e --- /dev/null +++ b/src/MaterialTest2/Assets/AboutAssets.txt @@ -0,0 +1,19 @@ +Any raw assets you want to be deployed with your application can be placed in +this directory (and child directories) and given a Build Action of "AndroidAsset". + +These files will be deployed with your package and will be accessible using Android's +AssetManager, like this: + +public class ReadAsset : Activity +{ + protected override void OnCreate (Bundle bundle) + { + base.OnCreate (bundle); + + InputStream input = Assets.Open ("my_asset.txt"); + } +} + +Additionally, some Android functions will automatically load asset files: + +Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); diff --git a/src/MaterialTest2/MainActivity.cs b/src/MaterialTest2/MainActivity.cs new file mode 100644 index 00000000..b3f1b877 --- /dev/null +++ b/src/MaterialTest2/MainActivity.cs @@ -0,0 +1,100 @@ +using System; +using Android.App; +using Android.Content; +using Android.Runtime; +using Android.Support.V4.View; +using Android.Support.V4.Widget; +using Android.Support.V7.App; +using Android.Views; +using Android.Widget; +using Android.OS; + +using Toolbar = Android.Support.V7.Widget.Toolbar; +namespace MaterialTest2 +{ + [Activity(Theme="@style/MyTheme", Label = "MaterialTest", MainLauncher = true, Icon = "@drawable/icon")] + public class MainActivity : ActionBarActivity + { + int count = 1; + + private DrawerLayout mDrawerLayout; + //private RecyclerView mDrawerList; + private ActionBarDrawerToggle mDrawerToggle; + + private string mDrawerTitle; + + protected override void OnCreate(Bundle bundle) + { + base.OnCreate(bundle); + + // Set our view from the "main" layout resource + SetContentView(Resource.Layout.Main); + + mDrawerTitle = this.Title; + //mPlanetTitles = this.Resources.GetStringArray (Resource.Array.planets_array); + mDrawerLayout = FindViewById(Resource.Id.drawerLayout); + //mDrawerList = FindViewById (Resource.Id.left_drawer); + + + //mDrawerLayout.SetDrawerShadow (Resource.Drawable.drawer_shadow, GravityCompat.Start); + // improve performance by indicating the list if fixed size. + //mDrawerList.HasFixedSize = true; + //mDrawerList.SetLayoutManager (new LinearLayoutManager (this)); + + // set up the drawer's list view with items and click listener + //mDrawerList.SetAdapter (new PlanetAdapter (mPlanetTitles, this)); + // enable ActionBar app icon to behave as action to toggle nav drawer + + // ActionBarDrawerToggle ties together the the proper interactions + // between the sliding drawer and the action bar app icon + + mDrawerToggle = new MyActionBarDrawerToggle (this, mDrawerLayout, + Resource.Drawable.abc_ic_menu_copy_mtrl_am_alpha, + Resource.String.drawer_open, + Resource.String.drawer_close); + + mDrawerLayout.SetDrawerListener (mDrawerToggle); + + // Get our button from the layout resource, + // and attach an event to it + Button button = FindViewById