Skip to content

Commit

Permalink
Renamed stuff to LegacyBar!
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheesebaron committed Mar 26, 2013
1 parent d845753 commit 5995df0
Show file tree
Hide file tree
Showing 30 changed files with 1,660 additions and 1,645 deletions.
60 changes: 30 additions & 30 deletions MonoDroid.ActionBar.sln → LegacyBar.sln
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDroid.ActionBar.Library", "MonoDroid.ActionBar.Library\MonoDroid.ActionBar.Library.csproj", "{371657B5-2C38-4D23-B7C1-6C053EB55FB8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDroid.ActionBar.Sample", "MonoDroid.ActionBar.Sample\MonoDroid.ActionBar.Sample.csproj", "{B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{371657B5-2C38-4D23-B7C1-6C053EB55FB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{371657B5-2C38-4D23-B7C1-6C053EB55FB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{371657B5-2C38-4D23-B7C1-6C053EB55FB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{371657B5-2C38-4D23-B7C1-6C053EB55FB8}.Release|Any CPU.Build.0 = Release|Any CPU
{B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}.Debug|Any CPU.Build.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}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = MonoDroid.ActionBar.Sample\MonoDroid.ActionBar.Sample.csproj
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LegacyBar.Library", "MonoDroid.ActionBar.Library\LegacyBar.Library.csproj", "{371657B5-2C38-4D23-B7C1-6C053EB55FB8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LegacyBar.Sample", "MonoDroid.ActionBar.Sample\LegacyBar.Sample.csproj", "{B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{371657B5-2C38-4D23-B7C1-6C053EB55FB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{371657B5-2C38-4D23-B7C1-6C053EB55FB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{371657B5-2C38-4D23-B7C1-6C053EB55FB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{371657B5-2C38-4D23-B7C1-6C053EB55FB8}.Release|Any CPU.Build.0 = Release|Any CPU
{B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1EBAE8B-31B5-4BE3-8AD7-C15A1C7056A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{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
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = MonoDroid.ActionBar.Sample\MonoDroid.ActionBar.Sample.csproj
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
using Java.Lang;
using Android.Support.V4.View;


namespace MonoDroid.ActionBar.Library
namespace LegacyBar.Library.Adapters
{

/**
Expand All @@ -24,10 +23,10 @@ namespace MonoDroid.ActionBar.Library
*/
public class TabsAdapter : FragmentPagerAdapter, TabHost.IOnTabChangeListener, ViewPager.IOnPageChangeListener
{
private Context _context;
private TabHost _tabHost;
private ViewPager _viewPager;
private List<TabInfo> _tabs = new List<TabInfo>();
private readonly Context _context;
private readonly TabHost _tabHost;
private readonly ViewPager _viewPager;
private readonly List<TabInfo> _tabs = new List<TabInfo>();

public class TabInfo
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
/*
* 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 <[email protected]>
*
* Modified by James Montemagno Copyright 2012 http://www.montemagno.com
*
* 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 Android.Views;

namespace MonoDroid.ActionBar.Library
{
public enum ActionType
{
IfRoom,
Never,
WithText,//not supported
Always,
CollapseActionView
}
public interface IActionBarAction
{
int GetDrawable();

void PerformAction(View view);

/// <summary>
/// Sets the current position to determine if it shoudl be put in the action bar or not.
/// </summary>
int CurrentPosition { get; set;}

ActionType ActionType { get; set; }

/// <summary>
/// Displays if user holds down action bar item.
/// </summary>
int PopUpMessage { get; set; }
}
/*
* 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 <[email protected]>
*
* Modified by James Montemagno Copyright 2012 http://www.montemagno.com
*
* 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 Android.Views;

namespace LegacyBar.Library.Bar
{
public enum ActionType
{
IfRoom,
Never,
WithText,//not supported
Always,
CollapseActionView
}
public interface IActionBarAction
{
int GetDrawable();

void PerformAction(View view);

/// <summary>
/// Sets the current position to determine if it shoudl be put in the action bar or not.
/// </summary>
int CurrentPosition { get; set;}

ActionType ActionType { get; set; }

/// <summary>
/// Displays if user holds down action bar item.
/// </summary>
int PopUpMessage { get; set; }
}
}
Loading

0 comments on commit 5995df0

Please sign in to comment.