Permalink
Browse files

License headers changed. Preparred sample for store release.

  • Loading branch information...
1 parent 79656fa commit 645f297f93447af908fbf872f8880a39b38c349e @Cheesebaron Cheesebaron committed Mar 27, 2013
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
using System.Collections.Generic;
using Android.Content;
using Android.OS;
@@ -30,22 +47,22 @@ public class TabsAdapter : FragmentPagerAdapter, TabHost.IOnTabChangeListener, V
public class TabInfo
{
- public string tag;
- public Class clss;
- public Bundle args;
- public Fragment fragment { get; set; }
+ public string Tag;
+ public Class Class;
+ public Bundle Args;
+ public Fragment Fragment { get; set; }
- public TabInfo(string _tag, Class _class, Bundle _args)
+ public TabInfo(string tag, Class _class, Bundle args)
{
- tag = _tag;
- clss = _class;
- args = _args;
+ Tag = tag;
+ Class = _class;
+ Args = args;
}
}
- public class DummyTabFactory : Java.Lang.Object, TabHost.ITabContentFactory
+ public class DummyTabFactory : Object, TabHost.ITabContentFactory
{
- private Context _context;
+ private readonly Context _context;
public DummyTabFactory(Context context)
{
@@ -96,12 +113,12 @@ public override int Count
public override Fragment GetItem(int position)
{
var info = _tabs[position];
- return Fragment.Instantiate(_context, info.clss.Name, info.args);
+ return Fragment.Instantiate(_context, info.Class.Name, info.Args);
}
public void OnTabChanged(string tabId)
{
- int position = _tabHost.CurrentTab;
+ var position = _tabHost.CurrentTab;
_viewPager.CurrentItem = position;
}
@@ -2,9 +2,7 @@
* Copyright (C) 2010 Johan Nilsson <http://markupartist.com>
*
* Original (https://github.com/johannilsson/android-actionbar) Ported to Mono for Android
- * Copyright (C) 2012 Tomasz Cielecki <tomasz@ostebaronen.dk>
- *
- * Modified by James Montemagno Copyright 2012 http://www.montemagno.com
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,7 +1,5 @@
/*
- * Copyright (C) 2012 James Montemagno <http://www.montemagno.com>
- *
- * Modified by Tomaz Cielecki Copyright (C) 2012 <tomasz@ostebaronen.dk>
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
/*
* Copyright (C) 2010 Johan Nilsson <http://markupartist.com>
*
- * Original (https://github.com/johannilsson/android-actionbar) Ported to Mono for Android
- * Copyright (C) 2012 Tomasz Cielecki <tomasz@ostebaronen.dk>
+ * Original (https://github.com/johannilsson/android-actionbar) Ported to Xamarin.Android
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Tomasz Cielecki <tomasz@ostebaronen.dk>
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
/*
* Copyright (C) 2010 Johan Nilsson <http://markupartist.com>
*
- * Original (https://github.com/johannilsson/android-actionbar) Ported to Mono for Android
- * Copyright (C) 2012 Tomasz Cielecki <tomasz@ostebaronen.dk>
+ * Original (https://github.com/johannilsson/android-actionbar) Ported to Xamarin.Android
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,10 +1,8 @@
/*
* Copyright (C) 2010 Johan Nilsson <http://markupartist.com>
*
- * Original (https://github.com/johannilsson/android-actionbar) Ported to Mono for Android
- * Copyright (C) 2012 Tomasz Cielecki <tomasz@ostebaronen.dk>
- *
- * Modified by James Montemagno Copyright 2012 http://www.montemagno.com
+ * Original (https://github.com/johannilsson/android-actionbar) Ported to Xamarin.Android
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,10 +1,8 @@
/*
* Copyright (C) 2010 Johan Nilsson <http://markupartist.com>
*
- * Original (https://github.com/johannilsson/android-actionbar) Ported to Mono for Android
- * Copyright (C) 2012 Tomasz Cielecki <tomasz@ostebaronen.dk>
- *
- * Modified by James Montemagno Copyright 2012 http://www.montemagno.com
+ * Original (https://github.com/johannilsson/android-actionbar) Ported to Xamarin.Android
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,10 +1,8 @@
/*
* Copyright (C) 2010 Johan Nilsson <http://markupartist.com>
*
- * Original (https://github.com/johannilsson/android-actionbar) Ported to Mono for Android
- * Copyright (C) 2012 Tomasz Cielecki <tomasz@ostebaronen.dk>
- *
- * Modified by James Montemagno Copyright 2012 http://www.montemagno.com
+ * Original (https://github.com/johannilsson/android-actionbar) Ported to Xamarin.Android
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 James Montemagno <http://www.montemagno.com>
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 James Montemagno (http://www.montemagno.com)
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ namespace LegacyBar.Library.BarBase
[Activity(Label = "")]
public class LegacyBarActivity : Activity
{
- public new Bar.LegacyBar LegacyBar { get; set; }
+ public Bar.LegacyBar LegacyBar { get; set; }
public int MenuId { get; set; }
public override bool OnPrepareOptionsMenu(IMenu menu)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 James Montemagno (http://www.montemagno.com)
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ namespace LegacyBar.Library.BarBase
[Activity(Label = "")]
public class LegacyBarFragmentActivity : FragmentActivity
{
- public new Bar.LegacyBar ActionBar { get; set; }
+ public Bar.LegacyBar ActionBar { get; set; }
public int MenuId { get; set; }
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 James Montemagno (http://www.montemagno.com)
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ namespace LegacyBar.Library.BarBase
[Activity(Label = "")]
public class LegacyBarListActivity : ListActivity
{
- public new Bar.LegacyBar ActionBar { get; set; }
+ public Bar.LegacyBar ActionBar { get; set; }
public int MenuId { get; set; }
public override bool OnPrepareOptionsMenu(IMenu menu)
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.17929
+// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -15,10 +15,15 @@ namespace LegacyBar.Library
{
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Novell.MonoDroid.Build.Tasks", "1.0.0.0")]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
public partial class Resource
{
+ Resource()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues ();
+ }
+
public partial class Attribute
{
@@ -1,7 +1,6 @@
/*
*
- * Copyright (C) 2012 Tomasz Cielecki <tomasz@ostebaronen.dk>
- * and James Montemagno Copyright 2012 http://www.montemagno.com
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,8 +1,5 @@
/*
- * Original (https://github.com/johannilsson/android-actionbar) Ported to Mono for Android
- * Copyright (C) 2012 Tomasz Cielecki <tomasz@ostebaronen.dk>
- *
- * Modified by James Montemagno Copyright 2012 http://www.montemagno.com
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,8 +26,8 @@
namespace LegacyBar.Sample
{
- [Activity(Label = "Action Bar", MainLauncher = true, LaunchMode = LaunchMode.SingleTop,
- Icon = "@drawable/ic_launcher", Theme = "@style/MyTheme")]
+ [Activity(Label = "LegacyBar Sample", MainLauncher = true, LaunchMode = LaunchMode.SingleTop,
+ Icon = "@drawable/icon", Theme = "@style/MyTheme")]
public class HomeActivity : LegacyBarActivity
{
protected override void OnCreate(Bundle bundle)
@@ -39,7 +39,10 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
- <AndroidLinkMode>SdkOnly</AndroidLinkMode>
+ <AndroidLinkMode>Full</AndroidLinkMode>
+ <AndroidLinkSkip />
+ <EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
+ <BundleAssemblies>False</BundleAssemblies>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android.Support.v4" />
@@ -73,7 +76,6 @@
</AndroidResource>
</ItemGroup>
<ItemGroup>
- <AndroidResource Include="Resources\drawable\Icon.png" />
<AndroidResource Include="Resources\layout\simple_fragment.axml">
<SubType>AndroidResource</SubType>
</AndroidResource>
@@ -261,4 +263,13 @@
<ItemGroup>
<AndroidResource Include="Resources\drawable-hdpi\ic_action_up_dark.png" />
</ItemGroup>
+ <ItemGroup>
+ <AndroidResource Include="Resources\drawable\icon.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <AndroidResource Include="Resources\drawable-hdpi\icon.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <AndroidResource Include="Resources\drawable-xhdpi\icon.png" />
+ </ItemGroup>
</Project>
@@ -1,8 +1,5 @@
/*
- * Original (https://github.com/johannilsson/android-actionbar) Ported to Mono for Android
- * Copyright (C) 2012 Tomasz Cielecki <tomasz@ostebaronen.dk>
- *
- * Modified by James Montemagno Copyright 2012 http://www.montemagno.com
+ * Copyright (C) 2013 LegacyBar - @Cheesebaron & @JamesMontemagno
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,16 +1,15 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
using Android.App;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
-[assembly: AssemblyTitle("MonoDroid.LegacyBar.Sample")]
+[assembly: AssemblyTitle("LegacyBar.Sample")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
+[assembly: AssemblyCompany("LegacyBar")]
[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("tcielecki")]
+[assembly: AssemblyCopyright("Tomasz Cielecki & James Montemagno")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -26,3 +25,8 @@
//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]
+#if DEBUG
+[assembly: Application(Debuggable = true, Icon = "@drawable/icon")]
+#else
+[assembly: Application(Debuggable = false, Icon = "@drawable/icon")]
+#endif
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.17929
+// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -15,10 +15,15 @@ namespace LegacyBar.Sample
{
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Novell.MonoDroid.Build.Tasks", "1.0.0.0")]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
public partial class Resource
{
+ Resource()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues ();
+ }
+
public static void UpdateIdValues()
{
LegacyBar.Library.Resource.Attribute.background = LegacyBar.Sample.Resource.Attribute.background;
@@ -589,13 +594,7 @@ public partial class Drawable
public const int ic_menu_up = 2130837558;
// aapt resource value: 0x7f020037
- public const int ic_title_export_default = 2130837559;
-
- // aapt resource value: 0x7f020038
- public const int ic_title_share_default = 2130837560;
-
- // aapt resource value: 0x7f020039
- public const int Icon = 2130837561;
+ public const int icon = 2130837559;
private Drawable()
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -20,6 +20,7 @@ Global
{B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

0 comments on commit 645f297

Please sign in to comment.