Skip to content

Commit 1adaba2

Browse files
committed
v2.6.4 release
- add compatibility with universal DSSDK Xamarin nuget pack v2.6.4 - minor bug fixes and improments
1 parent dc79f66 commit 1adaba2

File tree

83 files changed

+17279
-15090
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+17279
-15090
lines changed

.gitignore

Lines changed: 299 additions & 299 deletions
Large diffs are not rendered by default.
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# v7 AppCompat Android Support Library
2-
3-
4-
This library adds support for the Toolbar interface design pattern (including support for the ActionBar design pattern). This library includes support for material design user interface implementations.
5-
6-
7-
8-
9-
## Android Support Libraries
10-
11-
The Android Support Libraries are a set of code libraries that provide backward-compatible versions of Android framework APIs as well as features that are only available through the library APIs. Each Support Library is backward-compatible to a specific Android API level. This design means that your applications can use the libraries' features and still be compatible with devices running older versions of Android.
12-
13-
Including the Support Libraries in your Android project is considered a best practice for application developers, depending on the range of platform versions your app is targeting and the APIs that it uses. Using the features the libraries provide can help you improve the look of your application, increase performance and broaden the reach of your application to more users.
14-
15-
16-
1+
# v7 AppCompat Android Support Library
2+
3+
4+
This library adds support for the Toolbar interface design pattern (including support for the ActionBar design pattern). This library includes support for material design user interface implementations.
5+
6+
7+
8+
9+
## Android Support Libraries
10+
11+
The Android Support Libraries are a set of code libraries that provide backward-compatible versions of Android framework APIs as well as features that are only available through the library APIs. Each Support Library is backward-compatible to a specific Android API level. This design means that your applications can use the libraries' features and still be compatible with devices running older versions of Android.
12+
13+
Including the Support Libraries in your Android project is considered a best practice for application developers, depending on the range of platform versions your app is targeting and the APIs that it uses. Using the features the libraries provide can help you improve the look of your application, increase performance and broaden the reach of your application to more users.
14+
15+
16+
Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,77 @@
1-
2-
This library adds support for the [Action Bar][4] user interface [design pattern][5]. Here are a few of the key classes included in the v7 appcompat library:
3-
4-
- ActionBar - Provides an implementation of the action bar user interface pattern. For more information on using the Action Bar, see the Action Bar developer guide.
5-
- ActionBarActivity - Adds an application activity class that must be used as a base class for activities that uses the Support Library action bar implementation.
6-
- ShareActionProvider - Adds support for a standardized sharing action (such as email or posting to social applications) that can be included in an action bar.
7-
8-
9-
### Target SDK Version
10-
NOTE: Using this support library requires that your app have its Target Android Version (*targetSdkVersion*) set to Lollipop (5.0 - API Level 21) or higher, or you will have *aapt* related compile errors. You can still set the Target Framework which your app is compiled against as low as Android 4.0.3 (API Level 15).
11-
12-
13-
Using ActionBar
14-
------
15-
16-
```csharp
17-
[Activity (Label = "@string/action_bar_mechanics", Theme = "@style/Theme.AppCompat")]
18-
public class ActionBarMechanics : ActionBarActivity
19-
{
20-
protected override void OnCreate (Bundle bundle)
21-
{
22-
base.OnCreate (bundle);
23-
24-
// The Action Bar is a window feature. The feature must be requested
25-
// before setting a content view. Normally this is set automatically
26-
// by your Activity's theme in your manifest. The provided system
27-
// theme Theme.WithActionBar enables this for you. Use it as you would
28-
// use Theme.NoTitleBar. You can add an Action Bar to your own themes
29-
// by adding the element <item name="android:windowActionBar">true</item>
30-
// to your style definition.
31-
SupportRequestWindowFeature(WindowCompat.FeatureActionBar);
32-
}
33-
34-
public override bool OnCreateOptionsMenu (Android.Views.IMenu menu)
35-
{
36-
// Menu items default to never show in the action bar. On most devices this means
37-
// they will show in the standard options menu panel when the menu button is pressed.
38-
// On xlarge-screen devices a "More" button will appear in the far right of the
39-
// Action Bar that will display remaining items in a cascading menu.
40-
41-
menu.Add(new Java.Lang.String ("Normal item"));
42-
43-
var actionItem = menu.Add(new Java.Lang.String ("Action Button"));
44-
45-
// Items that show as actions should favor the "if room" setting, which will
46-
// prevent too many buttons from crowding the bar. Extra items will show in the
47-
// overflow area.
48-
MenuItemCompat.SetShowAsAction(actionItem, MenuItemCompat.ShowAsActionIfRoom);
49-
50-
// Items that show as actions are strongly encouraged to use an icon.
51-
// These icons are shown without a text description, and therefore should
52-
// be sufficiently descriptive on their own.
53-
actionItem.SetIcon(Android.Resource.Drawable.IcMenuShare);
54-
return true;
55-
}
56-
57-
public override bool OnOptionsItemSelected (Android.Views.IMenuItem item)
58-
{
59-
Android.Widget.Toast.MakeText (this,
60-
"Selected Item: " +
61-
item.TitleFormatted,
62-
Android.Widget.ToastLength.Short).Show();
63-
64-
return true;
65-
}
66-
}
67-
```
68-
69-
70-
*Portions of this page are modifications based on [work][3] created and [shared by the Android Open Source Project][1] and used according to terms described in the [Creative Commons 2.5 Attribution License][2].*
71-
72-
[1]: http://code.google.com/policies.html
73-
[2]: http://creativecommons.org/licenses/by/2.5/
74-
[3]: http://developer.android.com/tools/support-library/features.html
75-
[4]: http://developer.android.com/guide/topics/ui/actionbar.html
76-
[5]: http://developer.android.com/design/patterns/actionbar.html
77-
1+
2+
This library adds support for the [Action Bar][4] user interface [design pattern][5]. Here are a few of the key classes included in the v7 appcompat library:
3+
4+
- ActionBar - Provides an implementation of the action bar user interface pattern. For more information on using the Action Bar, see the Action Bar developer guide.
5+
- ActionBarActivity - Adds an application activity class that must be used as a base class for activities that uses the Support Library action bar implementation.
6+
- ShareActionProvider - Adds support for a standardized sharing action (such as email or posting to social applications) that can be included in an action bar.
7+
8+
9+
### Target SDK Version
10+
NOTE: Using this support library requires that your app have its Target Android Version (*targetSdkVersion*) set to Lollipop (5.0 - API Level 21) or higher, or you will have *aapt* related compile errors. You can still set the Target Framework which your app is compiled against as low as Android 4.0.3 (API Level 15).
11+
12+
13+
Using ActionBar
14+
------
15+
16+
```csharp
17+
[Activity (Label = "@string/action_bar_mechanics", Theme = "@style/Theme.AppCompat")]
18+
public class ActionBarMechanics : ActionBarActivity
19+
{
20+
protected override void OnCreate (Bundle bundle)
21+
{
22+
base.OnCreate (bundle);
23+
24+
// The Action Bar is a window feature. The feature must be requested
25+
// before setting a content view. Normally this is set automatically
26+
// by your Activity's theme in your manifest. The provided system
27+
// theme Theme.WithActionBar enables this for you. Use it as you would
28+
// use Theme.NoTitleBar. You can add an Action Bar to your own themes
29+
// by adding the element <item name="android:windowActionBar">true</item>
30+
// to your style definition.
31+
SupportRequestWindowFeature(WindowCompat.FeatureActionBar);
32+
}
33+
34+
public override bool OnCreateOptionsMenu (Android.Views.IMenu menu)
35+
{
36+
// Menu items default to never show in the action bar. On most devices this means
37+
// they will show in the standard options menu panel when the menu button is pressed.
38+
// On xlarge-screen devices a "More" button will appear in the far right of the
39+
// Action Bar that will display remaining items in a cascading menu.
40+
41+
menu.Add(new Java.Lang.String ("Normal item"));
42+
43+
var actionItem = menu.Add(new Java.Lang.String ("Action Button"));
44+
45+
// Items that show as actions should favor the "if room" setting, which will
46+
// prevent too many buttons from crowding the bar. Extra items will show in the
47+
// overflow area.
48+
MenuItemCompat.SetShowAsAction(actionItem, MenuItemCompat.ShowAsActionIfRoom);
49+
50+
// Items that show as actions are strongly encouraged to use an icon.
51+
// These icons are shown without a text description, and therefore should
52+
// be sufficiently descriptive on their own.
53+
actionItem.SetIcon(Android.Resource.Drawable.IcMenuShare);
54+
return true;
55+
}
56+
57+
public override bool OnOptionsItemSelected (Android.Views.IMenuItem item)
58+
{
59+
Android.Widget.Toast.MakeText (this,
60+
"Selected Item: " +
61+
item.TitleFormatted,
62+
Android.Widget.ToastLength.Short).Show();
63+
64+
return true;
65+
}
66+
}
67+
```
68+
69+
70+
*Portions of this page are modifications based on [work][3] created and [shared by the Android Open Source Project][1] and used according to terms described in the [Creative Commons 2.5 Attribution License][2].*
71+
72+
[1]: http://code.google.com/policies.html
73+
[2]: http://creativecommons.org/licenses/by/2.5/
74+
[3]: http://developer.android.com/tools/support-library/features.html
75+
[4]: http://developer.android.com/guide/topics/ui/actionbar.html
76+
[5]: http://developer.android.com/design/patterns/actionbar.html
77+
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
**Xamarin is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may require or install dependencies which are governed by additional licenses.**
2-
3-
4-
This component depends on [Google Android Support Library](http://developer.android.com/tools/support-library/), which is subject to the terms of [Android Software Development Kit License Agreement](http://developer.android.com/sdk/terms.html)
5-
6-
### Xamarin Component for Android Support Library
7-
The MIT License (MIT)
8-
9-
Copyright (c) .NET Foundation Contributors
10-
11-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12-
13-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16-
17-
20160427
1+
**Xamarin is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may require or install dependencies which are governed by additional licenses.**
2+
3+
4+
This component depends on [Google Android Support Library](http://developer.android.com/tools/support-library/), which is subject to the terms of [Android Software Development Kit License Agreement](http://developer.android.com/sdk/terms.html)
5+
6+
### Xamarin Component for Android Support Library
7+
The MIT License (MIT)
8+
9+
Copyright (c) .NET Foundation Contributors
10+
11+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16+
17+
20160427
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<component format="1" id="xamandroidsupportv7appcompat" is-shell="true">
3-
<name>Android Support Library v7 AppCompat</name>
4-
<publisher>Xamarin Inc.</publisher>
5-
<publisher-url>http://xamarin.com</publisher-url>
6-
<src-url>https://github.com/xamarin/AndroidSupportComponents</src-url>
7-
<version>25.1.1.0</version>
8-
<summary>Provide backward-compatible versions of Android framework APIs.</summary>
9-
<packages>
10-
<package id="Xamarin.Android.Support.v7.AppCompat" version="25.1.1" framework="android" />
11-
</packages>
12-
<samples>
13-
<sample id="AndroidSupportSample">
14-
<name>Android Support Sample</name>
15-
<summary>Android Support Sample</summary>
16-
</sample>
17-
</samples>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<component format="1" id="xamandroidsupportv7appcompat" is-shell="true">
3+
<name>Android Support Library v7 AppCompat</name>
4+
<publisher>Xamarin Inc.</publisher>
5+
<publisher-url>http://xamarin.com</publisher-url>
6+
<src-url>https://github.com/xamarin/AndroidSupportComponents</src-url>
7+
<version>25.1.1.0</version>
8+
<summary>Provide backward-compatible versions of Android framework APIs.</summary>
9+
<packages>
10+
<package id="Xamarin.Android.Support.v7.AppCompat" version="25.1.1" framework="android" />
11+
</packages>
12+
<samples>
13+
<sample id="AndroidSupportSample">
14+
<name>Android Support Sample</name>
15+
<summary>Android Support Sample</summary>
16+
</sample>
17+
</samples>
1818
</component>
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProductVersion>8.0.30703</ProductVersion>
7-
<SchemaVersion>2.0</SchemaVersion>
8-
<ProjectGuid>{69E01497-AB48-4FE6-8FBC-EE1D0CBBD0E5}</ProjectGuid>
9-
<OutputType>Library</OutputType>
10-
<RootNamespace>AndroidSupportSample.UITests</RootNamespace>
11-
<AssemblyName>AndroidSupportSample.UITests</AssemblyName>
12-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13-
</PropertyGroup>
14-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
15-
<DebugSymbols>true</DebugSymbols>
16-
<DebugType>full</DebugType>
17-
<Optimize>false</Optimize>
18-
<OutputPath>bin\Debug</OutputPath>
19-
<DefineConstants>DEBUG;</DefineConstants>
20-
<ErrorReport>prompt</ErrorReport>
21-
<WarningLevel>4</WarningLevel>
22-
<ConsolePause>false</ConsolePause>
23-
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25-
<DebugType>full</DebugType>
26-
<Optimize>true</Optimize>
27-
<OutputPath>bin\Release</OutputPath>
28-
<ErrorReport>prompt</ErrorReport>
29-
<WarningLevel>4</WarningLevel>
30-
<ConsolePause>false</ConsolePause>
31-
</PropertyGroup>
32-
<ItemGroup>
33-
<Reference Include="System" />
34-
<Reference Include="nunit.framework">
35-
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
36-
</Reference>
37-
<Reference Include="Xamarin.UITest">
38-
<HintPath>..\packages\Xamarin.UITest.2.0.5\lib\Xamarin.UITest.dll</HintPath>
39-
</Reference>
40-
</ItemGroup>
41-
<ItemGroup>
42-
<Compile Include="Tests.cs" />
43-
</ItemGroup>
44-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
45-
<ItemGroup>
46-
<None Include="packages.config" />
47-
</ItemGroup>
48-
<ItemGroup>
49-
<ProjectReference Include="..\AndroidSupportSample\AndroidSupportSample.csproj">
50-
<Project>{89F29C9E-B906-41B1-9D39-4DE184029DCC}</Project>
51-
<Name>AndroidSupportSample</Name>
52-
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
53-
<Private>False</Private>
54-
</ProjectReference>
55-
</ItemGroup>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{69E01497-AB48-4FE6-8FBC-EE1D0CBBD0E5}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<RootNamespace>AndroidSupportSample.UITests</RootNamespace>
11+
<AssemblyName>AndroidSupportSample.UITests</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
</PropertyGroup>
14+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
15+
<DebugSymbols>true</DebugSymbols>
16+
<DebugType>full</DebugType>
17+
<Optimize>false</Optimize>
18+
<OutputPath>bin\Debug</OutputPath>
19+
<DefineConstants>DEBUG;</DefineConstants>
20+
<ErrorReport>prompt</ErrorReport>
21+
<WarningLevel>4</WarningLevel>
22+
<ConsolePause>false</ConsolePause>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<DebugType>full</DebugType>
26+
<Optimize>true</Optimize>
27+
<OutputPath>bin\Release</OutputPath>
28+
<ErrorReport>prompt</ErrorReport>
29+
<WarningLevel>4</WarningLevel>
30+
<ConsolePause>false</ConsolePause>
31+
</PropertyGroup>
32+
<ItemGroup>
33+
<Reference Include="System" />
34+
<Reference Include="nunit.framework">
35+
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
36+
</Reference>
37+
<Reference Include="Xamarin.UITest">
38+
<HintPath>..\packages\Xamarin.UITest.2.0.5\lib\Xamarin.UITest.dll</HintPath>
39+
</Reference>
40+
</ItemGroup>
41+
<ItemGroup>
42+
<Compile Include="Tests.cs" />
43+
</ItemGroup>
44+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
45+
<ItemGroup>
46+
<None Include="packages.config" />
47+
</ItemGroup>
48+
<ItemGroup>
49+
<ProjectReference Include="..\AndroidSupportSample\AndroidSupportSample.csproj">
50+
<Project>{89F29C9E-B906-41B1-9D39-4DE184029DCC}</Project>
51+
<Name>AndroidSupportSample</Name>
52+
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
53+
<Private>False</Private>
54+
</ProjectReference>
55+
</ItemGroup>
5656
</Project>

0 commit comments

Comments
 (0)