Initial commit using binding project generation tool
This commit marks a different approach to maintaining the bindings, and now uses a binding generation tool currently called AndroidBinderator. This tool will fetch all the required maven artifact information including dependency chains, binaries, etc, and generate Xamarin.Android binding projects for the maven artifacts based on Razor templates for both the .csproj and .targets files. This also uses new SDK style projects which makes packaging nugets easier, especially for including the correct dependency chains in the nupkg’s (which is automated from the maven repository info). This is a work in progress.
|
@ -6,6 +6,8 @@ externals/
|
|||
output/
|
||||
docs/
|
||||
.vs/
|
||||
generated/
|
||||
**/scriptcs_packages/
|
||||
|
||||
*.xam
|
||||
*.DS_Store
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Compat", "support-compat\source\Compat.csproj", "{CA4194B2-8B2D-4C37-8790-C79C5803357A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-UI", "support-core-ui\source\Core-UI.csproj", "{071EAE48-7BCE-4D68-8098-745B923A122F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-Utils", "support-core-utils\source\Core-Utils.csproj", "{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fragment", "support-fragment\source\Fragment.csproj", "{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Media-Compat", "support-media-compat\source\Media-Compat.csproj", "{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V4", "support-v4\source\V4.csproj", "{BCE98C50-BDB6-49C4-AFB4-78EB1357A3F2}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BCE98C50-BDB6-49C4-AFB4-78EB1357A3F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BCE98C50-BDB6-49C4-AFB4-78EB1357A3F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BCE98C50-BDB6-49C4-AFB4-78EB1357A3F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BCE98C50-BDB6-49C4-AFB4-78EB1357A3F2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,268 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V13", "support-v13\source\V13.csproj", "{69351B41-DA07-42F6-9083-0080EBC6407D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V7-CardView", "cardview-v7\source\V7-CardView.csproj", "{E9848EF1-14E6-4144-95A0-926A52F301B5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V7-GridLayout", "gridlayout-v7\source\V7-GridLayout.csproj", "{D33F5F79-994B-4C34-BCC3-2B30CB630F1B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V7-RecyclerView", "recyclerview-v7\source\V7-RecyclerView.csproj", "{514ED7A8-0F25-4F61-B7B3-A4A652FD7192}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V7-Palette", "palette-v7\source\V7-Palette.csproj", "{D9C9670F-8B06-4083-9EEF-42E4D1DE22C1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V7-Preference", "preference-v7\source\V7-Preference.csproj", "{A419C738-BD3D-4460-97E9-B8E44FC26896}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V7-AppCompat", "appcompat-v7\source\V7-AppCompat.csproj", "{B4ED245B-BBD8-4549-9990-476A36AAD381}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V8-RenderScript", "renderscript-v8\source\V8-RenderScript.csproj", "{732E9891-9FEE-4493-8C1C-C06F12C5248B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V14-Preference", "preference-v14\source\V14-Preference.csproj", "{E2ACB402-B348-4CD9-9686-9F029DCB3277}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V7-MediaRouter", "mediarouter-v7\source\V7-MediaRouter.csproj", "{9E11B536-73E2-4BC6-9921-92889CF089CB}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V17-Leanback", "leanback-v17\source\V17-Leanback.csproj", "{DA26C0C2-286A-4B41-9DF7-84D7E5D00C68}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V17-Preference-Leanback", "preference-leanback-v17\source\V17-Preference-Leanback.csproj", "{6948B25E-4A71-4F31-B042-D21B0B99ADA1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomTabs", "customtabs\source\CustomTabs.csproj", "{5B33CEC5-C89D-4C5B-8365-17C83CCFAD4C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Design", "design\source\Design.csproj", "{8022A1F5-C228-4B21-8194-BC9E76F9174A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Percent", "percent\source\Percent.csproj", "{A557F298-10FD-4F47-8C96-20387E2AA741}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Recommendation", "recommendation\source\Recommendation.csproj", "{257D3C55-FADE-4C65-9967-7DCDE23F83A8}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Animated-Vector-Drawable", "animated-vector-drawable\source\Animated-Vector-Drawable.csproj", "{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vector-Drawable", "support-vector-drawable\source\Vector-Drawable.csproj", "{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vector-Drawable-BuildTasks", "support-vector-drawable\buildtask\Vector-Drawable-BuildTasks.csproj", "{DB19F806-FEF2-4BBB-8A0B-37EA54DB3A0D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-UI", "support-core-ui\source\Core-UI.csproj", "{071EAE48-7BCE-4D68-8098-745B923A122F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Compat", "support-compat\source\Compat.csproj", "{CA4194B2-8B2D-4C37-8790-C79C5803357A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fragment", "support-fragment\source\Fragment.csproj", "{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Media-Compat", "support-media-compat\source\Media-Compat.csproj", "{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Transition", "transition\source\Transition.csproj", "{BF8F6617-A16E-43B8-9985-3D1066D1A081}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Exif", "exifinterface\source\Exif.csproj", "{EBD7CBA0-E16C-460D-908C-89D453DDC556}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Annotations", "support-annotations\source\Annotations.csproj", "{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicAnimation", "support-dynamic-animation\source\DynamicAnimation.csproj", "{157F6FC3-90D1-40D5-91D0-A2552034B41A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TV-Provider", "support-tv-provider\source\TV-Provider.csproj", "{0F4287F5-1E32-4E81-88B1-6E37F54BC6A2}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emoji-Bundled", "support-emoji-bundled\source\Emoji-Bundled.csproj", "{44CC369D-0196-4C80-88D1-C2016998263F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emoji-AppCompat", "support-emoji-appcompat\source\Emoji-AppCompat.csproj", "{6824FF5C-9F50-4DE2-BF34-0314071FF83C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emoji", "support-emoji\source\Emoji.csproj", "{B0FA3251-5C9E-4E2E-AB4B-9B53F320C8A6}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wear", "wear\source\Wear.csproj", "{F5E0D83F-81A8-40A9-9EFF-7605213AC743}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Architecture", "Architecture", "{3AC04D8E-9E4C-401F-AED5-239F226BF9C2}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Core.Common", "arch-core\common\source\Arch.Core.Common.csproj", "{4C9E1C1E-09C3-469C-B3C2-79651DF13870}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Lifecycle.Common", "arch-lifecycle\common\source\Arch.Lifecycle.Common.csproj", "{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-Utils", "support-core-utils\source\Core-Utils.csproj", "{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Content", "support-content\source\Content.csproj", "{F38426DC-DF6F-4FB3-8E9B-1F2E2BBEB554}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Core.Runtime", "arch-core\runtime\source\Arch.Core.Runtime.csproj", "{4C9E1C1E-09C3-469C-B3C2-79651DF13871}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Lifecycle.Extensions", "arch-lifecycle\extensions\source\Arch.Lifecycle.Extensions.csproj", "{8DFA4E1A-7DF0-4FC5-A8F3-8E6E30E3DA70}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Lifecycle.ViewModel", "arch-lifecycle\viewmodel\source\Arch.Lifecycle.ViewModel.csproj", "{ACAF71C0-C260-410E-B572-1C28F6178CBB}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Lifecycle.LiveData.Core", "arch-lifecycle\livedata-core\source\Arch.Lifecycle.LiveData.Core.csproj", "{D2F466C7-CEE0-43FE-938C-7961CF9AB483}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Lifecycle.LiveData", "arch-lifecycle\livedata\source\Arch.Lifecycle.LiveData.csproj", "{07E739CC-71BA-44F9-B461-A001624D71CC}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{257D3C55-FADE-4C65-9967-7DCDE23F83A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{257D3C55-FADE-4C65-9967-7DCDE23F83A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{257D3C55-FADE-4C65-9967-7DCDE23F83A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{257D3C55-FADE-4C65-9967-7DCDE23F83A8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{514ED7A8-0F25-4F61-B7B3-A4A652FD7192}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{514ED7A8-0F25-4F61-B7B3-A4A652FD7192}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{514ED7A8-0F25-4F61-B7B3-A4A652FD7192}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{514ED7A8-0F25-4F61-B7B3-A4A652FD7192}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5B33CEC5-C89D-4C5B-8365-17C83CCFAD4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5B33CEC5-C89D-4C5B-8365-17C83CCFAD4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5B33CEC5-C89D-4C5B-8365-17C83CCFAD4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5B33CEC5-C89D-4C5B-8365-17C83CCFAD4C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{69351B41-DA07-42F6-9083-0080EBC6407D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{69351B41-DA07-42F6-9083-0080EBC6407D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{69351B41-DA07-42F6-9083-0080EBC6407D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{69351B41-DA07-42F6-9083-0080EBC6407D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6948B25E-4A71-4F31-B042-D21B0B99ADA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6948B25E-4A71-4F31-B042-D21B0B99ADA1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6948B25E-4A71-4F31-B042-D21B0B99ADA1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6948B25E-4A71-4F31-B042-D21B0B99ADA1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{732E9891-9FEE-4493-8C1C-C06F12C5248B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{732E9891-9FEE-4493-8C1C-C06F12C5248B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{732E9891-9FEE-4493-8C1C-C06F12C5248B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{732E9891-9FEE-4493-8C1C-C06F12C5248B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8022A1F5-C228-4B21-8194-BC9E76F9174A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8022A1F5-C228-4B21-8194-BC9E76F9174A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8022A1F5-C228-4B21-8194-BC9E76F9174A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8022A1F5-C228-4B21-8194-BC9E76F9174A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9E11B536-73E2-4BC6-9921-92889CF089CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9E11B536-73E2-4BC6-9921-92889CF089CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9E11B536-73E2-4BC6-9921-92889CF089CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9E11B536-73E2-4BC6-9921-92889CF089CB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{A419C738-BD3D-4460-97E9-B8E44FC26896}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A419C738-BD3D-4460-97E9-B8E44FC26896}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A419C738-BD3D-4460-97E9-B8E44FC26896}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A419C738-BD3D-4460-97E9-B8E44FC26896}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{A557F298-10FD-4F47-8C96-20387E2AA741}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A557F298-10FD-4F47-8C96-20387E2AA741}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A557F298-10FD-4F47-8C96-20387E2AA741}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A557F298-10FD-4F47-8C96-20387E2AA741}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D33F5F79-994B-4C34-BCC3-2B30CB630F1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D33F5F79-994B-4C34-BCC3-2B30CB630F1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D33F5F79-994B-4C34-BCC3-2B30CB630F1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D33F5F79-994B-4C34-BCC3-2B30CB630F1B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D9C9670F-8B06-4083-9EEF-42E4D1DE22C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D9C9670F-8B06-4083-9EEF-42E4D1DE22C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D9C9670F-8B06-4083-9EEF-42E4D1DE22C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D9C9670F-8B06-4083-9EEF-42E4D1DE22C1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{DA26C0C2-286A-4B41-9DF7-84D7E5D00C68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{DA26C0C2-286A-4B41-9DF7-84D7E5D00C68}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DA26C0C2-286A-4B41-9DF7-84D7E5D00C68}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{DA26C0C2-286A-4B41-9DF7-84D7E5D00C68}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{DB19F806-FEF2-4BBB-8A0B-37EA54DB3A0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{DB19F806-FEF2-4BBB-8A0B-37EA54DB3A0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DB19F806-FEF2-4BBB-8A0B-37EA54DB3A0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{DB19F806-FEF2-4BBB-8A0B-37EA54DB3A0D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E2ACB402-B348-4CD9-9686-9F029DCB3277}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E2ACB402-B348-4CD9-9686-9F029DCB3277}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E2ACB402-B348-4CD9-9686-9F029DCB3277}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E2ACB402-B348-4CD9-9686-9F029DCB3277}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E9848EF1-14E6-4144-95A0-926A52F301B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E9848EF1-14E6-4144-95A0-926A52F301B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E9848EF1-14E6-4144-95A0-926A52F301B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E9848EF1-14E6-4144-95A0-926A52F301B5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BF8F6617-A16E-43B8-9985-3D1066D1A081}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BF8F6617-A16E-43B8-9985-3D1066D1A081}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BF8F6617-A16E-43B8-9985-3D1066D1A081}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BF8F6617-A16E-43B8-9985-3D1066D1A081}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{EBD7CBA0-E16C-460D-908C-89D453DDC556}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{EBD7CBA0-E16C-460D-908C-89D453DDC556}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{EBD7CBA0-E16C-460D-908C-89D453DDC556}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{EBD7CBA0-E16C-460D-908C-89D453DDC556}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{157F6FC3-90D1-40D5-91D0-A2552034B41A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{157F6FC3-90D1-40D5-91D0-A2552034B41A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{157F6FC3-90D1-40D5-91D0-A2552034B41A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{157F6FC3-90D1-40D5-91D0-A2552034B41A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0F4287F5-1E32-4E81-88B1-6E37F54BC6A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0F4287F5-1E32-4E81-88B1-6E37F54BC6A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0F4287F5-1E32-4E81-88B1-6E37F54BC6A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0F4287F5-1E32-4E81-88B1-6E37F54BC6A2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{44CC369D-0196-4C80-88D1-C2016998263F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{44CC369D-0196-4C80-88D1-C2016998263F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{44CC369D-0196-4C80-88D1-C2016998263F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44CC369D-0196-4C80-88D1-C2016998263F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6824FF5C-9F50-4DE2-BF34-0314071FF83C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6824FF5C-9F50-4DE2-BF34-0314071FF83C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6824FF5C-9F50-4DE2-BF34-0314071FF83C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6824FF5C-9F50-4DE2-BF34-0314071FF83C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B0FA3251-5C9E-4E2E-AB4B-9B53F320C8A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B0FA3251-5C9E-4E2E-AB4B-9B53F320C8A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B0FA3251-5C9E-4E2E-AB4B-9B53F320C8A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B0FA3251-5C9E-4E2E-AB4B-9B53F320C8A6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F5E0D83F-81A8-40A9-9EFF-7605213AC743}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F5E0D83F-81A8-40A9-9EFF-7605213AC743}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F5E0D83F-81A8-40A9-9EFF-7605213AC743}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F5E0D83F-81A8-40A9-9EFF-7605213AC743}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F38426DC-DF6F-4FB3-8E9B-1F2E2BBEB554}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F38426DC-DF6F-4FB3-8E9B-1F2E2BBEB554}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F38426DC-DF6F-4FB3-8E9B-1F2E2BBEB554}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F38426DC-DF6F-4FB3-8E9B-1F2E2BBEB554}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13871}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13871}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13871}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13871}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8DFA4E1A-7DF0-4FC5-A8F3-8E6E30E3DA70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8DFA4E1A-7DF0-4FC5-A8F3-8E6E30E3DA70}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8DFA4E1A-7DF0-4FC5-A8F3-8E6E30E3DA70}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8DFA4E1A-7DF0-4FC5-A8F3-8E6E30E3DA70}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{ACAF71C0-C260-410E-B572-1C28F6178CBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{ACAF71C0-C260-410E-B572-1C28F6178CBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{ACAF71C0-C260-410E-B572-1C28F6178CBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ACAF71C0-C260-410E-B572-1C28F6178CBB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D2F466C7-CEE0-43FE-938C-7961CF9AB483}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D2F466C7-CEE0-43FE-938C-7961CF9AB483}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D2F466C7-CEE0-43FE-938C-7961CF9AB483}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D2F466C7-CEE0-43FE-938C-7961CF9AB483}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{07E739CC-71BA-44F9-B461-A001624D71CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{07E739CC-71BA-44F9-B461-A001624D71CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{07E739CC-71BA-44F9-B461-A001624D71CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{07E739CC-71BA-44F9-B461-A001624D71CC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870} = {3AC04D8E-9E4C-401F-AED5-239F226BF9C2}
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0} = {3AC04D8E-9E4C-401F-AED5-239F226BF9C2}
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13871} = {3AC04D8E-9E4C-401F-AED5-239F226BF9C2}
|
||||
{8DFA4E1A-7DF0-4FC5-A8F3-8E6E30E3DA70} = {3AC04D8E-9E4C-401F-AED5-239F226BF9C2}
|
||||
{ACAF71C0-C260-410E-B572-1C28F6178CBB} = {3AC04D8E-9E4C-401F-AED5-239F226BF9C2}
|
||||
{D2F466C7-CEE0-43FE-938C-7961CF9AB483} = {3AC04D8E-9E4C-401F-AED5-239F226BF9C2}
|
||||
{07E739CC-71BA-44F9-B461-A001624D71CC} = {3AC04D8E-9E4C-401F-AED5-239F226BF9C2}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
11
LICENSE.md
|
@ -1,11 +0,0 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) .NET Foundation Contributors
|
||||
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
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.
|
||||
|
||||
20160427
|
|
@ -1,6 +0,0 @@
|
|||
<metadata>
|
||||
<!--
|
||||
mc++
|
||||
<remove-node path="/api/package/class[contains(@name, 'IcsImpl') or contains(@name, 'JellyBeanImpl') or contains(@name, 'JellyBeanMr2Impl') or contains(@name, 'Api16') or contains(@name, 'Api17') or contains(@name, 'Api18') or contains(@name, 'Api19') or contains(@name, 'Api20') or contains(@name, 'Api21') or contains(@name, 'Api22') or contains(@name, 'Api23') or contains(@name, 'Api24') or contains(@name, 'Api25') or contains(@name, 'Api26') or contains(@name, 'Api27') or contains(@name, 'Api28') or contains(@name, 'Api29') or contains(@name, 'Api30') or contains(@name, 'Honeycomb') or contains(@name, 'IceCreamSandwich') or contains(@name, 'Jellybean') or contains(@name, 'KitKat') or contains(@name, 'Lollipop') or contains(@name, 'Marshmallow') or contains(@name, 'Nougat') or contains(@name, 'Oreo') or contains(@name, 'ImplJB') or contains(@name, 'ImplICS') or contains(@name, 'ImplIcs') or contains(@name, 'ImplHC') or contains(@name, 'HcMr1') or contains(@name, 'HcMr2') or contains(@name, 'HcMr3') or contains(@name, 'JbMr2') or contains(@name, 'JbMr2') or contains(@name, 'JbMr1') or contains(@name, 'ICSMr1') or contains(@name, 'ICSMr2') or contains(@name, 'ImplV11') or contains(@name, 'ImplV21')]" />>
|
||||
-->
|
||||
</metadata>
|
10990
Metadata.generated.xml
87
README.md
|
@ -1,87 +0,0 @@
|
|||
# Xamarin Component for Android Support Library
|
||||
|
||||
Xamarin creates and maintains Xamarin.Android bindings for the Google Android Support Libraries, including:
|
||||
|
||||
- Design
|
||||
- Animated Vector Drawable
|
||||
- Vector Drawable
|
||||
- Custom Tabs
|
||||
- Recommendation
|
||||
- Support v4
|
||||
- Support v13
|
||||
- Support v7 AppCompat
|
||||
- Support v7 CardView
|
||||
- Support v7 GridLayout
|
||||
- Support v7 MediaRouter
|
||||
- Support v7 Palette
|
||||
- Support v7 Preference
|
||||
- Support v7 RecyclerView
|
||||
- Support v8 RenderScript
|
||||
- Support v14 Preference
|
||||
- Support v17 Leanback
|
||||
- Support v17 Preference Leanback
|
||||
|
||||
|
||||
|
||||
## Building
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- Mac OSX 10.11 or higher / Windows 10 or higher (experimental support only)
|
||||
- Xamarin.Android 6.0 or higher
|
||||
- Mono 4.3 or higher
|
||||
- Java JDK 1.7 or higher
|
||||
- Android SDK with API Levels 15, 16, 17, 18, 21, 23
|
||||
|
||||
|
||||
### Build Scripts
|
||||
The build script for this project uses [Cake](http://cakebuild.net). To run the build, you can use one of the bootstrapper files either for Mac or Windows:
|
||||
|
||||
**Mac**:
|
||||
```
|
||||
sh build.sh --target=libs
|
||||
```
|
||||
|
||||
**Windows (experimental support only)**:
|
||||
|
||||
***NOTE:*** Windows build support is still experimental. You may need to first build the `externals` target, then open the `AndroidSupport.sln` in Visual Studio, rebuild it, build the `clean` target, and then continue on normally building whichever targets you like. This will ensure the appropriate files are downloaded and cached in your user's AppData folder.
|
||||
|
||||
```
|
||||
powershell .\build.ps1 -Target libs
|
||||
```
|
||||
|
||||
The bootstrapper script will automatically download Cake.exe and all the required tools and files into the `./tools/` folder.
|
||||
|
||||
The following targets can be specified:
|
||||
|
||||
- `libs` builds the class library bindings (depends on `externals`)
|
||||
- `externals` downloads the external dependencies
|
||||
- `samples` builds all of the samples (depends on `libs`)
|
||||
- `nuget` builds the nuget packages (depends on `libs`)
|
||||
- `component` builds the xamarin components (depends on `samples` and `nuget`)
|
||||
- `clean` cleans up everything
|
||||
|
||||
***NOTE***: The `externals` build task may take awhile to run as it downloads several large dependencies.
|
||||
|
||||
You may want to consider passing `--verbosity diagnostic` (or `-Verbosity diagnostic` on Windows) to the bootstrapper to enable more verbose output, including downloading progress.
|
||||
|
||||
|
||||
### Working in Visual Studio / Xamarin Studio
|
||||
|
||||
Before the `.sln` files will compile in Visual Studio or Xamarin Studio, the external dependencies need to be downloaded. This can be done by running the `build.sh` or `build.ps1` with the target `externals`. After the externals are setup, the `.sln` files should compile in an IDE.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
The license for this repository is specified in
|
||||
[LICENSE.md](LICENSE.md)
|
||||
|
||||
The `externals` build task downloads some external dependencies from Google which are licensed under and subject to the terms of [Android Software Development Kit License Agreement](http://developer.android.com/sdk/terms.html)
|
||||
|
||||
## Contribution Guidelines
|
||||
The Contribution Guidelines for this repository are listed in [CONTRIBUTING.md](.github/CONTRIBUTING.md)
|
||||
|
||||
## .NET Foundation
|
||||
This project is part of the [.NET Foundation](http://www.dotnetfoundation.org/projects)
|
||||
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
# Animated Vector Drawable Android Support Library
|
||||
|
||||
|
||||
This library adds support for Animated Vector Drawables in older Android API Levels.
|
||||
|
||||
|
||||
{GENERAL}
|
|
@ -1,121 +0,0 @@
|
|||
|
||||
This library adds support for utilizing Vector drawable graphics on devices running Android API Level 11 or higher.
|
||||
|
||||
### Target SDK Version
|
||||
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).
|
||||
|
||||
|
||||
Using Animated Vector Drawables
|
||||
------
|
||||
|
||||
To use your vector drawable, you should also reference the **AppCompat v7 Support Library** in your app.
|
||||
|
||||
Your activity should derive from `AppCompatActivity` so that the `AppCompatImageView` is automatically used at runtime where you have defined `ImageView` types.
|
||||
|
||||
Here is an example of an animated vector. It is created by defining multiple resources.
|
||||
|
||||
1. Create a vector image by creating a file `Resources/drawable/vector.xml` with the contents:
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="64dp"
|
||||
android:width="64dp"
|
||||
android:viewportHeight="600"
|
||||
android:viewportWidth="600" >
|
||||
<group
|
||||
android:name="rotationGroup"
|
||||
android:pivotX="300.0"
|
||||
android:pivotY="300.0"
|
||||
android:rotation="45.0" >
|
||||
<path
|
||||
android:name="v"
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M300,70 l 0,-70 70,70 0,0 -70,70z" />
|
||||
</group>
|
||||
</vector>
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
2. Create a file `Resources/anim/path_morph.xml` with the contents:
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<set
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:duration="3000"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M300,70 l 0,-70 70,70 0,0 -70,70z"
|
||||
android:valueTo="M300,70 l 0,-70 70,0 0,140 -70,0 z"
|
||||
android:valueType="pathType"/>
|
||||
</set>
|
||||
```
|
||||
|
||||
|
||||
3. Create a file `Resources/anim/rotation.xml` with the contents:
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<objectAnimator
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="6000"
|
||||
android:propertyName="rotation"
|
||||
android:valueFrom="0"
|
||||
android:valueTo="360" />
|
||||
```
|
||||
|
||||
|
||||
Finally, create an animated vector drawable file `Resources/anim/avd.xml` to tie the vector and animations together with the contents:
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<animated-vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/vector" >
|
||||
<target
|
||||
android:name="rotationGroup"
|
||||
android:animation="@anim/rotation" />
|
||||
<target
|
||||
android:name="v"
|
||||
android:animation="@anim/path_morph" />
|
||||
</animated-vector>
|
||||
```
|
||||
|
||||
You can then reference your vector drawable programmatically, or declaratively in your android layout xml.
|
||||
|
||||
To use your vector drawable programmatically:
|
||||
|
||||
```csharp
|
||||
imageView.SetImageResource (Resource.Drawable.avd);
|
||||
```
|
||||
|
||||
To specify the vector in your layout file, use the `app:srcCompat` attribute (be sure to define the `xmlns:app` namespace as well):
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<ImageView
|
||||
app:srcCompat="@drawable/avd"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/imageView" />
|
||||
</LinearLayout>
|
||||
```
|
||||
|
||||
Finally, you will need to start the animation from your code:
|
||||
|
||||
```csharp
|
||||
imageView.Drawable.JavaCast<Android.Graphics.Drawables.IAnimatable> ().Start ();
|
||||
```
|
||||
|
||||
|
||||
**NOTE:** The `Xamarin.Android.Support.Vector.Drawable` nuget package contains a .targets file which appends the argument `--no-version-vectors` to `AndroidResgenExtraArgs` build property value to ensure the parameter is passed to the `aapt` invocation.
|
|
@ -1,52 +0,0 @@
|
|||
version: $version$
|
||||
name: Android Support Library Animated Vector Drawable
|
||||
id: xamandroidsupportanimatedvector
|
||||
publisher: Xamarin Inc.
|
||||
publisher-url: http://xamarin.com
|
||||
src-url: https://github.com/xamarin/AndroidSupportComponents
|
||||
summary: Provide backward-compatible versions of Android framework APIs.
|
||||
license: ../../component/License.md
|
||||
icons:
|
||||
- ../../icons/animated-vector-drawable_128x128.png
|
||||
- ../../icons/animated-vector-drawable_512x512.png
|
||||
is_shell: true
|
||||
packages:
|
||||
android:
|
||||
- Xamarin.Android.Support.Animated.Vector.Drawable, Version=$nuget-version$
|
||||
samples:
|
||||
- name: "Vector Drawable Sample"
|
||||
path: ../samples/VectorDrawableSample.sln
|
||||
removeProjects:
|
||||
- Animated-Vector-Drawable
|
||||
- Annotations
|
||||
- Compat
|
||||
- Arch.Core.Common
|
||||
- Arch.Lifecycle.Common
|
||||
- Arch.Lifecycle.Runtime
|
||||
- Core-UI
|
||||
- Core-Utils
|
||||
- Fragment
|
||||
- Media-Compat
|
||||
- V7-AppCompat
|
||||
- Vector-Drawable
|
||||
installNuGets:
|
||||
- project: VectorDrawableSample
|
||||
packages:
|
||||
- Xamarin.Android.Support.Animated.Vector.Drawable
|
||||
- Xamarin.Android.Support.Annotations
|
||||
- Xamarin.Android.Support.Compat
|
||||
- Xamarin.Android.Arch.Core.Common
|
||||
- Xamarin.Android.Arch.Lifecycle.Common
|
||||
- Xamarin.Android.Arch.Lifecycle.Runtime
|
||||
- Xamarin.Android.Support.Core.UI
|
||||
- Xamarin.Android.Support.Core.Utils
|
||||
- Xamarin.Android.Support.Fragment
|
||||
- Xamarin.Android.Support.Media.Compat
|
||||
- Xamarin.Android.Support.v7.AppCompat
|
||||
- Xamarin.Android.Support.Vector.Drawable
|
||||
removeNodes:
|
||||
- "//xNS:Import[contains (@Project, 'Xamarin.Android.Support.Tasks.VectorDrawable.targets')]"
|
||||
- "//xNS:Import[contains (@Project, 'Xamarin.Android.Support.Vector.Drawable.targets')]"
|
||||
- "//xNS:Import[contains (@Project, 'generated.targets')]"
|
||||
local-nuget-repo: ../../output
|
||||
no_build: true
|
До Ширина: | Высота: | Размер: 9.7 KiB |
До Ширина: | Высота: | Размер: 98 KiB |
|
@ -1,26 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<metadata>
|
||||
<id>Xamarin.Android.Support.Animated.Vector.Drawable</id>
|
||||
<title>Xamarin Android Support Library - Animated Vector Drawable</title>
|
||||
<version>$version$</version>
|
||||
<authors>Xamarin Inc.</authors>
|
||||
<owners>Xamarin Inc.</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<description>Animated Vector Drawable Android Support Library C# bindings for Xamarin</description>
|
||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||
<projectUrl>https://go.microsoft.com/fwlink/?linkid=865330</projectUrl>
|
||||
<licenseUrl>https://go.microsoft.com/fwlink/?linkid=865381</licenseUrl>
|
||||
<iconUrl>https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/animated-vector-drawable_128x128.png</iconUrl>
|
||||
<dependencies>
|
||||
<group targetFramework="MonoAndroid81">
|
||||
<dependency id="Xamarin.Android.Support.Vector.Drawable" version="[$version$]" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="animated-vector-drawable/nuget/Xamarin.Android.Support.Animated.Vector.Drawable.targets" target="build/MonoAndroid81" />
|
||||
<file src="output/Xamarin.Android.Support.Animated.Vector.Drawable.dll" target="lib/MonoAndroid81" />
|
||||
<file src="External-Dependency-Info.txt" target="THIRD-PARTY-NOTICES.txt" />
|
||||
</files>
|
||||
</package>
|
|
@ -1,89 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VectorDrawableSample", "VectorDrawableSample\VectorDrawableSample.csproj", "{05B87270-652B-438E-BCFF-AC65BC4C892F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Animated-Vector-Drawable", "..\source\Animated-Vector-Drawable.csproj", "{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Compat", "..\..\support-compat\source\Compat.csproj", "{CA4194B2-8B2D-4C37-8790-C79C5803357A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-UI", "..\..\support-core-ui\source\Core-UI.csproj", "{071EAE48-7BCE-4D68-8098-745B923A122F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-Utils", "..\..\support-core-utils\source\Core-Utils.csproj", "{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Media-Compat", "..\..\support-media-compat\source\Media-Compat.csproj", "{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fragment", "..\..\support-fragment\source\Fragment.csproj", "{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vector-Drawable", "..\..\support-vector-drawable\source\Vector-Drawable.csproj", "{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V7-AppCompat", "..\..\appcompat-v7\source\V7-AppCompat.csproj", "{B4ED245B-BBD8-4549-9990-476A36AAD381}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Annotations", "..\..\support-annotations\source\Annotations.csproj", "{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Core.Common", "..\..\arch-core\common\source\Arch.Core.Common.csproj", "{4C9E1C1E-09C3-469C-B3C2-79651DF13870}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Lifecycle.Common", "..\..\arch-lifecycle\common\source\Arch.Lifecycle.Common.csproj", "{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Lifecycle.Runtime", "..\..\arch-lifecycle\runtime\source\Arch.Lifecycle.Runtime.csproj", "{25CE44A9-FA51-4468-952F-21A13F066384}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{05B87270-652B-438E-BCFF-AC65BC4C892F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{05B87270-652B-438E-BCFF-AC65BC4C892F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{05B87270-652B-438E-BCFF-AC65BC4C892F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{05B87270-652B-438E-BCFF-AC65BC4C892F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{25CE44A9-FA51-4468-952F-21A13F066384}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{25CE44A9-FA51-4468-952F-21A13F066384}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{25CE44A9-FA51-4468-952F-21A13F066384}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{25CE44A9-FA51-4468-952F-21A13F066384}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,19 +0,0 @@
|
|||
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");
|
|
@ -1,28 +0,0 @@
|
|||
using Android.App;
|
||||
using Android.Widget;
|
||||
using Android.OS;
|
||||
using Android.Runtime;
|
||||
|
||||
namespace VectorDrawableSample
|
||||
{
|
||||
[Activity (Label = "Animated Vector Drawable Sample", MainLauncher = true, Icon = "@mipmap/icon")]
|
||||
public class MainActivity : Android.Support.V7.App.AppCompatActivity
|
||||
{
|
||||
protected override void OnCreate (Bundle savedInstanceState)
|
||||
{
|
||||
base.OnCreate (savedInstanceState);
|
||||
|
||||
// Set our view from the "main" layout resource
|
||||
SetContentView (Resource.Layout.Main);
|
||||
|
||||
// Get our image view
|
||||
var iv = FindViewById<ImageView> (Resource.Id.imageView);
|
||||
|
||||
// Start the animation
|
||||
var avd = iv.Drawable.JavaCast<Android.Graphics.Drawables.IAnimatable> ();
|
||||
avd.Start ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.xamarin.animatedvectordrawablesample">
|
||||
<uses-sdk android:minSdkVersion="15" />
|
||||
<application android:allowBackup="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:theme="@style/Theme.AppCompat.DayNight"></application>
|
||||
</manifest>
|
|
@ -1,28 +0,0 @@
|
|||
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 ("VectorDrawableSample")]
|
||||
[assembly: AssemblyDescription ("")]
|
||||
[assembly: AssemblyConfiguration ("")]
|
||||
[assembly: AssemblyCompany ("Microsoft Corporation")]
|
||||
[assembly: AssemblyProduct ("")]
|
||||
[assembly: AssemblyCopyright ("Copyright © Microsoft Corporation")]
|
||||
[assembly: AssemblyTrademark ("")]
|
||||
[assembly: AssemblyCulture ("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion ("1.0.0")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
Images, layout descriptions, binary blobs and string dictionaries can be included
|
||||
in your application as resource files. Various Android APIs are designed to
|
||||
operate on the resource IDs instead of dealing with images, strings or binary blobs
|
||||
directly.
|
||||
|
||||
For example, a sample Android app that contains a user interface layout (main.axml),
|
||||
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
|
||||
would keep its resources in the "Resources" directory of the application:
|
||||
|
||||
Resources/
|
||||
drawable/
|
||||
icon.png
|
||||
|
||||
layout/
|
||||
main.axml
|
||||
|
||||
values/
|
||||
strings.xml
|
||||
|
||||
In order to get the build system to recognize Android resources, set the build action to
|
||||
"AndroidResource". The native Android APIs do not operate directly with filenames, but
|
||||
instead operate on resource IDs. When you compile an Android application that uses resources,
|
||||
the build system will package the resources for distribution and generate a class called "R"
|
||||
(this is an Android convention) that contains the tokens for each one of the resources
|
||||
included. For example, for the above Resources layout, this is what the R class would expose:
|
||||
|
||||
public class R {
|
||||
public class drawable {
|
||||
public const int icon = 0x123;
|
||||
}
|
||||
|
||||
public class layout {
|
||||
public const int main = 0x456;
|
||||
}
|
||||
|
||||
public class strings {
|
||||
public const int first_string = 0xabc;
|
||||
public const int second_string = 0xbcd;
|
||||
}
|
||||
}
|
||||
|
||||
You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main
|
||||
to reference the layout/main.axml file, or R.strings.first_string to reference the first
|
||||
string in the dictionary file values/strings.xml.
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<set
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:duration="3000"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M300,70 l 0,-70 70,70 0,0 -70,70z"
|
||||
android:valueTo="M300,70 l 0,-70 70,0 0,140 -70,0 z"
|
||||
android:valueType="pathType"/>
|
||||
</set>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<objectAnimator
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="6000"
|
||||
android:propertyName="rotation"
|
||||
android:valueFrom="0"
|
||||
android:valueTo="360" />
|
|
@ -1,11 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<animated-vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/vector" >
|
||||
<target
|
||||
android:name="rotationGroup"
|
||||
android:animation="@anim/rotation" />
|
||||
<target
|
||||
android:name="v"
|
||||
android:animation="@anim/path_morph" />
|
||||
</animated-vector>
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="64dp"
|
||||
android:width="64dp"
|
||||
android:viewportHeight="600"
|
||||
android:viewportWidth="600" >
|
||||
<group
|
||||
android:name="rotationGroup"
|
||||
android:pivotX="300.0"
|
||||
android:pivotY="300.0"
|
||||
android:rotation="45.0" >
|
||||
<path
|
||||
android:name="v"
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M300,70 l 0,-70 70,70 0,0 -70,70z" />
|
||||
</group>
|
||||
</vector>
|
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<ImageView
|
||||
app:srcCompat="@drawable/avd"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/imageView" />
|
||||
</LinearLayout>
|
До Ширина: | Высота: | Размер: 2.1 KiB |
До Ширина: | Высота: | Размер: 1.4 KiB |
До Ширина: | Высота: | Размер: 3.2 KiB |
До Ширина: | Высота: | Размер: 5.3 KiB |
До Ширина: | Высота: | Размер: 7.6 KiB |
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="hello">Hello World, Click Me!</string>
|
||||
<string name="app_name">VectorDrawableSample</string>
|
||||
</resources>
|
|
@ -1,122 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{05B87270-652B-438E-BCFF-AC65BC4C892F}</ProjectGuid>
|
||||
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>VectorDrawableSample</RootNamespace>
|
||||
<AssemblyName>VectorDrawableSample</AssemblyName>
|
||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||
<AndroidApplication>True</AndroidApplication>
|
||||
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
|
||||
<AndroidResgenClass>Resource</AndroidResgenClass>
|
||||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<AndroidUseLatestPlatformSdk>true</AndroidUseLatestPlatformSdk>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Mono.Android" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="MainActivity.cs" />
|
||||
<Compile Include="Resources\Resource.designer.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\AboutResources.txt" />
|
||||
<None Include="Properties\AndroidManifest.xml" />
|
||||
<None Include="Assets\AboutAssets.txt" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AndroidResource Include="Resources\layout\Main.axml" />
|
||||
<AndroidResource Include="Resources\values\Strings.xml" />
|
||||
<AndroidResource Include="Resources\mipmap-hdpi\Icon.png" />
|
||||
<AndroidResource Include="Resources\mipmap-mdpi\Icon.png" />
|
||||
<AndroidResource Include="Resources\mipmap-xhdpi\Icon.png" />
|
||||
<AndroidResource Include="Resources\mipmap-xxhdpi\Icon.png" />
|
||||
<AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png" />
|
||||
<AndroidResource Include="Resources\drawable\vector.xml" />
|
||||
<AndroidResource Include="Resources\drawable\avd.xml" />
|
||||
<AndroidResource Include="Resources\anim\rotation.xml" />
|
||||
<AndroidResource Include="Resources\anim\path_morph.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\source\Animated-Vector-Drawable.csproj">
|
||||
<Project>{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}</Project>
|
||||
<Name>Animated-Vector-Drawable</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-compat\source\Compat.csproj">
|
||||
<Project>{CA4194B2-8B2D-4C37-8790-C79C5803357A}</Project>
|
||||
<Name>Compat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-core-ui\source\Core-UI.csproj">
|
||||
<Project>{071EAE48-7BCE-4D68-8098-745B923A122F}</Project>
|
||||
<Name>Core-UI</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-core-utils\source\Core-Utils.csproj">
|
||||
<Project>{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}</Project>
|
||||
<Name>Core-Utils</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-fragment\source\Fragment.csproj">
|
||||
<Project>{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}</Project>
|
||||
<Name>Fragment</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-media-compat\source\Media-Compat.csproj">
|
||||
<Project>{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}</Project>
|
||||
<Name>Media-Compat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\appcompat-v7\source\V7-AppCompat.csproj">
|
||||
<Project>{B4ED245B-BBD8-4549-9990-476A36AAD381}</Project>
|
||||
<Name>V7-AppCompat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-vector-drawable\source\Vector-Drawable.csproj">
|
||||
<Project>{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}</Project>
|
||||
<Name>Vector-Drawable</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-annotations\source\Annotations.csproj">
|
||||
<Project>{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}</Project>
|
||||
<Name>Annotations</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\arch-core\common\source\Arch.Core.Common.csproj">
|
||||
<Project>{4C9E1C1E-09C3-469C-B3C2-79651DF13870}</Project>
|
||||
<Name>Arch.Core.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\arch-lifecycle\common\source\Arch.Lifecycle.Common.csproj">
|
||||
<Project>{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}</Project>
|
||||
<Name>Arch.Lifecycle.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\arch-lifecycle\runtime\source\Arch.Lifecycle.Runtime.csproj">
|
||||
<Project>{25CE44A9-FA51-4468-952F-21A13F066384}</Project>
|
||||
<Name>Arch.Lifecycle.Runtime</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
||||
</Project>
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
</packages>
|
|
@ -1,109 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}</ProjectGuid>
|
||||
<ProjectTypeGuids>{10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Xamarin.Android.Support.Animated.Vector.Drawable</RootNamespace>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>
|
||||
<AssemblyName>Xamarin.Android.Support.Animated.Vector.Drawable</AssemblyName>
|
||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||
<!-- <SignAssembly>true</SignAssembly>
|
||||
<DelaySign>true</DelaySign>
|
||||
<AssemblyOriginatorKeyFile>publickey.snk</AssemblyOriginatorKeyFile> -->
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;__MOBILE__;__ANDROID__;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DefineConstants>__MOBILE__;__ANDROID__;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<DroidDocPaths>..\..\docs\reference</DroidDocPaths>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Mono.Android" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Additions\Additions.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<TransformFile Include="..\..\Metadata.generated.xml" />
|
||||
<TransformFile Include="Transforms\EnumFields.xml" />
|
||||
<TransformFile Include="Transforms\EnumMethods.xml" />
|
||||
<TransformFile Include="Transforms\Metadata.xml" />
|
||||
<TransformFile Include="..\..\Metadata.generated.xml">
|
||||
<Link>Transforms\Metadata.generated.xml</Link>
|
||||
</TransformFile>
|
||||
<TransformFile Include="..\..\Metadata.common.xml">
|
||||
<Link>Transforms\Metadata.common.xml</Link>
|
||||
</TransformFile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\support-compat\source\Compat.csproj">
|
||||
<Project>{CA4194B2-8B2D-4C37-8790-C79C5803357A}</Project>
|
||||
<Name>Compat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\support-vector-drawable\source\Vector-Drawable.csproj">
|
||||
<Project>{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}</Project>
|
||||
<Name>Vector-Drawable</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\arch-core\common\source\Arch.Core.Common.csproj">
|
||||
<Project>{4C9E1C1E-09C3-469C-B3C2-79651DF13870}</Project>
|
||||
<Name>Arch.Core.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\arch-lifecycle\common\source\Arch.Lifecycle.Common.csproj">
|
||||
<Project>{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}</Project>
|
||||
<Name>Arch.Lifecycle.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\arch-lifecycle\runtime\source\Arch.Lifecycle.Runtime.csproj">
|
||||
<Project>{D2F466C7-CEE0-43FE-938C-7961CF9AB483}</Project>
|
||||
<Name>Arch.Lifecycle.LiveData.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\support-annotations\source\Annotations.csproj">
|
||||
<Project>{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}</Project>
|
||||
<Name>Annotations</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.Bindings.targets" />
|
||||
<ItemGroup>
|
||||
<Folder Include="Additions\" />
|
||||
<Folder Include="Jars\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<LibraryProjectZip Include="..\..\externals\animated-vector-drawable.aar">
|
||||
<Link>animated-vector-drawable.aar</Link>
|
||||
</LibraryProjectZip>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,29 +0,0 @@
|
|||
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 ("Xamarin.Android.Support.Animated.Vector.Drawable")]
|
||||
[assembly: AssemblyDescription ("")]
|
||||
[assembly: AssemblyConfiguration ("")]
|
||||
[assembly: AssemblyCompany ("Microsoft Corporation")]
|
||||
[assembly: AssemblyProduct ("")]
|
||||
[assembly: AssemblyCopyright ("Copyright © Microsoft Corporation")]
|
||||
[assembly: AssemblyTrademark ("")]
|
||||
[assembly: AssemblyCulture ("")]
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
[assembly: AssemblyVersion ("1.0.0")]
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyMetadata ("BUILD_COMMIT", "{BUILD_COMMIT}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_NUMBER", "{BUILD_NUMBER}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_TIMESTAMP", "{BUILD_TIMESTAMP}")]
|
||||
|
||||
[assembly: AssemblyInformationalVersion ("{NUGET_VERSION}")]
|
||||
|
||||
[assembly: Android.LinkerSafe]
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
</packages>
|
|
@ -1,7 +0,0 @@
|
|||
# v7 AppCompat Android Support Library
|
||||
|
||||
|
||||
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.
|
||||
|
||||
|
||||
{GENERAL}
|
|
@ -1,77 +0,0 @@
|
|||
|
||||
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:
|
||||
|
||||
- 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.
|
||||
- ActionBarActivity - Adds an application activity class that must be used as a base class for activities that uses the Support Library action bar implementation.
|
||||
- ShareActionProvider - Adds support for a standardized sharing action (such as email or posting to social applications) that can be included in an action bar.
|
||||
|
||||
|
||||
### Target SDK Version
|
||||
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).
|
||||
|
||||
|
||||
Using ActionBar
|
||||
------
|
||||
|
||||
```csharp
|
||||
[Activity (Label = "@string/action_bar_mechanics", Theme = "@style/Theme.AppCompat")]
|
||||
public class ActionBarMechanics : ActionBarActivity
|
||||
{
|
||||
protected override void OnCreate (Bundle bundle)
|
||||
{
|
||||
base.OnCreate (bundle);
|
||||
|
||||
// The Action Bar is a window feature. The feature must be requested
|
||||
// before setting a content view. Normally this is set automatically
|
||||
// by your Activity's theme in your manifest. The provided system
|
||||
// theme Theme.WithActionBar enables this for you. Use it as you would
|
||||
// use Theme.NoTitleBar. You can add an Action Bar to your own themes
|
||||
// by adding the element <item name="android:windowActionBar">true</item>
|
||||
// to your style definition.
|
||||
SupportRequestWindowFeature(WindowCompat.FeatureActionBar);
|
||||
}
|
||||
|
||||
public override bool OnCreateOptionsMenu (Android.Views.IMenu menu)
|
||||
{
|
||||
// Menu items default to never show in the action bar. On most devices this means
|
||||
// they will show in the standard options menu panel when the menu button is pressed.
|
||||
// On xlarge-screen devices a "More" button will appear in the far right of the
|
||||
// Action Bar that will display remaining items in a cascading menu.
|
||||
|
||||
menu.Add(new Java.Lang.String ("Normal item"));
|
||||
|
||||
var actionItem = menu.Add(new Java.Lang.String ("Action Button"));
|
||||
|
||||
// Items that show as actions should favor the "if room" setting, which will
|
||||
// prevent too many buttons from crowding the bar. Extra items will show in the
|
||||
// overflow area.
|
||||
MenuItemCompat.SetShowAsAction(actionItem, MenuItemCompat.ShowAsActionIfRoom);
|
||||
|
||||
// Items that show as actions are strongly encouraged to use an icon.
|
||||
// These icons are shown without a text description, and therefore should
|
||||
// be sufficiently descriptive on their own.
|
||||
actionItem.SetIcon(Android.Resource.Drawable.IcMenuShare);
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool OnOptionsItemSelected (Android.Views.IMenuItem item)
|
||||
{
|
||||
Android.Widget.Toast.MakeText (this,
|
||||
"Selected Item: " +
|
||||
item.TitleFormatted,
|
||||
Android.Widget.ToastLength.Short).Show();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
*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].*
|
||||
|
||||
[1]: http://code.google.com/policies.html
|
||||
[2]: http://creativecommons.org/licenses/by/2.5/
|
||||
[3]: http://developer.android.com/tools/support-library/features.html
|
||||
[4]: http://developer.android.com/guide/topics/ui/actionbar.html
|
||||
[5]: http://developer.android.com/design/patterns/actionbar.html
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
version: $version$
|
||||
name: Android Support Library v7 AppCompat
|
||||
id: xamandroidsupportv7appcompat
|
||||
publisher: Xamarin Inc.
|
||||
publisher-url: http://xamarin.com
|
||||
src-url: https://github.com/xamarin/AndroidSupportComponents
|
||||
license: ../../component/License.md
|
||||
summary: Provide backward-compatible versions of Android framework APIs.
|
||||
icons:
|
||||
- ../../icons/v7-appcompat_128x128.png
|
||||
- ../../icons/v7-appcompat_512x512.png
|
||||
is_shell: true
|
||||
packages:
|
||||
android:
|
||||
- Xamarin.Android.Support.v7.AppCompat, Version=$nuget-version$
|
||||
samples:
|
||||
- name: "Android Support Sample"
|
||||
path: ../samples/AndroidSupportSample.sln
|
||||
removeProjects:
|
||||
- Annotations
|
||||
- Compat
|
||||
- Arch.Core.Common
|
||||
- Arch.Lifecycle.Common
|
||||
- Arch.Lifecycle.Runtime
|
||||
- Core-UI
|
||||
- Core-Utils
|
||||
- Fragment
|
||||
- Media-Compat
|
||||
- V7-AppCompat
|
||||
- Vector-Drawable
|
||||
- Animated-Vector-Drawable
|
||||
installNuGets:
|
||||
- project: AndroidSupportSample
|
||||
packages:
|
||||
- Xamarin.Android.Support.Annotations
|
||||
- Xamarin.Android.Support.Compat
|
||||
- Xamarin.Android.Arch.Core.Common
|
||||
- Xamarin.Android.Arch.Lifecycle.Common
|
||||
- Xamarin.Android.Arch.Lifecycle.Runtime
|
||||
- Xamarin.Android.Support.Core.UI
|
||||
- Xamarin.Android.Support.Core.Utils
|
||||
- Xamarin.Android.Support.Fragment
|
||||
- Xamarin.Android.Support.Media.Compat
|
||||
- Xamarin.Android.Support.v7.AppCompat
|
||||
- Xamarin.Android.Support.Vector.Drawable
|
||||
- Xamarin.Android.Support.Animated.Vector.Drawable
|
||||
removeNodes:
|
||||
- "//xNS:Import[contains (@Project, 'Xamarin.Android.Support.Tasks.VectorDrawable.targets')]"
|
||||
- "//xNS:Import[contains (@Project, 'Xamarin.Android.Support.Vector.Drawable.targets')]"
|
||||
- "//xNS:Import[contains (@Project, 'generated.targets')]"
|
||||
local-nuget-repo: ../../output
|
||||
no_build: true
|
Двоичные данные
appcompat-v7/component/icons/xamandroidsupportv4-18_128x128.png
До Ширина: | Высота: | Размер: 9.7 KiB |
Двоичные данные
appcompat-v7/component/icons/xamandroidsupportv4-18_512x512.png
До Ширина: | Высота: | Размер: 98 KiB |
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<metadata>
|
||||
<id>Xamarin.Android.Support.v7.AppCompat</id>
|
||||
<title>Xamarin Android Support Library - v7 AppCompat</title>
|
||||
<version>$version$</version>
|
||||
<authors>Xamarin Inc.</authors>
|
||||
<owners>Xamarin Inc.</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<description>v7 AppCompat Android Support Library C# bindings for Xamarin</description>
|
||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||
<projectUrl>https://go.microsoft.com/fwlink/?linkid=865338</projectUrl>
|
||||
<licenseUrl>https://go.microsoft.com/fwlink/?linkid=865381</licenseUrl>
|
||||
<iconUrl>https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/v7-appcompat_128x128.png</iconUrl>
|
||||
<dependencies>
|
||||
<group targetFramework="MonoAndroid81">
|
||||
<dependency id="Xamarin.Android.Support.Vector.Drawable" version="[$version$]" />
|
||||
<dependency id="Xamarin.Android.Support.Animated.Vector.Drawable" version="[$version$]" />
|
||||
<!-- Support V4 -->
|
||||
<dependency id="Xamarin.Android.Support.Compat" version="[$version$]" />
|
||||
<dependency id="Xamarin.Android.Support.Core.UI" version="[$version$]" />
|
||||
<dependency id="Xamarin.Android.Support.Core.Utils" version="[$version$]" />
|
||||
<dependency id="Xamarin.Android.Support.Fragment" version="[$version$]" />
|
||||
<dependency id="Xamarin.Android.Support.Media.Compat" version="[$version$]" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="appcompat-v7/nuget/Xamarin.Android.Support.v7.AppCompat.targets" target="build/MonoAndroid81" />
|
||||
<file src="output/Xamarin.Android.Support.v7.AppCompat.dll" target="lib/MonoAndroid81" />
|
||||
<file src="External-Dependency-Info.txt" target="THIRD-PARTY-NOTICES.txt" />
|
||||
</files>
|
||||
</package>
|
|
@ -1,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{69E01497-AB48-4FE6-8FBC-EE1D0CBBD0E5}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>AndroidSupportSample.UITests</RootNamespace>
|
||||
<AssemblyName>AndroidSupportSample.UITests</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="nunit.framework">
|
||||
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.UITest">
|
||||
<HintPath>..\packages\Xamarin.UITest.2.0.5\lib\Xamarin.UITest.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Tests.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AndroidSupportSample\AndroidSupportSample.csproj">
|
||||
<Project>{89F29C9E-B906-41B1-9D39-4DE184029DCC}</Project>
|
||||
<Name>AndroidSupportSample</Name>
|
||||
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,120 +0,0 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
using Xamarin.UITest;
|
||||
using Xamarin.UITest.Android;
|
||||
using Xamarin.UITest.Queries;
|
||||
|
||||
namespace AndroidSupportSample.UITests
|
||||
{
|
||||
[TestFixture]
|
||||
public class Tests
|
||||
{
|
||||
AndroidApp app;
|
||||
|
||||
[SetUp]
|
||||
public void BeforeEachTest ()
|
||||
{
|
||||
app = ConfigureApp.Android
|
||||
.ApkFile ("app.apk")
|
||||
.PreferIdeSettings ()
|
||||
.StartApp ();
|
||||
}
|
||||
|
||||
//[Test]
|
||||
public void Repl ()
|
||||
{
|
||||
app.Repl ();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AppLaunches ()
|
||||
{
|
||||
app.Screenshot ("Launch");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ActionBarMechanics ()
|
||||
{
|
||||
app.Screenshot ("Launch");
|
||||
app.Tap(q => q.Text("Action Bar Mechanics"));
|
||||
app.WaitForElement (q => q.Class ("Toolbar"));
|
||||
app.Screenshot ("Action Bar Mechanics");
|
||||
|
||||
// Tap the action bar button
|
||||
app.Tap (q => q.Class ("ActionMenuItemView"));
|
||||
// Wait for toast to show
|
||||
app.WaitForElement (q => q.Id ("message"));
|
||||
app.Screenshot ("Toast");
|
||||
|
||||
// Tap the overflow menu
|
||||
app.Tap(q => q.Class("OverflowMenuButton"));
|
||||
app.WaitForElement (q => q.Text ("Normal item"));
|
||||
app.Screenshot ("Menu Item");
|
||||
app.Tap (q => q.Text ("Normal item"));
|
||||
|
||||
// Wait for toast to show
|
||||
app.WaitForElement (q => q.Id ("message"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ActionBarTabs ()
|
||||
{
|
||||
app.Screenshot ("Launch");
|
||||
app.Tap(q => q.Text("Action Bar Tabs"));
|
||||
|
||||
app.WaitForElement (q => q.Class ("Toolbar"));
|
||||
app.Screenshot ("Action Bar Tabs");
|
||||
|
||||
// Turn tabs on
|
||||
app.Tap (q => q.Id ("btn_toggle_tabs"));
|
||||
|
||||
// Add Tabs
|
||||
app.Tap (q => q.Id ("btn_add_tab"));
|
||||
app.WaitForElement (q => q.Text ("Tab 0"));
|
||||
app.Screenshot ("Add Tab 0");
|
||||
app.Tap (q => q.Id ("btn_add_tab"));
|
||||
app.WaitForElement (q => q.Text ("Tab 1"));
|
||||
app.Screenshot ("Add Tab 1");
|
||||
|
||||
app.Tap (q => q.Id ("btn_remove_tab"));
|
||||
app.WaitForNoElement (q => q.Text ("Tab 1"));
|
||||
app.Screenshot ("Remove Tab 1");
|
||||
|
||||
app.Tap (q => q.Id ("btn_remove_all_tabs"));
|
||||
app.WaitForNoElement (q => q.Text ("Tab 0"));
|
||||
app.Screenshot ("Remove All Tabs");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DisplayOptions ()
|
||||
{
|
||||
app.Screenshot ("Launch");
|
||||
app.Tap(q => q.Marked("Display Options"));
|
||||
app.WaitForElement (q => q.Marked ("toggle_navigation"));
|
||||
app.Screenshot ("Display Options");
|
||||
|
||||
app.Tap (q => q.Marked ("toggle_home_as_up"));
|
||||
app.WaitForElement (q => q.Marked ("Navigate up"));
|
||||
app.Screenshot ("Toggle Home as Up");
|
||||
|
||||
app.Tap (q => q.Marked ("toggle_show_title"));
|
||||
app.WaitForNoElement (q => q.Marked ("Display Options"));
|
||||
app.Screenshot ("Hide Title");
|
||||
app.Tap (q => q.Marked ("toggle_show_title"));
|
||||
app.WaitForElement (q => q.Marked ("Display Options"));
|
||||
app.Screenshot ("Show Title");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AlertDialog ()
|
||||
{
|
||||
app.Screenshot ("Launch");
|
||||
app.Tap(q => q.Text("AlertDialog"));
|
||||
app.WaitForElement (q => q.Id ("alertTitle"));
|
||||
app.Screenshot ("Alert Dialog");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NUnit" version="2.6.4" targetFramework="net45" />
|
||||
<package id="Xamarin.UITest" version="2.0.5" targetFramework="net45" />
|
||||
</packages>
|
|
@ -1,95 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidSupportSample", "AndroidSupportSample\AndroidSupportSample.csproj", "{89F29C9E-B906-41B1-9D39-4DE184029DCC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidSupportSample.UITests", "AndroidSupportSample.UITests\AndroidSupportSample.UITests.csproj", "{69E01497-AB48-4FE6-8FBC-EE1D0CBBD0E5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "V7-AppCompat", "..\source\V7-AppCompat.csproj", "{B4ED245B-BBD8-4549-9990-476A36AAD381}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Animated-Vector-Drawable", "..\..\animated-vector-drawable\source\Animated-Vector-Drawable.csproj", "{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Compat", "..\..\support-compat\source\Compat.csproj", "{CA4194B2-8B2D-4C37-8790-C79C5803357A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-UI", "..\..\support-core-ui\source\Core-UI.csproj", "{071EAE48-7BCE-4D68-8098-745B923A122F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core-Utils", "..\..\support-core-utils\source\Core-Utils.csproj", "{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fragment", "..\..\support-fragment\source\Fragment.csproj", "{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Media-Compat", "..\..\support-media-compat\source\Media-Compat.csproj", "{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vector-Drawable", "..\..\support-vector-drawable\source\Vector-Drawable.csproj", "{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Annotations", "..\..\support-annotations\source\Annotations.csproj", "{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Core.Common", "..\..\arch-core\common\source\Arch.Core.Common.csproj", "{4C9E1C1E-09C3-469C-B3C2-79651DF13870}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Lifecycle.Common", "..\..\arch-lifecycle\common\source\Arch.Lifecycle.Common.csproj", "{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Arch.Lifecycle.Runtime", "..\..\arch-lifecycle\runtime\source\Arch.Lifecycle.Runtime.csproj", "{25CE44A9-FA51-4468-952F-21A13F066384}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{69E01497-AB48-4FE6-8FBC-EE1D0CBBD0E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{69E01497-AB48-4FE6-8FBC-EE1D0CBBD0E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{69E01497-AB48-4FE6-8FBC-EE1D0CBBD0E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{69E01497-AB48-4FE6-8FBC-EE1D0CBBD0E5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{89F29C9E-B906-41B1-9D39-4DE184029DCC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{89F29C9E-B906-41B1-9D39-4DE184029DCC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{89F29C9E-B906-41B1-9D39-4DE184029DCC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{89F29C9E-B906-41B1-9D39-4DE184029DCC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B4ED245B-BBD8-4549-9990-476A36AAD381}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CA4194B2-8B2D-4C37-8790-C79C5803357A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{071EAE48-7BCE-4D68-8098-745B923A122F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4C9E1C1E-09C3-469C-B3C2-79651DF13870}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{25CE44A9-FA51-4468-952F-21A13F066384}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{25CE44A9-FA51-4468-952F-21A13F066384}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{25CE44A9-FA51-4468-952F-21A13F066384}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{25CE44A9-FA51-4468-952F-21A13F066384}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,149 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{89F29C9E-B906-41B1-9D39-4DE184029DCC}</ProjectGuid>
|
||||
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AssemblyName>AndroidSupportSample</AssemblyName>
|
||||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
||||
<RootNamespace>AndroidSupportSample</RootNamespace>
|
||||
<AndroidApplication>True</AndroidApplication>
|
||||
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
|
||||
<AndroidResgenClass>Resource</AndroidResgenClass>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>
|
||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||
<AndroidSupportedAbis>armeabi;armeabi-v7a;x86;arm64-v8a;x86_64</AndroidSupportedAbis>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;__MOBILE__;__ANDROID__;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DefineConstants>__MOBILE__;__ANDROID__;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Properties\AndroidManifest.xml" />
|
||||
<None Include="Resources\AboutResources.txt" />
|
||||
<None Include="Assets\AboutAssets.txt" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Mono.Android" />
|
||||
<Reference Include="Mono.Android.Export" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Resources\Resource.designer.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="App\ActionBarDisplayOptions.cs" />
|
||||
<Compile Include="App\ActionBarFragmentMenu.cs" />
|
||||
<Compile Include="App\ActionBarMechanics.cs" />
|
||||
<Compile Include="App\ActionBarUsage.cs" />
|
||||
<Compile Include="Support7Demos.cs" />
|
||||
<Compile Include="App\ActionBarTabs.cs" />
|
||||
<Compile Include="App\ActionBarSettingsActionProviderActivity.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AndroidResource Include="Resources\values\Strings.xml" />
|
||||
<AndroidResource Include="Resources\drawable-hdpi\apidemo_androidlogo.png" />
|
||||
<AndroidResource Include="Resources\drawable-hdpi\app_sample_code.png" />
|
||||
<AndroidResource Include="Resources\drawable-hdpi\ic_launcher_settings.png" />
|
||||
<AndroidResource Include="Resources\drawable-mdpi\apidemo_androidlogo.png" />
|
||||
<AndroidResource Include="Resources\drawable-mdpi\app_sample_code.png" />
|
||||
<AndroidResource Include="Resources\drawable-mdpi\ic_launcher_settings.png" />
|
||||
<AndroidResource Include="Resources\menu\action_bar_settings_action_provider.xml" />
|
||||
<AndroidResource Include="Resources\menu\actions.xml" />
|
||||
<AndroidResource Include="Resources\menu\display_options_actions.xml" />
|
||||
<AndroidResource Include="Resources\layout\action_bar_display_options_custom.xml" />
|
||||
<AndroidResource Include="Resources\layout\action_bar_display_options.xml" />
|
||||
<AndroidResource Include="Resources\layout\action_bar_fragment_menu.xml" />
|
||||
<AndroidResource Include="Resources\layout\action_bar_settings_action_provider.xml" />
|
||||
<AndroidResource Include="Resources\layout\action_bar_tab_content.xml" />
|
||||
<AndroidResource Include="Resources\layout\action_bar_tabs.xml" />
|
||||
<AndroidResource Include="Resources\drawable\apidemo_androidlogo.png" />
|
||||
<AndroidResource Include="Resources\drawable\app_sample_code.png" />
|
||||
<AndroidResource Include="Resources\drawable\ic_launcher_settings.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="AndroidSupportv7\" />
|
||||
<Folder Include="App\" />
|
||||
<Folder Include="Resources\drawable\" />
|
||||
<Folder Include="Resources\drawable-hdpi\" />
|
||||
<Folder Include="Resources\drawable-mdpi\" />
|
||||
<Folder Include="Resources\menu\" />
|
||||
<Folder Include="Resources\layout\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\animated-vector-drawable\source\Animated-Vector-Drawable.csproj">
|
||||
<Project>{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}</Project>
|
||||
<Name>Animated-Vector-Drawable</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-compat\source\Compat.csproj">
|
||||
<Project>{CA4194B2-8B2D-4C37-8790-C79C5803357A}</Project>
|
||||
<Name>Compat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-core-ui\source\Core-UI.csproj">
|
||||
<Project>{071EAE48-7BCE-4D68-8098-745B923A122F}</Project>
|
||||
<Name>Core-UI</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-core-utils\source\Core-Utils.csproj">
|
||||
<Project>{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}</Project>
|
||||
<Name>Core-Utils</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-fragment\source\Fragment.csproj">
|
||||
<Project>{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}</Project>
|
||||
<Name>Fragment</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-media-compat\source\Media-Compat.csproj">
|
||||
<Project>{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}</Project>
|
||||
<Name>Media-Compat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\source\V7-AppCompat.csproj">
|
||||
<Project>{B4ED245B-BBD8-4549-9990-476A36AAD381}</Project>
|
||||
<Name>V7-AppCompat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-vector-drawable\source\Vector-Drawable.csproj">
|
||||
<Project>{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}</Project>
|
||||
<Name>Vector-Drawable</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-annotations\source\Annotations.csproj">
|
||||
<Project>{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}</Project>
|
||||
<Name>Annotations</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\arch-core\common\source\Arch.Core.Common.csproj">
|
||||
<Project>{4C9E1C1E-09C3-469C-B3C2-79651DF13870}</Project>
|
||||
<Name>Arch.Core.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\arch-lifecycle\common\source\Arch.Lifecycle.Common.csproj">
|
||||
<Project>{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}</Project>
|
||||
<Name>Arch.Lifecycle.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\arch-lifecycle\runtime\source\Arch.Lifecycle.Runtime.csproj">
|
||||
<Project>{25CE44A9-FA51-4468-952F-21A13F066384}</Project>
|
||||
<Name>Arch.Lifecycle.Runtime</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
||||
</Project>
|
|
@ -1,125 +0,0 @@
|
|||
using System;
|
||||
using Android.OS;
|
||||
using Android.Support.V7.App;
|
||||
|
||||
|
||||
namespace AndroidSupportSample
|
||||
{
|
||||
[Android.App.Activity (Theme="@style/Theme.AppCompat")] // Properties set in AndroidManifest.xml directly
|
||||
public class ActionBarDisplayOptions : ActionBarActivity, Android.Views.View.IOnClickListener, ActionBar.ITabListener
|
||||
{
|
||||
|
||||
private Android.Views.View mCustomView;
|
||||
private Android.Support.V7.App.ActionBar.LayoutParams mCustomViewLayoutParams;
|
||||
|
||||
protected override void OnCreate (Bundle bundle)
|
||||
{
|
||||
base.OnCreate (bundle);
|
||||
|
||||
SetContentView(Resource.Layout.action_bar_display_options);
|
||||
|
||||
FindViewById(Resource.Id.toggle_home_as_up).SetOnClickListener(this);
|
||||
FindViewById(Resource.Id.toggle_show_home).SetOnClickListener(this);
|
||||
FindViewById(Resource.Id.toggle_use_logo).SetOnClickListener(this);
|
||||
FindViewById(Resource.Id.toggle_show_title).SetOnClickListener(this);
|
||||
FindViewById(Resource.Id.toggle_show_custom).SetOnClickListener(this);
|
||||
FindViewById(Resource.Id.toggle_navigation).SetOnClickListener(this);
|
||||
FindViewById(Resource.Id.cycle_custom_gravity).SetOnClickListener(this);
|
||||
FindViewById(Resource.Id.toggle_visibility).SetOnClickListener(this);
|
||||
|
||||
// Configure several action bar elements that will be toggled by display options.
|
||||
mCustomView = LayoutInflater.Inflate(Resource.Layout.action_bar_display_options_custom, null);
|
||||
mCustomViewLayoutParams = new Android.Support.V7.App.ActionBar.LayoutParams(
|
||||
Android.Support.V7.App.ActionBar.LayoutParams.WrapContent,
|
||||
Android.Support.V7.App.ActionBar.LayoutParams.WrapContent);
|
||||
|
||||
ActionBar bar = SupportActionBar;
|
||||
bar.SetCustomView(mCustomView, mCustomViewLayoutParams);
|
||||
bar.AddTab(bar.NewTab().SetText("Tab 1").SetTabListener(this));
|
||||
bar.AddTab(bar.NewTab().SetText("Tab 2").SetTabListener(this));
|
||||
bar.AddTab(bar.NewTab().SetText("Tab 3").SetTabListener(this));
|
||||
}
|
||||
|
||||
public override bool OnCreateOptionsMenu (Android.Views.IMenu menu)
|
||||
{
|
||||
MenuInflater.Inflate(Resource.Menu.display_options_actions, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool OnSupportNavigateUp ()
|
||||
{
|
||||
Finish();
|
||||
return true;
|
||||
}
|
||||
|
||||
public void OnClick (Android.Views.View v)
|
||||
{
|
||||
ActionBar bar = SupportActionBar;
|
||||
int flags = 0;
|
||||
switch (v.Id) {
|
||||
case Resource.Id.toggle_home_as_up:
|
||||
flags = Android.Support.V7.App.ActionBar.DisplayHomeAsUp;
|
||||
break;
|
||||
case Resource.Id.toggle_show_home:
|
||||
flags = Android.Support.V7.App.ActionBar.DisplayShowHome;
|
||||
break;
|
||||
case Resource.Id.toggle_use_logo:
|
||||
flags = Android.Support.V7.App.ActionBar.DisplayUseLogo;
|
||||
break;
|
||||
case Resource.Id.toggle_show_title:
|
||||
flags = Android.Support.V7.App.ActionBar.DisplayShowTitle;
|
||||
break;
|
||||
case Resource.Id.toggle_show_custom:
|
||||
flags = Android.Support.V7.App.ActionBar.DisplayShowCustom;
|
||||
break;
|
||||
case Resource.Id.toggle_navigation:
|
||||
bar.NavigationMode =
|
||||
bar.NavigationMode == Android.Support.V7.App.ActionBar.NavigationModeStandard
|
||||
? Android.Support.V7.App.ActionBar.NavigationModeTabs
|
||||
: Android.Support.V7.App.ActionBar.NavigationModeStandard;
|
||||
return;
|
||||
case Resource.Id.cycle_custom_gravity: {
|
||||
ActionBar.LayoutParams lp = mCustomViewLayoutParams;
|
||||
Android.Views.GravityFlags newGravity = 0;
|
||||
switch ((Android.Views.GravityFlags)(lp.Gravity & (int)Android.Views.GravityFlags.HorizontalGravityMask)) {
|
||||
case Android.Views.GravityFlags.Left:
|
||||
newGravity = Android.Views.GravityFlags.CenterHorizontal;
|
||||
break;
|
||||
case Android.Views.GravityFlags.CenterHorizontal:
|
||||
newGravity = Android.Views.GravityFlags.Right;
|
||||
break;
|
||||
case Android.Views.GravityFlags.Right:
|
||||
newGravity = Android.Views.GravityFlags.Left;
|
||||
break;
|
||||
}
|
||||
lp.Gravity = lp.Gravity & (int)~Android.Views.GravityFlags.HorizontalGravityMask | (int)newGravity;
|
||||
bar.SetCustomView(mCustomView, lp);
|
||||
return;
|
||||
}
|
||||
case Resource.Id.toggle_visibility:
|
||||
if (bar.IsShowing) {
|
||||
bar.Hide();
|
||||
} else {
|
||||
bar.Show();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
int change = bar.DisplayOptions ^ flags;
|
||||
bar.SetDisplayOptions(change, flags);
|
||||
}
|
||||
|
||||
public void OnTabReselected (Android.Support.V7.App.ActionBar.Tab p0, Android.Support.V4.App.FragmentTransaction p1)
|
||||
{
|
||||
}
|
||||
|
||||
public void OnTabSelected (Android.Support.V7.App.ActionBar.Tab p0, Android.Support.V4.App.FragmentTransaction p1)
|
||||
{
|
||||
}
|
||||
|
||||
public void OnTabUnselected (Android.Support.V7.App.ActionBar.Tab p0, Android.Support.V4.App.FragmentTransaction p1)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,215 +0,0 @@
|
|||
using System;
|
||||
using Android.OS;
|
||||
using Android.Support.V7.App;
|
||||
using Android.Support.V4.App;
|
||||
using Android.Widget;
|
||||
using Android.Support.V4.View;
|
||||
|
||||
|
||||
namespace AndroidSupportSample
|
||||
{
|
||||
[Android.App.Activity (Label = "@string/action_bar_fragment_menu", Theme = "@style/Theme.AppCompat")]
|
||||
public class ActionBarFragmentMenu : ActionBarActivity
|
||||
{
|
||||
|
||||
MenuFragment mFragment1;
|
||||
Menu2Fragment mFragment2;
|
||||
CheckBox mCheckBox1;
|
||||
CheckBox mCheckBox2;
|
||||
CheckBox mCheckBox3;
|
||||
CheckBox mHasOptionsMenu;
|
||||
CheckBox mMenuVisibility;
|
||||
|
||||
void OnClickListener_OnClick (object sender, EventArgs e)
|
||||
{
|
||||
UpdateFragmentVisibility();
|
||||
}
|
||||
|
||||
protected override void OnCreate (Bundle bundle)
|
||||
{
|
||||
base.OnCreate (bundle);
|
||||
SetContentView(Resource.Layout.action_bar_fragment_menu);
|
||||
|
||||
// Make sure the two menu fragments are created.
|
||||
var fm = SupportFragmentManager;
|
||||
var ft = fm.BeginTransaction();
|
||||
mFragment1 = (MenuFragment)fm.FindFragmentByTag("f1");
|
||||
if (mFragment1 == null) {
|
||||
mFragment1 = new MenuFragment();
|
||||
ft.Add(mFragment1, "f1");
|
||||
}
|
||||
mFragment2 = (Menu2Fragment)fm.FindFragmentByTag("f2");
|
||||
if (mFragment2 == null) {
|
||||
mFragment2 = new Menu2Fragment();
|
||||
ft.Add(mFragment2, "f2");
|
||||
}
|
||||
ft.Commit();
|
||||
|
||||
// Watch check box clicks.
|
||||
mCheckBox1 = (CheckBox)FindViewById(Resource.Id.menu1);
|
||||
mCheckBox1.Click += OnClickListener_OnClick;
|
||||
mCheckBox2 = (CheckBox)FindViewById(Resource.Id.menu2);
|
||||
mCheckBox2.Click += OnClickListener_OnClick;
|
||||
mCheckBox3 = (CheckBox)FindViewById(Resource.Id.menu3);
|
||||
mCheckBox3.Click += OnClickListener_OnClick;
|
||||
mHasOptionsMenu = (CheckBox)FindViewById(Resource.Id.has_options_menu);
|
||||
mHasOptionsMenu.Click += OnClickListener_OnClick;
|
||||
mMenuVisibility = (CheckBox)FindViewById(Resource.Id.menu_visibility);
|
||||
mMenuVisibility.Click += OnClickListener_OnClick;
|
||||
|
||||
// Make sure fragments start out with correct visibility.
|
||||
UpdateFragmentVisibility();
|
||||
}
|
||||
|
||||
protected override void OnRestoreInstanceState (Bundle savedInstanceState)
|
||||
{
|
||||
base.OnRestoreInstanceState (savedInstanceState);
|
||||
// Make sure fragments are updated after check box view state is restored.
|
||||
UpdateFragmentVisibility();
|
||||
}
|
||||
|
||||
// Update fragment visibility based on current check box state.
|
||||
void UpdateFragmentVisibility() {
|
||||
// Update top level fragments.
|
||||
var ft = SupportFragmentManager.BeginTransaction();
|
||||
if (mCheckBox1.Checked) ft.Show(mFragment1);
|
||||
else ft.Hide(mFragment1);
|
||||
if (mCheckBox2.Checked) ft.Show(mFragment2);
|
||||
else ft.Hide(mFragment2);
|
||||
ft.Commit();
|
||||
|
||||
mFragment1.HasOptionsMenu = mHasOptionsMenu.Checked;
|
||||
mFragment1.SetMenuVisibility (mMenuVisibility.Checked);
|
||||
mFragment2.HasOptionsMenu = mHasOptionsMenu.Checked;
|
||||
mFragment2.SetMenuVisibility (mMenuVisibility.Checked);
|
||||
|
||||
// Update the nested fragment.
|
||||
if (mFragment2.mFragment3 != null) {
|
||||
ft = mFragment2.FragmentManager.BeginTransaction();
|
||||
if (mCheckBox3.Checked) ft.Show(mFragment2.mFragment3);
|
||||
else ft.Hide(mFragment2.mFragment3);
|
||||
ft.Commit();
|
||||
|
||||
mFragment2.mFragment3.HasOptionsMenu = mHasOptionsMenu.Checked;
|
||||
mFragment2.mFragment3.SetMenuVisibility(mMenuVisibility.Checked);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A fragment that displays a menu. This fragment happens to not
|
||||
* have a UI (it does not implement onCreateView), but it could also
|
||||
* have one if it wanted.
|
||||
*/
|
||||
class MenuFragment : Fragment
|
||||
{
|
||||
public override void OnCreate (Bundle savedInstanceState)
|
||||
{
|
||||
base.OnCreate (savedInstanceState);
|
||||
HasOptionsMenu = true;
|
||||
}
|
||||
|
||||
public override void OnCreateOptionsMenu (Android.Views.IMenu menu, Android.Views.MenuInflater inflater)
|
||||
{
|
||||
MenuItemCompat.SetShowAsAction(menu.Add(new Java.Lang.String ("Menu 1a")), (int)Android.Views.ShowAsAction.IfRoom);
|
||||
MenuItemCompat.SetShowAsAction(menu.Add(new Java.Lang.String ("Menu 1b")), (int)Android.Views.ShowAsAction.IfRoom);
|
||||
base.OnCreateOptionsMenu (menu, inflater);
|
||||
}
|
||||
|
||||
public override bool OnOptionsItemSelected (Android.Views.IMenuItem item)
|
||||
{
|
||||
if (item.TitleFormatted.ToString () == "Menu 1a") {
|
||||
Toast.MakeText(Activity, "Selected Menu 1a.", ToastLength.Short).Show();
|
||||
return true;
|
||||
}
|
||||
if (item.TitleFormatted.ToString () == "Menu 1b") {
|
||||
Toast.MakeText(Activity, "Selected Menu 1b.", ToastLength.Short).Show();
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.OnOptionsItemSelected (item);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Second fragment with a menu.
|
||||
*/
|
||||
class Menu2Fragment : Fragment
|
||||
{
|
||||
public Menu3Fragment mFragment3;
|
||||
|
||||
public override void OnCreate (Bundle savedInstanceState)
|
||||
{
|
||||
base.OnCreate (savedInstanceState);
|
||||
HasOptionsMenu = true;
|
||||
|
||||
var fm = ChildFragmentManager;
|
||||
var ft = fm.BeginTransaction();
|
||||
mFragment3 = (Menu3Fragment)fm.FindFragmentByTag("f3");
|
||||
if (mFragment3 == null) {
|
||||
mFragment3 = new Menu3Fragment();
|
||||
ft.Add(mFragment3, "f3");
|
||||
}
|
||||
ft.Commit();
|
||||
}
|
||||
|
||||
public override void OnCreateOptionsMenu (Android.Views.IMenu menu, Android.Views.MenuInflater inflater)
|
||||
{
|
||||
MenuItemCompat.SetShowAsAction(menu.Add(new Java.Lang.String ("Menu 2")), (int)Android.Views.ShowAsAction.IfRoom);
|
||||
}
|
||||
|
||||
public override bool OnOptionsItemSelected (Android.Views.IMenuItem item)
|
||||
{
|
||||
if (item.TitleFormatted.ToString () == "Menu 2") {
|
||||
Toast.MakeText (Activity, "Selected Menu 2.", ToastLength.Short).Show ();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Third fragment with a menu.
|
||||
* This one is nested within the second.
|
||||
*/
|
||||
class Menu3Fragment : Fragment
|
||||
{
|
||||
public override void OnCreate (Bundle savedInstanceState)
|
||||
{
|
||||
base.OnCreate (savedInstanceState);
|
||||
HasOptionsMenu = true;
|
||||
}
|
||||
|
||||
public override void OnCreateOptionsMenu (Android.Views.IMenu menu, Android.Views.MenuInflater inflater)
|
||||
{
|
||||
Toast.MakeText (Activity, "Created nested fragment's menu.", ToastLength.Short).Show ();
|
||||
inflater.Inflate (Resource.Menu.display_options_actions, menu);
|
||||
base.OnCreateOptionsMenu (menu, inflater);
|
||||
}
|
||||
|
||||
public override void OnDestroyOptionsMenu ()
|
||||
{
|
||||
Toast.MakeText (Activity, "Destroyed nested fragment's menu.", ToastLength.Short).Show ();
|
||||
base.OnDestroyOptionsMenu ();
|
||||
}
|
||||
|
||||
public override void OnPrepareOptionsMenu (Android.Views.IMenu menu)
|
||||
{
|
||||
Toast.MakeText (Activity, "Prepared nested fragment's menu.", ToastLength.Short).Show ();
|
||||
base.OnPrepareOptionsMenu (menu);
|
||||
}
|
||||
|
||||
public override bool OnOptionsItemSelected (Android.Views.IMenuItem item)
|
||||
{
|
||||
if (item.ItemId == Resource.Id.simple_item) {
|
||||
Toast.MakeText (Activity, "Selected nested fragment's menu item.", ToastLength.Short).Show ();
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.OnOptionsItemSelected (item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
using System;
|
||||
using Android.App;
|
||||
using Android.OS;
|
||||
using Android.Support.V7.App;
|
||||
using Android.Support.V4.View;
|
||||
|
||||
|
||||
namespace AndroidSupportSample
|
||||
{
|
||||
[Activity (Label = "@string/action_bar_mechanics", Theme = "@style/Theme.AppCompat")]
|
||||
public class ActionBarMechanics : ActionBarActivity
|
||||
{
|
||||
protected override void OnCreate (Bundle bundle)
|
||||
{
|
||||
base.OnCreate (bundle);
|
||||
|
||||
// The Action Bar is a window feature. The feature must be requested
|
||||
// before setting a content view. Normally this is set automatically
|
||||
// by your Activity's theme in your manifest. The provided system
|
||||
// theme Theme.WithActionBar enables this for you. Use it as you would
|
||||
// use Theme.NoTitleBar. You can add an Action Bar to your own themes
|
||||
// by adding the element <item name="android:windowActionBar">true</item>
|
||||
// to your style definition.
|
||||
SupportRequestWindowFeature(WindowCompat.FeatureActionBar);
|
||||
}
|
||||
|
||||
public override bool OnCreateOptionsMenu (Android.Views.IMenu menu)
|
||||
{
|
||||
// Menu items default to never show in the action bar. On most devices this means
|
||||
// they will show in the standard options menu panel when the menu button is pressed.
|
||||
// On xlarge-screen devices a "More" button will appear in the far right of the
|
||||
// Action Bar that will display remaining items in a cascading menu.
|
||||
|
||||
menu.Add(new Java.Lang.String ("Normal item"));
|
||||
|
||||
var actionItem = menu.Add(new Java.Lang.String ("Action Button"));
|
||||
|
||||
// Items that show as actions should favor the "if room" setting, which will
|
||||
// prevent too many buttons from crowding the bar. Extra items will show in the
|
||||
// overflow area.
|
||||
MenuItemCompat.SetShowAsAction(actionItem, MenuItemCompat.ShowAsActionIfRoom);
|
||||
|
||||
// Items that show as actions are strongly encouraged to use an icon.
|
||||
// These icons are shown without a text description, and therefore should
|
||||
// be sufficiently descriptive on their own.
|
||||
actionItem.SetIcon(Android.Resource.Drawable.IcMenuShare);
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool OnOptionsItemSelected (Android.Views.IMenuItem item)
|
||||
{
|
||||
Android.Widget.Toast.MakeText (this, "Selected Item: " + item.TitleFormatted, Android.Widget.ToastLength.Short).Show();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
using System;
|
||||
using Android.OS;
|
||||
using Android.Support.V7.App;
|
||||
using Android.Support.V4.View;
|
||||
using Android.Content;
|
||||
using Android.Widget;
|
||||
|
||||
namespace AndroidSupportSample
|
||||
{
|
||||
[Android.App.Activity (Label = "@string/action_bar_settings_action_provider", Theme = "@style/Theme.AppCompat")]
|
||||
public class ActionBarSettingsActionProviderActivity : ActionBarActivity
|
||||
{
|
||||
public override bool OnCreateOptionsMenu (Android.Views.IMenu menu)
|
||||
{
|
||||
base.OnCreateOptionsMenu (menu);
|
||||
MenuInflater.Inflate (Resource.Menu.action_bar_settings_action_provider, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool OnOptionsItemSelected (Android.Views.IMenuItem item)
|
||||
{
|
||||
// If this callback does not handle the item click, onPerformDefaultAction
|
||||
// of the ActionProvider is invoked. Hence, the provider encapsulates the
|
||||
// complete functionality of the menu item.
|
||||
Toast.MakeText (this, Resource.String.action_bar_settings_action_provider_no_handling,
|
||||
ToastLength.Short).Show ();
|
||||
return false;
|
||||
}
|
||||
|
||||
public class SettingsActionProvider : ActionProvider
|
||||
{
|
||||
// An intent for launching the system settings.
|
||||
private static Intent sSettingsIntent = new Intent (Android.Provider.Settings.ActionSettings);
|
||||
|
||||
public SettingsActionProvider (Context context) : base (context)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override Android.Views.View OnCreateActionView ()
|
||||
{
|
||||
// Inflate the action view to be shown on the action bar.
|
||||
var layoutInflater = Android.Views.LayoutInflater.FromContext (Context);
|
||||
var view = layoutInflater.Inflate (Resource.Layout.action_bar_settings_action_provider, null);
|
||||
ImageButton button = (ImageButton)view.FindViewById (Resource.Id.button);
|
||||
// Attach a click listener for launching the system settings.
|
||||
button.Click += (sender, e) => {
|
||||
Context.StartActivity (sSettingsIntent);
|
||||
};
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
public override bool OnPerformDefaultAction ()
|
||||
{
|
||||
// This is called if the host menu item placed in the overflow menu of the
|
||||
// action bar is clicked and the host activity did not handle the click.
|
||||
Context.StartActivity (sSettingsIntent);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
using System;
|
||||
using Android.Support.V7.App;
|
||||
using Android.OS;
|
||||
using Android.Views;
|
||||
using Java.Interop;
|
||||
|
||||
namespace AndroidSupportSample
|
||||
{
|
||||
[Android.App.Activity (Label = "@string/action_bar_tabs", Theme = "@style/Theme.AppCompat")]
|
||||
public class ActionBarTabs : ActionBarActivity
|
||||
{
|
||||
protected override void OnCreate (Bundle bundle)
|
||||
{
|
||||
base.OnCreate (bundle);
|
||||
|
||||
SetContentView (Resource.Layout.action_bar_tabs);
|
||||
}
|
||||
|
||||
[Export ("onAddTab")]
|
||||
public void OnAddTab (View v)
|
||||
{
|
||||
var bar = SupportActionBar;
|
||||
int tabCount = bar.TabCount;
|
||||
string text = "Tab " + tabCount;
|
||||
|
||||
bar.AddTab (bar.NewTab ()
|
||||
.SetText (text)
|
||||
.SetTabListener (new TabListener (this, new TabContentFragment (text))));
|
||||
}
|
||||
|
||||
[Export ("onRemoveTab")]
|
||||
public void OnRemoveTab (View v)
|
||||
{
|
||||
var bar = SupportActionBar;
|
||||
if (bar.TabCount > 0) {
|
||||
bar.RemoveTabAt (bar.TabCount - 1);
|
||||
}
|
||||
}
|
||||
|
||||
[Export ("onToggleTabs")]
|
||||
public void OnToggleTabs (View v)
|
||||
{
|
||||
var bar = SupportActionBar;
|
||||
|
||||
if (bar.NavigationMode == Android.Support.V7.App.ActionBar.NavigationModeTabs) {
|
||||
bar.NavigationMode = Android.Support.V7.App.ActionBar.NavigationModeStandard;
|
||||
bar.SetDisplayOptions (Android.Support.V7.App.ActionBar.DisplayShowTitle, Android.Support.V7.App.ActionBar.DisplayShowTitle);
|
||||
} else {
|
||||
bar.NavigationMode = Android.Support.V7.App.ActionBar.NavigationModeTabs;
|
||||
bar.SetDisplayOptions (0, Android.Support.V7.App.ActionBar.DisplayShowTitle);
|
||||
}
|
||||
}
|
||||
|
||||
[Export ("onRemoveAllTabs")]
|
||||
public void OnRemoveAllTabs (View v)
|
||||
{
|
||||
SupportActionBar.RemoveAllTabs ();
|
||||
}
|
||||
|
||||
private class TabListener : Java.Lang.Object, Android.Support.V7.App.ActionBar.ITabListener
|
||||
{
|
||||
private TabContentFragment mFragment;
|
||||
ActionBarTabs mActionBarTabs;
|
||||
|
||||
public TabListener (ActionBarTabs actionBarTabs, TabContentFragment fragment)
|
||||
{
|
||||
mFragment = fragment;
|
||||
mActionBarTabs = actionBarTabs;
|
||||
}
|
||||
|
||||
public void OnTabReselected (Android.Support.V7.App.ActionBar.Tab tab, Android.Support.V4.App.FragmentTransaction ft)
|
||||
{
|
||||
Android.Widget.Toast.MakeText (mActionBarTabs, "Reselected!", Android.Widget.ToastLength.Short).Show ();
|
||||
}
|
||||
|
||||
public void OnTabSelected (Android.Support.V7.App.ActionBar.Tab tab, Android.Support.V4.App.FragmentTransaction ft)
|
||||
{
|
||||
ft.Add (Resource.Id.fragment_content, mFragment, mFragment.Text);
|
||||
}
|
||||
|
||||
public void OnTabUnselected (Android.Support.V7.App.ActionBar.Tab tab, Android.Support.V4.App.FragmentTransaction ft)
|
||||
{
|
||||
ft.Remove (mFragment);
|
||||
}
|
||||
}
|
||||
|
||||
class TabContentFragment : Android.Support.V4.App.Fragment
|
||||
{
|
||||
private string mText;
|
||||
|
||||
public TabContentFragment (String text)
|
||||
{
|
||||
mText = text;
|
||||
}
|
||||
|
||||
public String Text {
|
||||
get { return mText; }
|
||||
}
|
||||
|
||||
public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
|
||||
{
|
||||
View fragView = inflater.Inflate (Resource.Layout.action_bar_tab_content, container, false);
|
||||
|
||||
var text = (Android.Widget.TextView)fragView.FindViewById <Android.Widget.TextView> (Resource.Id.text);
|
||||
text.Text = mText;
|
||||
|
||||
return fragView;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using Android.App;
|
||||
//using Android.Content;
|
||||
//using Android.OS;
|
||||
//using Android.Runtime;
|
||||
//using Android.Views;
|
||||
//using Android.Widget;
|
||||
|
||||
using Android.OS;
|
||||
using Android.App;
|
||||
using Android.Support.V7.App;
|
||||
using Android.Support.V4.View;
|
||||
using Android.Support.V4.Widget;
|
||||
using Android.Widget;
|
||||
|
||||
|
||||
|
||||
namespace AndroidSupportSample
|
||||
{
|
||||
[Activity (Label = "@string/action_bar_usage", Theme = "@style/Theme.AppCompat")]
|
||||
[Android.Runtime.Register ("android/support/sample/v7/ActionBarUsage")]
|
||||
public class ActionBarUsage : ActionBarActivity
|
||||
{
|
||||
TextView mSearchText;
|
||||
int mSortMode = -1;
|
||||
|
||||
protected override void OnCreate (Bundle bundle)
|
||||
{
|
||||
base.OnCreate (bundle);
|
||||
mSearchText = new TextView(this);
|
||||
SetContentView(mSearchText);
|
||||
}
|
||||
|
||||
public override bool OnCreateOptionsMenu (Android.Views.IMenu menu)
|
||||
{
|
||||
var inflater = MenuInflater;
|
||||
inflater.Inflate(Resource.Menu.actions, menu);
|
||||
var arg1 = menu.FindItem (Resource.Id.action_search);
|
||||
|
||||
var test = new Android.Support.V7.Widget.SearchView (this);
|
||||
arg1.SetActionView (test);
|
||||
|
||||
var searchView = MenuItemCompat.GetActionView (arg1);
|
||||
var searchView2 = searchView as Android.Support.V7.Widget.SearchView;
|
||||
searchView2.QueryTextChange += (sender, e) => {
|
||||
e.Handled = OnQueryTextChange (e.NewText);
|
||||
};
|
||||
|
||||
searchView2.QueryTextSubmit += (sender, e) => {
|
||||
e.Handled = OnQueryTextSubmit (e.Query);
|
||||
};
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool OnPrepareOptionsMenu (Android.Views.IMenu menu)
|
||||
{
|
||||
if (mSortMode != -1) {
|
||||
var icon = menu.FindItem (mSortMode).Icon;
|
||||
menu.FindItem(Resource.Id.action_sort).SetIcon (icon);
|
||||
}
|
||||
return base.OnPrepareOptionsMenu(menu);
|
||||
}
|
||||
|
||||
public override bool OnOptionsItemSelected (Android.Views.IMenuItem item)
|
||||
{
|
||||
Toast.MakeText(this, "Selected Item: " + item.TitleFormatted, Android.Widget.ToastLength.Short).Show();
|
||||
return true;
|
||||
}
|
||||
|
||||
[Java.Interop.Export ("onSort")]
|
||||
public void OnSort( Android.Views.IMenuItem item) {
|
||||
mSortMode = item.ItemId;
|
||||
// Request a call to onPrepareOptionsMenu so we can change the sort icon
|
||||
SupportInvalidateOptionsMenu();
|
||||
}
|
||||
|
||||
public bool OnQueryTextChange (string newText)
|
||||
{
|
||||
newText = string.IsNullOrEmpty (newText) ? "" : "Query so far: " + newText;
|
||||
mSearchText.Text = newText;
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool OnQueryTextSubmit (string query)
|
||||
{
|
||||
Toast.MakeText(this,
|
||||
"Searching for: " + query + "...", Android.Widget.ToastLength.Short).Show();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
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");
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.xamarin.support.v7appcompat.sample">
|
||||
<uses-sdk android:minSdkVersion="10" />
|
||||
<supports-screens android:requiresSmallestWidthDp="320" android:compatibleWidthLimitDp="480" />
|
||||
<application android:label="@string/activity_sample_code" android:icon="@drawable/app_sample_code" android:hardwareAccelerated="true" android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
|
||||
<activity android:name="androidsupportsample.ActionBarDisplayOptions" android:label="@string/action_bar_display_options" android:logo="@drawable/apidemo_androidlogo" />
|
||||
</application>
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
</manifest>
|
|
@ -1,23 +0,0 @@
|
|||
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 ("AndroidSupportSample")]
|
||||
[assembly: AssemblyDescription ("")]
|
||||
[assembly: AssemblyConfiguration ("")]
|
||||
[assembly: AssemblyCompany ("Microsoft Corporation")]
|
||||
[assembly: AssemblyProduct ("")]
|
||||
[assembly: AssemblyCopyright ("Copyright © Microsoft Corporation")]
|
||||
[assembly: AssemblyTrademark ("")]
|
||||
[assembly: AssemblyCulture ("")]
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
[assembly: AssemblyVersion ("1.0.0")]
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
Images, layout descriptions, binary blobs and string dictionaries can be included
|
||||
in your application as resource files. Various Android APIs are designed to
|
||||
operate on the resource IDs instead of dealing with images, strings or binary blobs
|
||||
directly.
|
||||
|
||||
For example, a sample Android app that contains a user interface layout (main.axml),
|
||||
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
|
||||
would keep its resources in the "Resources" directory of the application:
|
||||
|
||||
Resources/
|
||||
drawable/
|
||||
icon.png
|
||||
|
||||
layout/
|
||||
main.axml
|
||||
|
||||
values/
|
||||
strings.xml
|
||||
|
||||
In order to get the build system to recognize Android resources, set the build action to
|
||||
"AndroidResource". The native Android APIs do not operate directly with filenames, but
|
||||
instead operate on resource IDs. When you compile an Android application that uses resources,
|
||||
the build system will package the resources for distribution and generate a class called "R"
|
||||
(this is an Android convention) that contains the tokens for each one of the resources
|
||||
included. For example, for the above Resources layout, this is what the R class would expose:
|
||||
|
||||
public class R {
|
||||
public class drawable {
|
||||
public const int icon = 0x123;
|
||||
}
|
||||
|
||||
public class layout {
|
||||
public const int main = 0x456;
|
||||
}
|
||||
|
||||
public class strings {
|
||||
public const int first_string = 0xabc;
|
||||
public const int second_string = 0xbcd;
|
||||
}
|
||||
}
|
||||
|
||||
You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main
|
||||
to reference the layout/main.axml file, or R.strings.first_string to reference the first
|
||||
string in the dictionary file values/strings.xml.
|
До Ширина: | Высота: | Размер: 2.6 KiB |
До Ширина: | Высота: | Размер: 3.5 KiB |
До Ширина: | Высота: | Размер: 7.1 KiB |
До Ширина: | Высота: | Размер: 1.9 KiB |
До Ширина: | Высота: | Размер: 5.1 KiB |
До Ширина: | Высота: | Размер: 4.0 KiB |
До Ширина: | Высота: | Размер: 2.6 KiB |
До Ширина: | Высота: | Размер: 3.5 KiB |
До Ширина: | Высота: | Размер: 7.1 KiB |
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<Button
|
||||
android:id="@+id/toggle_home_as_up"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/toggle_home_as_up" />
|
||||
<Button
|
||||
android:id="@+id/toggle_show_home"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/toggle_show_home" />
|
||||
<Button
|
||||
android:id="@+id/toggle_use_logo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/toggle_use_logo" />
|
||||
<Button
|
||||
android:id="@+id/toggle_show_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/toggle_show_title" />
|
||||
<Button
|
||||
android:id="@+id/toggle_show_custom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/toggle_show_custom" />
|
||||
<Button
|
||||
android:id="@+id/toggle_navigation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/toggle_navigation" />
|
||||
<Button
|
||||
android:id="@+id/cycle_custom_gravity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/cycle_custom_gravity" />
|
||||
<Button
|
||||
android:id="@+id/toggle_visibility"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/toggle_visibility" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
<Button xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:text="@string/display_options_custom_button" />
|
|
@ -1,63 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/action_bar_fragment_menu_msg" />
|
||||
|
||||
<CheckBox android:id="@+id/menu1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="@string/action_bar_fragment_menu1">
|
||||
</CheckBox>
|
||||
|
||||
<CheckBox android:id="@+id/menu2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="@string/action_bar_fragment_menu2">
|
||||
</CheckBox>
|
||||
|
||||
<CheckBox android:id="@+id/menu3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="@string/action_bar_fragment_menu3">
|
||||
</CheckBox>
|
||||
|
||||
<CheckBox android:id="@+id/has_options_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="@string/action_bar_fragment_has_options_menu">
|
||||
</CheckBox>
|
||||
|
||||
<CheckBox android:id="@+id/menu_visibility"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="@string/action_bar_fragment_menu_visibility">
|
||||
</CheckBox>
|
||||
</LinearLayout>
|
|
@ -1,34 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:focusable="true"
|
||||
android:addStatesFromChildren="true"
|
||||
android:background="?attr/actionBarItemBackground"
|
||||
style="?attr/actionButtonStyle">
|
||||
|
||||
<ImageButton android:id="@+id/button"
|
||||
android:background="@drawable/ic_launcher_settings"
|
||||
android:layout_width="32dip"
|
||||
android:layout_height="32dip"
|
||||
android:layout_gravity="center"
|
||||
android:scaleType="fitCenter"
|
||||
android:adjustViewBounds="true" />
|
||||
|
||||
</LinearLayout>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
|
@ -1,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<FrameLayout android:id="@+id/fragment_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1" />
|
||||
<LinearLayout android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
<Button android:id="@+id/btn_add_tab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/btn_add_tab"
|
||||
android:onClick="onAddTab" />
|
||||
<Button android:id="@+id/btn_remove_tab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/btn_remove_tab"
|
||||
android:onClick="onRemoveTab" />
|
||||
<Button android:id="@+id/btn_toggle_tabs"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/btn_toggle_tabs"
|
||||
android:onClick="onToggleTabs" />
|
||||
<Button android:id="@+id/btn_remove_all_tabs"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/btn_remove_all_tabs"
|
||||
android:onClick="onRemoveAllTabs" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
|
@ -1,27 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 Google Inc.
|
||||
|
||||
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.
|
||||
-->
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item android:id="@+id/menu_item_action_provider_action_bar"
|
||||
android:title="@string/action_bar_settings"
|
||||
app:showAsAction="ifRoom"
|
||||
app:actionProviderClass="androidsupportsample.ActionBarSettingsActionProviderActivity_SettingsActionProvider"/>
|
||||
|
||||
<item android:id="@+id/menu_item_action_provider_overflow"
|
||||
android:title="@string/action_bar_settings"
|
||||
app:showAsAction="never"
|
||||
app:actionProviderClass="androidsupportsample.ActionBarSettingsActionProviderActivity_SettingsActionProvider"/>
|
||||
</menu>
|
|
@ -1,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 Google Inc.
|
||||
|
||||
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.
|
||||
-->
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item android:id="@+id/action_search"
|
||||
android:icon="@android:drawable/ic_menu_search"
|
||||
android:title="@string/action_bar_search"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item android:id="@+id/action_add"
|
||||
android:icon="@android:drawable/ic_menu_add"
|
||||
android:title="@string/action_bar_add" />
|
||||
<item android:id="@+id/action_edit"
|
||||
android:icon="@android:drawable/ic_menu_edit"
|
||||
android:title="@string/action_bar_edit"
|
||||
app:showAsAction="always" />
|
||||
<item android:id="@+id/action_share"
|
||||
android:icon="@android:drawable/ic_menu_share"
|
||||
android:title="@string/action_bar_share"
|
||||
app:actionProviderClass="android.support.v7.widget.ShareActionProvider"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item android:id="@+id/action_sort"
|
||||
android:icon="@android:drawable/ic_menu_sort_by_size"
|
||||
android:title="@string/action_bar_sort"
|
||||
app:showAsAction="ifRoom">
|
||||
<menu>
|
||||
<item android:id="@+id/action_sort_size"
|
||||
android:icon="@android:drawable/ic_menu_sort_by_size"
|
||||
android:title="@string/action_bar_sort_size"
|
||||
android:onClick="onSort" />
|
||||
<item android:id="@+id/action_sort_alpha"
|
||||
android:icon="@android:drawable/ic_menu_sort_alphabetically"
|
||||
android:title="@string/action_bar_sort_alpha"
|
||||
android:onClick="onSort" />
|
||||
</menu>
|
||||
</item>
|
||||
</menu>
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item android:id="@+id/simple_item"
|
||||
android:title="@string/display_options_menu_item"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
|
@ -1,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="activity_sample_code">v7 App Compat Demos</string>
|
||||
|
||||
<!-- ActionBar -->
|
||||
|
||||
<string name="action_bar_mechanics">Action Bar Mechanics</string>
|
||||
<string name="action_bar_usage">Action Bar Usage</string>
|
||||
<string name="action_bar_tabs">Action Bar Tabs</string>
|
||||
<string name="action_bar_settings_action_provider">Settings Action Provider</string>
|
||||
<string name="action_bar_settings_action_provider_no_handling">Handling in onOptionsItemSelected avoided</string>
|
||||
|
||||
<string name="action_bar_search">Search</string>
|
||||
<string name="action_bar_add">Add</string>
|
||||
<string name="action_bar_edit">Edit</string>
|
||||
<string name="action_bar_share">Share</string>
|
||||
<string name="action_bar_sort">Sort</string>
|
||||
<string name="action_bar_sort_alpha">Alphabetically</string>
|
||||
<string name="action_bar_sort_size">By size</string>
|
||||
<string name="action_bar_settings">Settings</string>
|
||||
|
||||
<string name="action_bar_display_options">Display Options</string>
|
||||
<string name="toggle_home_as_up">DISPLAY_HOME_AS_UP</string>
|
||||
<string name="toggle_show_home">DISPLAY_SHOW_HOME</string>
|
||||
<string name="toggle_use_logo">DISPLAY_USE_LOGO</string>
|
||||
<string name="toggle_show_title">DISPLAY_SHOW_TITLE</string>
|
||||
<string name="toggle_show_custom">DISPLAY_SHOW_CUSTOM</string>
|
||||
<string name="toggle_navigation">Navigation</string>
|
||||
<string name="cycle_custom_gravity">Cycle Custom View Gravity</string>
|
||||
<string name="toggle_visibility">Toggle Visibility</string>
|
||||
|
||||
<string name="display_options_custom_button">Custom View!</string>
|
||||
<string name="display_options_menu_item">Menu Item</string>
|
||||
|
||||
<string name="btn_add_tab">Add new tab</string>
|
||||
<string name="btn_remove_tab">Remove last tab</string>
|
||||
<string name="btn_toggle_tabs">Toggle tab mode</string>
|
||||
<string name="btn_remove_all_tabs">Remove all tabs</string>
|
||||
|
||||
<string name="action_bar_fragment_menu">Fragment Menu</string>
|
||||
<string name="action_bar_fragment_menu_msg">Build menus from three fragments, the last one
|
||||
nested, allowing you to hide them to remove them...</string>
|
||||
<string name="action_bar_fragment_menu1">Show fragment 1</string>
|
||||
<string name="action_bar_fragment_menu2">Show fragment 2</string>
|
||||
<string name="action_bar_fragment_menu3">Show nested fragment (within fragment 2)</string>
|
||||
<string name="action_bar_fragment_has_options_menu">Set has options menu to true</string>
|
||||
<string name="action_bar_fragment_menu_visibility">Set menu visibility to true</string>
|
||||
</resources>
|
|
@ -1,77 +0,0 @@
|
|||
using System;
|
||||
using Android.OS;
|
||||
using Android.App;
|
||||
using Android.Widget;
|
||||
using Android.Content;
|
||||
|
||||
namespace AndroidSupportSample
|
||||
{
|
||||
[Activity (MainLauncher = true)]
|
||||
public class Support7Demos : ListActivity
|
||||
{
|
||||
protected override void OnCreate (Bundle bundle)
|
||||
{
|
||||
base.OnCreate (bundle);
|
||||
|
||||
var resources = Resources;
|
||||
|
||||
string[] mList = {
|
||||
resources.GetString (Resource.String.action_bar_mechanics),
|
||||
resources.GetString (Resource.String.action_bar_tabs),
|
||||
resources.GetString (Resource.String.action_bar_usage),
|
||||
resources.GetString (Resource.String.action_bar_display_options),
|
||||
resources.GetString (Resource.String.action_bar_fragment_menu),
|
||||
resources.GetString (Resource.String.action_bar_settings_action_provider),
|
||||
"AlertDialog"
|
||||
};
|
||||
|
||||
ListAdapter = new ArrayAdapter<string> (this, Android.Resource.Layout.SimpleListItem1, mList);
|
||||
|
||||
ListView list = ListView;
|
||||
|
||||
list.ItemClick += (sender, e) => {
|
||||
Intent intent = null;
|
||||
switch (e.Position) {
|
||||
case 0:
|
||||
intent = new Intent (this, typeof(ActionBarMechanics));
|
||||
break;
|
||||
case 1:
|
||||
intent = new Intent (this, typeof(ActionBarTabs));
|
||||
break;
|
||||
case 2:
|
||||
intent = new Intent (this, typeof(ActionBarUsage));
|
||||
break;
|
||||
case 3:
|
||||
intent = new Intent (this, typeof(ActionBarDisplayOptions));
|
||||
break;
|
||||
case 4:
|
||||
intent = new Intent (this, typeof(ActionBarFragmentMenu));
|
||||
break;
|
||||
case 5:
|
||||
intent = new Intent (this, typeof(ActionBarSettingsActionProviderActivity));
|
||||
break;
|
||||
case 6:
|
||||
ShowAlert ();
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
if (intent != null)
|
||||
StartActivity (intent);
|
||||
};
|
||||
}
|
||||
|
||||
void ShowAlert ()
|
||||
{
|
||||
new Android.Support.V7.App.AlertDialog.Builder(this)
|
||||
.SetTitle("This is an alert")
|
||||
.SetInverseBackgroundForced(true)
|
||||
.SetPositiveButton(Android.Resource.String.Ok, (sender, args) =>
|
||||
{
|
||||
((IDialogInterface)sender).Dismiss();
|
||||
}).Create().Show();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
</packages>
|
|
@ -1,29 +0,0 @@
|
|||
using System;
|
||||
using Android.Runtime;
|
||||
|
||||
namespace Android.Support.V7.Widget
|
||||
{
|
||||
public partial class ActionMenuView
|
||||
{
|
||||
static IntPtr id_setPresenter_ActionMenuPresenter;
|
||||
[Register("setPresenter", "(Landroid/support/v7/widget/ActionMenuPresenter;)V", "GetSetPresenter_Landroid_support_v7_widget_ActionMenuPresenter")]
|
||||
public unsafe void SetPresenter(global::Android.Support.V7.Widget.ActionMenuPresenter presenter)
|
||||
{
|
||||
if (id_setPresenter_ActionMenuPresenter == IntPtr.Zero)
|
||||
id_setPresenter_ActionMenuPresenter = JNIEnv.GetMethodID(class_ref, "setPresenter", "(Landroid/support/v7/widget/ActionMenuPresenter;)V");
|
||||
try
|
||||
{
|
||||
JValue* __args = stackalloc JValue[1];
|
||||
__args[0] = new JValue(presenter);
|
||||
|
||||
if (GetType() == ThresholdType)
|
||||
JNIEnv.CallVoidMethod(((global::Java.Lang.Object)this).Handle, id_setPresenter_ActionMenuPresenter, __args);
|
||||
else
|
||||
JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setPresenter", "(Landroid/support/v7/widget/ActionMenuPresenter;)V"), __args);
|
||||
}
|
||||
finally
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
|
||||
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 ("Xamarin.Android.Support.v7.AppCompat")]
|
||||
[assembly: AssemblyDescription ("")]
|
||||
[assembly: AssemblyConfiguration ("")]
|
||||
[assembly: AssemblyCompany ("Microsoft Corporation")]
|
||||
[assembly: AssemblyProduct ("")]
|
||||
[assembly: AssemblyCopyright ("Copyright © Microsoft Corporation")]
|
||||
[assembly: AssemblyTrademark ("")]
|
||||
[assembly: AssemblyCulture ("")]
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
[assembly: AssemblyVersion ("1.0.0")]
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
[assembly: AssemblyMetadata ("BUILD_COMMIT", "{BUILD_COMMIT}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_NUMBER", "{BUILD_NUMBER}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_TIMESTAMP", "{BUILD_TIMESTAMP}")]
|
||||
|
||||
[assembly: AssemblyInformationalVersion ("{NUGET_VERSION}")]
|
||||
|
||||
[assembly: Android.LinkerSafe]
|
|
@ -1,6 +0,0 @@
|
|||
javadoc \
|
||||
-J-Xmx1024m \
|
||||
-d ./docs \
|
||||
-sourcepath \
|
||||
$HOME/Library/Developer/Xamarin/android-sdk-mac_x86/sources/android-18/ \
|
||||
-subpackages android.support.v7
|
|
@ -1,137 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{B4ED245B-BBD8-4549-9990-476A36AAD381}</ProjectGuid>
|
||||
<ProjectTypeGuids>{10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Xamarin.Android.Support.v7.AppCompat</RootNamespace>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>
|
||||
<AssemblyName>Xamarin.Android.Support.v7.AppCompat</AssemblyName>
|
||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||
<!-- <SignAssembly>true</SignAssembly>
|
||||
<DelaySign>true</DelaySign>
|
||||
<AssemblyOriginatorKeyFile>publickey.snk</AssemblyOriginatorKeyFile> -->
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;__MOBILE__;__ANDROID__;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<DefineConstants>__MOBILE__;__ANDROID__;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<DroidDocPaths>..\..\docs\reference</DroidDocPaths>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Mono.Android" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Additions\AlertDialog.cs" />
|
||||
<Compile Include="Additions\Toolbar.cs" />
|
||||
<Compile Include="Additions\Additions.cs" />
|
||||
<Compile Include="Additions\ActionMenuView.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<TransformFile Include="..\..\Metadata.generated.xml" />
|
||||
<TransformFile Include="Transforms\EnumFields.xml" />
|
||||
<TransformFile Include="Transforms\EnumMethods.xml" />
|
||||
<TransformFile Include="Transforms\Metadata.xml" />
|
||||
<TransformFile Include="Transforms\Metadata.ParameterNames.xml" />
|
||||
<TransformFile Include="..\..\Metadata.generated.xml">
|
||||
<Link>Transforms\Metadata.generated.xml</Link>
|
||||
</TransformFile>
|
||||
<TransformFile Include="..\..\Metadata.common.xml">
|
||||
<Link>Transforms\Metadata.common.xml</Link>
|
||||
</TransformFile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\support-compat\source\Compat.csproj">
|
||||
<Project>{CA4194B2-8B2D-4C37-8790-C79C5803357A}</Project>
|
||||
<Name>Compat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\support-core-ui\source\Core-UI.csproj">
|
||||
<Project>{071EAE48-7BCE-4D68-8098-745B923A122F}</Project>
|
||||
<Name>Core-UI</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\support-core-utils\source\Core-Utils.csproj">
|
||||
<Project>{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}</Project>
|
||||
<Name>Core-Utils</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\support-fragment\source\Fragment.csproj">
|
||||
<Project>{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}</Project>
|
||||
<Name>Fragment</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\animated-vector-drawable\source\Animated-Vector-Drawable.csproj">
|
||||
<Project>{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}</Project>
|
||||
<Name>Animated-Vector-Drawable</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\support-media-compat\source\Media-Compat.csproj">
|
||||
<Project>{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}</Project>
|
||||
<Name>Media-Compat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\support-vector-drawable\source\Vector-Drawable.csproj">
|
||||
<Project>{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}</Project>
|
||||
<Name>Vector-Drawable</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\support-annotations\source\Annotations.csproj">
|
||||
<Project>{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}</Project>
|
||||
<Name>Annotations</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\arch-core\common\source\Arch.Core.Common.csproj">
|
||||
<Project>{4C9E1C1E-09C3-469C-B3C2-79651DF13870}</Project>
|
||||
<Name>Arch.Core.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\arch-lifecycle\common\source\Arch.Lifecycle.Common.csproj">
|
||||
<Project>{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}</Project>
|
||||
<Name>Arch.Lifecycle.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\arch-lifecycle\viewmodel\source\Arch.Lifecycle.ViewModel.csproj">
|
||||
<Project>{ACAF71C0-C260-410E-B572-1C28F6178CBB}</Project>
|
||||
<Name>Arch.Lifecycle.ViewModel</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\arch-lifecycle\livedata-core\source\Arch.Lifecycle.LiveData.Core.csproj">
|
||||
<Project>{D2F466C7-CEE0-43FE-938C-7961CF9AB483}</Project>
|
||||
<Name>Arch.Lifecycle.LiveData.Core</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Jars\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<LibraryProjectZip Include="..\..\externals\appcompat-v7.aar">
|
||||
<Link>appcompat-v7.aar</Link>
|
||||
</LibraryProjectZip>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.Bindings.targets" />
|
||||
|
||||
</Project>
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
</packages>
|
|
@ -1,26 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<metadata>
|
||||
<id>Xamarin.Android.Arch.Core.Common</id>
|
||||
<title>Xamarin Android Architecture Core - Common</title>
|
||||
<version>$version$</version>
|
||||
<authors>Xamarin Inc.</authors>
|
||||
<owners>Xamarin Inc.</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<description>Android Architecture Core - Common C# bindings for Xamarin</description>
|
||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||
<projectUrl>https://go.microsoft.com/fwlink/?linkid=865327</projectUrl>
|
||||
<licenseUrl>https://go.microsoft.com/fwlink/?linkid=865385</licenseUrl>
|
||||
<iconUrl>https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-core-common_128x128.png</iconUrl>
|
||||
<dependencies>
|
||||
<group targetFramework="MonoAndroid80">
|
||||
<dependency id="Xamarin.Android.Support.Annotations" version="$com.android.support.support-annotations$" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="arch-core/common/nuget/Xamarin.Android.Arch.Core.Common.targets" target="build/MonoAndroid80" />
|
||||
<file src="output/Xamarin.Android.Arch.Core.Common.dll" target="lib/MonoAndroid80" />
|
||||
<file src="External-Dependency-Info.txt" target="THIRD-PARTY-NOTICES.txt" />
|
||||
</files>
|
||||
</package>
|
|
@ -1,84 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{4C9E1C1E-09C3-469C-B3C2-79651DF13870}</ProjectGuid>
|
||||
<ProjectTypeGuids>{10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Android.Arch.Core.Common</RootNamespace>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<AssemblyName>Xamarin.Android.Arch.Core.Common</AssemblyName>
|
||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||
<!-- <SignAssembly>true</SignAssembly>
|
||||
<DelaySign>true</DelaySign>
|
||||
<AssemblyOriginatorKeyFile>publickey.snk</AssemblyOriginatorKeyFile> -->
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<!--Docs URL Can be found here: http://dl-ssl.google.com/android/repository/repository-8.xml -->
|
||||
<DroidDocPaths>..\..\..\docs\reference</DroidDocPaths>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Mono.Android" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<TransformFile Include="Transforms\EnumFields.xml" />
|
||||
<TransformFile Include="Transforms\EnumMethods.xml" />
|
||||
<TransformFile Include="Transforms\Metadata.xml" />
|
||||
<TransformFile Include="..\..\..\Metadata.generated.xml">
|
||||
<Link>Transforms\Metadata.generated.xml</Link>
|
||||
</TransformFile>
|
||||
<TransformFile Include="..\..\..\Metadata.common.xml">
|
||||
<Link>Transforms\Metadata.common.xml</Link>
|
||||
</TransformFile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\support-annotations\source\Annotations.csproj">
|
||||
<Project>{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}</Project>
|
||||
<Name>Annotations</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Additions\" />
|
||||
<Folder Include="Jars\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedJar Include="..\..\..\externals\arch-core\arch-core-common.jar">
|
||||
<Link>arch-core-common.jar</Link>
|
||||
</EmbeddedJar>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.Bindings.targets" />
|
||||
|
||||
</Project>
|
|
@ -1,35 +0,0 @@
|
|||
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("Xamarin.Android.Arch.Core.Common")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany ("Microsoft Corporation")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright ("Copyright © Microsoft Corporation")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
[assembly: AssemblyMetadata ("BUILD_COMMIT", "{BUILD_COMMIT}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_NUMBER", "{BUILD_NUMBER}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_TIMESTAMP", "{BUILD_TIMESTAMP}")]
|
||||
|
||||
[assembly: AssemblyInformationalVersion ("{NUGET_VERSION}")]
|
||||
|
||||
[assembly: Android.LinkerSafe]
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<metadata>
|
||||
<id>Xamarin.Android.Arch.Core.Runtime</id>
|
||||
<title>Xamarin Android Architecture Core - Runtime</title>
|
||||
<version>$version$</version>
|
||||
<authors>Xamarin Inc.</authors>
|
||||
<owners>Xamarin Inc.</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<description>Android Architecture Core - Runtime C# bindings for Xamarin</description>
|
||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||
<projectUrl>https://go.microsoft.com/fwlink/?linkid=865327</projectUrl>
|
||||
<licenseUrl>https://go.microsoft.com/fwlink/?linkid=865385</licenseUrl>
|
||||
<iconUrl>https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-core-runtime_128x128.png</iconUrl>
|
||||
<dependencies>
|
||||
<group targetFramework="MonoAndroid80">
|
||||
<dependency id="Xamarin.Android.Support.Annotations" version="$com.android.support.support-annotations$" />
|
||||
<dependency id="Xamarin.Android.Arch.Core.Common" version="$android.arch.core.common$" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="arch-core/runtime/nuget/Xamarin.Android.Arch.Core.Runtime.targets" target="build/MonoAndroid80" />
|
||||
|
||||
<file src="output/Xamarin.Android.Arch.Core.Runtime.dll" target="lib/MonoAndroid80" />
|
||||
|
||||
<file src="External-Dependency-Info.txt" target="THIRD-PARTY-NOTICES.txt" />
|
||||
</files>
|
||||
</package>
|
|
@ -1,78 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{4C9E1C1E-09C3-469C-B3C2-79651DF13871}</ProjectGuid>
|
||||
<ProjectTypeGuids>{10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Android.Arch.Core.Runtime</RootNamespace>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<AssemblyName>Xamarin.Android.Arch.Core.Runtime</AssemblyName>
|
||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||
<!-- <SignAssembly>true</SignAssembly>
|
||||
<DelaySign>true</DelaySign>
|
||||
<AssemblyOriginatorKeyFile>publickey.snk</AssemblyOriginatorKeyFile> -->
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<!--Docs URL Can be found here: http://dl-ssl.google.com/android/repository/repository-8.xml -->
|
||||
<DroidDocPaths>..\..\..\docs\reference</DroidDocPaths>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Mono.Android" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<TransformFile Include="Transforms\EnumFields.xml" />
|
||||
<TransformFile Include="Transforms\EnumMethods.xml" />
|
||||
<TransformFile Include="Transforms\Metadata.xml" />
|
||||
<TransformFile Include="..\..\..\Metadata.generated.xml">
|
||||
<Link>Transforms\Metadata.generated.xml</Link>
|
||||
</TransformFile>
|
||||
<TransformFile Include="..\..\..\Metadata.common.xml">
|
||||
<Link>Transforms\Metadata.common.xml</Link>
|
||||
</TransformFile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Additions\" />
|
||||
<Folder Include="Jars\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<LibraryProjectZip Include="..\..\..\externals\arch-core\arch-core-runtime.aar">
|
||||
<Link>arch-core-runtime.aar</Link>
|
||||
</LibraryProjectZip>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.Bindings.targets" />
|
||||
|
||||
</Project>
|
|
@ -1,35 +0,0 @@
|
|||
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("Xamarin.Android.Arch.Core.Runtime")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany ("Microsoft Corporation")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright ("Copyright © Microsoft Corporation")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
[assembly: AssemblyMetadata ("BUILD_COMMIT", "{BUILD_COMMIT}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_NUMBER", "{BUILD_NUMBER}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_TIMESTAMP", "{BUILD_TIMESTAMP}")]
|
||||
|
||||
[assembly: AssemblyInformationalVersion ("{NUGET_VERSION}")]
|
||||
|
||||
[assembly: Android.LinkerSafe]
|
|
@ -1,26 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<metadata>
|
||||
<id>Xamarin.Android.Arch.Lifecycle.Common</id>
|
||||
<title>Xamarin Android Architecture Lifecycle - Common</title>
|
||||
<version>$version$</version>
|
||||
<authors>Xamarin Inc.</authors>
|
||||
<owners>Xamarin Inc.</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<description>Android Architecture Lifecycle - Common C# bindings for Xamarin</description>
|
||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||
<projectUrl>https://go.microsoft.com/fwlink/?linkid=865327</projectUrl>
|
||||
<licenseUrl>https://go.microsoft.com/fwlink/?linkid=865385</licenseUrl>
|
||||
<iconUrl>https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-lifecycle-common_128x128.png</iconUrl>
|
||||
<dependencies>
|
||||
<group targetFramework="MonoAndroid80">
|
||||
<dependency id="Xamarin.Android.Support.Annotations" version="$com.android.support.support-annotations$" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="arch-lifecycle/common/nuget/Xamarin.Android.Arch.Lifecycle.Common.targets" target="build/MonoAndroid80" />
|
||||
<file src="output/Xamarin.Android.Arch.Lifecycle.Common.dll" target="lib/MonoAndroid80" />
|
||||
<file src="External-Dependency-Info.txt" target="THIRD-PARTY-NOTICES.txt" />
|
||||
</files>
|
||||
</package>
|
|
@ -1,85 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}</ProjectGuid>
|
||||
<ProjectTypeGuids>{10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Android.Arch.Lifecycle.Common</RootNamespace>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<AssemblyName>Xamarin.Android.Arch.Lifecycle.Common</AssemblyName>
|
||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||
<!-- <SignAssembly>true</SignAssembly>
|
||||
<DelaySign>true</DelaySign>
|
||||
<AssemblyOriginatorKeyFile>publickey.snk</AssemblyOriginatorKeyFile> -->
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<!--Docs URL Can be found here: http://dl-ssl.google.com/android/repository/repository-8.xml -->
|
||||
<DroidDocPaths>..\..\docs\reference</DroidDocPaths>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Mono.Android" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Additions\Additions.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<TransformFile Include="Transforms\EnumFields.xml" />
|
||||
<TransformFile Include="Transforms\EnumMethods.xml" />
|
||||
<TransformFile Include="Transforms\Metadata.xml" />
|
||||
<TransformFile Include="..\..\..\Metadata.generated.xml">
|
||||
<Link>Transforms\Metadata.generated.xml</Link>
|
||||
</TransformFile>
|
||||
<TransformFile Include="..\..\..\Metadata.common.xml">
|
||||
<Link>Transforms\Metadata.common.xml</Link>
|
||||
</TransformFile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\support-annotations\source\Annotations.csproj">
|
||||
<Project>{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}</Project>
|
||||
<Name>Annotations</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Additions\" />
|
||||
<Folder Include="Jars\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedJar Include="..\..\..\externals\arch-lifecycle\arch-lifecycle-common.jar">
|
||||
<Link>arch-lifecycle-common.jar</Link>
|
||||
</EmbeddedJar>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.Bindings.targets" />
|
||||
|
||||
</Project>
|
|
@ -1,35 +0,0 @@
|
|||
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("Xamarin.Android.Arch.Lifecycle.Common")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany ("Microsoft Corporation")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright ("Copyright © Microsoft Corporation")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
[assembly: AssemblyMetadata ("BUILD_COMMIT", "{BUILD_COMMIT}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_NUMBER", "{BUILD_NUMBER}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_TIMESTAMP", "{BUILD_TIMESTAMP}")]
|
||||
|
||||
[assembly: AssemblyInformationalVersion ("{NUGET_VERSION}")]
|
||||
|
||||
[assembly: Android.LinkerSafe]
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<metadata>
|
||||
<id>Xamarin.Android.Arch.Lifecycle.Extensions</id>
|
||||
<title>Xamarin Android Architecture Lifecycle - Extensions</title>
|
||||
<version>$version$</version>
|
||||
<authors>Xamarin Inc.</authors>
|
||||
<owners>Xamarin Inc.</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<description>Android Architecture Lifecycle - Extensions C# bindings for Xamarin</description>
|
||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||
<projectUrl>https://go.microsoft.com/fwlink/?linkid=865327</projectUrl>
|
||||
<licenseUrl>https://go.microsoft.com/fwlink/?linkid=865385</licenseUrl>
|
||||
<iconUrl>https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-lifecycle-extensions_128x128.png</iconUrl>
|
||||
<dependencies>
|
||||
<group targetFramework="MonoAndroid80">
|
||||
<dependency id="Xamarin.Android.Support.Annotations" version="$com.android.support.support-annotations$" />
|
||||
<dependency id="Xamarin.Android.Support.Fragment" version="$com.android.support.support-fragment$" />
|
||||
<dependency id="Xamarin.Android.Arch.Lifecycle.Runtime" version="$android.arch.lifecycle.runtime$" />
|
||||
<dependency id="Xamarin.Android.Arch.Lifecycle.Common" version="$android.arch.lifecycle.common$" />
|
||||
<dependency id="Xamarin.Android.Arch.Lifecycle.LiveData" version="$android.arch.lifecycle.livedata$" />
|
||||
<dependency id="Xamarin.Android.Arch.Lifecycle.ViewModel" version="$android.arch.lifecycle.viewmodel$" />
|
||||
<dependency id="Xamarin.Android.Arch.Core.Common" version="$android.arch.core.common$" />
|
||||
<dependency id="Xamarin.Android.Arch.Core.Runtime" version="$android.arch.core.runtime$" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="arch-lifecycle/extensions/nuget/Xamarin.Android.Arch.Lifecycle.Extensions.targets" target="build/MonoAndroid80" />
|
||||
|
||||
<file src="output/Xamarin.Android.Arch.Lifecycle.Extensions.dll" target="lib/MonoAndroid80" />
|
||||
|
||||
<file src="External-Dependency-Info.txt" target="THIRD-PARTY-NOTICES.txt" />
|
||||
</files>
|
||||
</package>
|
|
@ -1,95 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{8DFA4E1A-7DF0-4FC5-A8F3-8E6E30E3DA70}</ProjectGuid>
|
||||
<ProjectTypeGuids>{10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Android.Arch.Lifecycle.Extensions</RootNamespace>
|
||||
<AssemblyName>Xamarin.Android.Arch.Lifecycle.Extensions</AssemblyName>
|
||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidManagedSymbols>true</AndroidManagedSymbols>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Mono.Android" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<TransformFile Include="Transforms\EnumFields.xml" />
|
||||
<TransformFile Include="Transforms\EnumMethods.xml" />
|
||||
<TransformFile Include="Transforms\Metadata.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Jars\" />
|
||||
<Folder Include="Additions\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\support-fragment\source\Fragment.csproj">
|
||||
<Project>{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}</Project>
|
||||
<Name>Fragment</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-annotations\source\Annotations.csproj">
|
||||
<Project>{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}</Project>
|
||||
<Name>Annotations</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\arch-core\common\source\Arch.Core.Common.csproj">
|
||||
<Project>{4C9E1C1E-09C3-469C-B3C2-79651DF13870}</Project>
|
||||
<Name>Arch.Core.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\common\source\Arch.Lifecycle.Common.csproj">
|
||||
<Project>{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}</Project>
|
||||
<Name>Arch.Lifecycle.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\runtime\source\Arch.Lifecycle.Runtime.csproj">
|
||||
<Project>{D2F466C7-CEE0-43FE-938C-7961CF9AB483}</Project>
|
||||
<Name>Arch.Lifecycle.LiveData.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\support-compat\source\Compat.csproj">
|
||||
<Project>{CA4194B2-8B2D-4C37-8790-C79C5803357A}</Project>
|
||||
<Name>Compat</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\viewmodel\source\Arch.Lifecycle.ViewModel.csproj">
|
||||
<Project>{ACAF71C0-C260-410E-B572-1C28F6178CBB}</Project>
|
||||
<Name>Arch.Lifecycle.ViewModel</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<LibraryProjectZip Include="..\..\..\externals\arch-lifecycle\arch-lifecycle-extensions.aar">
|
||||
<Link>arch-lifecycle-extensions.aar</Link>
|
||||
</LibraryProjectZip>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.Bindings.targets" />
|
||||
|
||||
</Project>
|
|
@ -1,34 +0,0 @@
|
|||
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("Xamarin.Android.Arch.Lifecycle.Extensions")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft Corporation")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft Corporation")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyMetadata ("BUILD_COMMIT", "{BUILD_COMMIT}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_NUMBER", "{BUILD_NUMBER}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_TIMESTAMP", "{BUILD_TIMESTAMP}")]
|
||||
|
||||
[assembly: AssemblyInformationalVersion ("{NUGET_VERSION}")]
|
||||
|
||||
[assembly: Android.LinkerSafe]
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<enum-field-mappings>
|
||||
<!--
|
||||
This example converts the constants Fragment_id, Fragment_name,
|
||||
and Fragment_tag from android.support.v4.app.FragmentActivity.FragmentTag
|
||||
to an enum called Android.Support.V4.App.FragmentTagType with values
|
||||
Id, Name, and Tag.
|
||||
|
||||
<mapping clr-enum-type="Android.Support.V4.App.FragmentTagType" jni-class="android/support/v4/app/FragmentActivity$FragmentTag">
|
||||
<field clr-name="Id" jni-name="Fragment_id" value="1" />
|
||||
<field clr-name="Name" jni-name="Fragment_name" value="0" />
|
||||
<field clr-name="Tag" jni-name="Fragment_tag" value="2" />
|
||||
</type>
|
||||
|
||||
Notes:
|
||||
- An optional "bitfield" attribute marks the enum type with [Flags].
|
||||
- For Java interfaces, use "jni-interface" attribute instead of "jni-class" attribute.
|
||||
-->
|
||||
</enum-field-mappings>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<enum-method-mappings>
|
||||
<!--
|
||||
This example changes the Java method:
|
||||
android.support.v4.app.Fragment.SavedState.writeToParcel (int flags)
|
||||
to be:
|
||||
android.support.v4.app.Fragment.SavedState.writeToParcel (Android.OS.ParcelableWriteFlags flags)
|
||||
when bound in C#.
|
||||
|
||||
<mapping jni-class="android/support/v4/app/Fragment.SavedState">
|
||||
<method jni-name="writeToParcel" parameter="flags" clr-enum-type="Android.OS.ParcelableWriteFlags" />
|
||||
</mapping>
|
||||
|
||||
Notes:
|
||||
- For Java interfaces, use "jni-interface" attribute instead of "jni-class" attribute.
|
||||
- To change the type of the return value, use "return" as the parameter name.
|
||||
- The parameter names will be p0, p1, ... unless you provide JavaDoc file in the project.
|
||||
-->
|
||||
</enum-method-mappings>
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<!--
|
||||
This sample removes the class: android.support.v4.content.AsyncTaskLoader.LoadTask:
|
||||
<remove-node path="/api/package[@name='android.support.v4.content']/class[@name='AsyncTaskLoader.LoadTask']" />
|
||||
|
||||
This sample removes the method: android.support.v4.content.CursorLoader.loadInBackground:
|
||||
<remove-node path="/api/package[@name='android.support.v4.content']/class[@name='CursorLoader']/method[@name='loadInBackground']" />
|
||||
-->
|
||||
|
||||
<add-node
|
||||
path="/api/package[@name='android.arch.lifecycle']/class[@name='HolderFragment']"
|
||||
>
|
||||
<!--
|
||||
public ViewModelStore getViewModelStore()
|
||||
-->
|
||||
<method
|
||||
visibility="public" abstract="false" static="false" return="android.arch.lifecycle.ViewModelStore" name="getViewModelStore"
|
||||
deprecated="not deprecated" final="false" native="false" synchronized="false"
|
||||
>
|
||||
\ </method>
|
||||
</add-node>
|
||||
|
||||
|
||||
</metadata>
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<metadata>
|
||||
<id>Xamarin.Android.Arch.Lifecycle.LiveData.Core</id>
|
||||
<title>Xamarin Android Architecture Lifecycle - LiveData Core</title>
|
||||
<version>$version$</version>
|
||||
<authors>Xamarin Inc.</authors>
|
||||
<owners>Xamarin Inc.</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<description>Android Architecture Lifecycle - LiveData Core C# bindings for Xamarin</description>
|
||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||
<projectUrl>https://go.microsoft.com/fwlink/?linkid=865327</projectUrl>
|
||||
<licenseUrl>https://go.microsoft.com/fwlink/?linkid=865385</licenseUrl>
|
||||
<iconUrl>https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-lifecycle-runtime_128x128.png</iconUrl>
|
||||
<dependencies>
|
||||
<group targetFramework="MonoAndroid80">
|
||||
<dependency id="Xamarin.Android.Support.Annotations" version="$com.android.support.support-annotations$" />
|
||||
<dependency id="Xamarin.Android.Arch.Lifecycle.Common" version="$android.arch.lifecycle.common$" />
|
||||
<dependency id="Xamarin.Android.Arch.Core.Common" version="$android.arch.core.common$" />
|
||||
<dependency id="Xamarin.Android.Arch.Core.Runtime" version="$android.arch.core.runtime$" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="arch-lifecycle/livedata-core/nuget/Xamarin.Android.Arch.Lifecycle.LiveData.Core.targets" target="build/MonoAndroid80" />
|
||||
<file src="output/Xamarin.Android.Arch.Lifecycle.LiveData.Core.dll" target="lib/MonoAndroid80" />
|
||||
<file src="External-Dependency-Info.txt" target="THIRD-PARTY-NOTICES.txt" />
|
||||
</files>
|
||||
</package>
|
|
@ -1,92 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{d2f466c7-cee0-43fe-938c-7961cf9ab483}</ProjectGuid>
|
||||
<ProjectTypeGuids>{10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Android.Arch.Lifecycle.LiveData.Core</RootNamespace>
|
||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||
<AssemblyName>Xamarin.Android.Arch.Lifecycle.LiveData.Core</AssemblyName>
|
||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||
<!-- <SignAssembly>true</SignAssembly>
|
||||
<DelaySign>true</DelaySign>
|
||||
<AssemblyOriginatorKeyFile>publickey.snk</AssemblyOriginatorKeyFile> -->
|
||||
<AndroidClassParser>class-parse</AndroidClassParser>
|
||||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<!--Docs URL Can be found here: http://dl-ssl.google.com/android/repository/repository-8.xml -->
|
||||
<DroidDocPaths>..\..\docs\reference</DroidDocPaths>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Mono.Android" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<TransformFile Include="Transforms\EnumFields.xml" />
|
||||
<TransformFile Include="Transforms\EnumMethods.xml" />
|
||||
<TransformFile Include="Transforms\Metadata.xml" />
|
||||
<TransformFile Include="..\..\..\Metadata.generated.xml">
|
||||
<Link>Transforms\Metadata.generated.xml</Link>
|
||||
</TransformFile>
|
||||
<TransformFile Include="..\..\..\Metadata.common.xml">
|
||||
<Link>Transforms\Metadata.common.xml</Link>
|
||||
</TransformFile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\support-annotations\source\Annotations.csproj">
|
||||
<Project>{EFC85AD8-90A7-4C98-8CEA-A875213DA5DC}</Project>
|
||||
<Name>Annotations</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\arch-core\common\source\Arch.Core.Common.csproj">
|
||||
<Project>{4C9E1C1E-09C3-469C-B3C2-79651DF13870}</Project>
|
||||
<Name>Arch.Core.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\common\source\Arch.Lifecycle.Common.csproj">
|
||||
<Project>{1489A4D8-8D13-4113-BD73-3025CDE3E3A0}</Project>
|
||||
<Name>Arch.Lifecycle.Common</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Additions\" />
|
||||
<Folder Include="Jars\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<LibraryProjectZip Include="..\..\..\externals\arch-lifecycle\livedata-core.aar">
|
||||
<Link>livedata-core.aar</Link>
|
||||
</LibraryProjectZip>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.Bindings.targets" />
|
||||
|
||||
</Project>
|
|
@ -1,35 +0,0 @@
|
|||
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("Xamarin.Android.Arch.Lifecycle.Runtime")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany ("Microsoft Corporation")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright ("Copyright © Microsoft Corporation")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
[assembly: AssemblyMetadata ("BUILD_COMMIT", "{BUILD_COMMIT}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_NUMBER", "{BUILD_NUMBER}")]
|
||||
[assembly: AssemblyMetadata ("BUILD_TIMESTAMP", "{BUILD_TIMESTAMP}")]
|
||||
|
||||
[assembly: AssemblyInformationalVersion ("{NUGET_VERSION}")]
|
||||
|
||||
[assembly: Android.LinkerSafe]
|