forked from Cheesebaron/LegacyBar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d845753
commit 5995df0
Showing
30 changed files
with
1,660 additions
and
1,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 52 additions & 52 deletions
104
...Bar.Library/ActionBar/IActionBarAction.cs → ...ActionBar.Library/Bar/IActionBarAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
Oops, something went wrong.