├── FUNDING.yml
├── icon_slidinguppanel.png
├── AndroidSlidingUpPanelXamarin
├── Jars
│ ├── library-3.4.0.aar
│ └── AboutJars.txt
├── Transforms
│ ├── Metadata.xml
│ ├── EnumMethods.xml
│ └── EnumFields.xml
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── Additions
│ └── AboutAdditions.txt
└── AndroidSlidingUpPanelXamarin.csproj
├── SlidingUpPanel.Sample
├── Resources
│ ├── drawable-hdpi
│ │ └── Icon.png
│ ├── drawable-mdpi
│ │ └── Icon.png
│ ├── drawable-xhdpi
│ │ └── Icon.png
│ ├── drawable-xxhdpi
│ │ └── Icon.png
│ ├── drawable-xxxhdpi
│ │ └── Icon.png
│ ├── menu
│ │ └── demo.xml
│ ├── values
│ │ ├── Strings.xml
│ │ └── styles.xml
│ ├── AboutResources.txt
│ └── layout
│ │ └── Main.axml
├── Properties
│ ├── AndroidManifest.xml
│ └── AssemblyInfo.cs
├── Assets
│ └── AboutAssets.txt
├── packages.config
├── MainActivity.cs
└── SlidingUpPanel.Sample.csproj
├── LICENSE
├── nuspec
└── Xam.Plugins.Android.SlidingUpPanel.nuspec
├── README.md
├── slidinguppanel-droid.sln
└── .gitignore
/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: Baseflow
2 | custom: https://baseflow.com/contact
3 |
--------------------------------------------------------------------------------
/icon_slidinguppanel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Baseflow/AndroidSlidingUpPanelXamarin/HEAD/icon_slidinguppanel.png
--------------------------------------------------------------------------------
/AndroidSlidingUpPanelXamarin/Jars/library-3.4.0.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Baseflow/AndroidSlidingUpPanelXamarin/HEAD/AndroidSlidingUpPanelXamarin/Jars/library-3.4.0.aar
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/drawable-hdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Baseflow/AndroidSlidingUpPanelXamarin/HEAD/SlidingUpPanel.Sample/Resources/drawable-hdpi/Icon.png
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/drawable-mdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Baseflow/AndroidSlidingUpPanelXamarin/HEAD/SlidingUpPanel.Sample/Resources/drawable-mdpi/Icon.png
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/drawable-xhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Baseflow/AndroidSlidingUpPanelXamarin/HEAD/SlidingUpPanel.Sample/Resources/drawable-xhdpi/Icon.png
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/drawable-xxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Baseflow/AndroidSlidingUpPanelXamarin/HEAD/SlidingUpPanel.Sample/Resources/drawable-xxhdpi/Icon.png
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/drawable-xxxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Baseflow/AndroidSlidingUpPanelXamarin/HEAD/SlidingUpPanel.Sample/Resources/drawable-xxxhdpi/Icon.png
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/AndroidSlidingUpPanelXamarin/Transforms/Metadata.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/menu/demo.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Assets/AboutAssets.txt:
--------------------------------------------------------------------------------
1 | Any raw assets you want to be deployed with your application can be placed in
2 | this directory (and child directories) and given a Build Action of "AndroidAsset".
3 |
4 | These files will be deployed with your package and will be accessible using Android's
5 | AssetManager, like this:
6 |
7 | public class ReadAsset : Activity
8 | {
9 | protected override void OnCreate (Bundle bundle)
10 | {
11 | base.OnCreate (bundle);
12 |
13 | InputStream input = Assets.Open ("my_asset.txt");
14 | }
15 | }
16 |
17 | Additionally, some Android functions will automatically load asset files:
18 |
19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
20 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/values/Strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World, Click Me!
4 | SlidingUpPanel.Sample
5 | Settings
6 | Hide Panel
7 | Show Panel
8 | Enable Anchor Point
9 | Disable Anchor Point
10 | The Awesome Sliding Up Panel from Umano
Brought to you by
http://naxam.net]]>
11 | on Twitter]]>
12 |
13 |
--------------------------------------------------------------------------------
/AndroidSlidingUpPanelXamarin/Transforms/EnumMethods.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
--------------------------------------------------------------------------------
/AndroidSlidingUpPanelXamarin/Transforms/EnumFields.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
--------------------------------------------------------------------------------
/AndroidSlidingUpPanelXamarin/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
20 |
21 |
26 |
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Martijn van Dijk
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using Android.App;
4 |
5 | // Information about this assembly is defined by the following attributes.
6 | // Change them to the values specific to your project.
7 |
8 | [assembly: AssemblyTitle ("SlidingUpPanel.Sample")]
9 | [assembly: AssemblyDescription ("")]
10 | [assembly: AssemblyConfiguration ("")]
11 | [assembly: AssemblyCompany ("")]
12 | [assembly: AssemblyProduct ("")]
13 | [assembly: AssemblyCopyright ("Gebruiker")]
14 | [assembly: AssemblyTrademark ("")]
15 | [assembly: AssemblyCulture ("")]
16 |
17 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
18 | // The form "{Major}.{Minor}.*" will automatically update the build and revision,
19 | // and "{Major}.{Minor}.{Build}.*" will update just the revision.
20 |
21 | [assembly: AssemblyVersion ("1.0.0")]
22 |
23 | // The following attributes are used to specify the signing key for the assembly,
24 | // if desired. See the Mono documentation for more information about signing.
25 |
26 | //[assembly: AssemblyDelaySign(false)]
27 | //[assembly: AssemblyKeyFile("")]
28 |
29 |
--------------------------------------------------------------------------------
/AndroidSlidingUpPanelXamarin/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using Android.App;
4 |
5 | // Information about this assembly is defined by the following attributes.
6 | // Change them to the values specific to your project.
7 |
8 | [assembly: AssemblyTitle ("AndroidSlidingUpPanelXamarin")]
9 | [assembly: AssemblyDescription ("")]
10 | [assembly: AssemblyConfiguration ("")]
11 | [assembly: AssemblyCompany ("")]
12 | [assembly: AssemblyProduct ("")]
13 | [assembly: AssemblyCopyright ("Gebruiker")]
14 | [assembly: AssemblyTrademark ("")]
15 | [assembly: AssemblyCulture ("")]
16 |
17 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
18 | // The form "{Major}.{Minor}.*" will automatically update the build and revision,
19 | // and "{Major}.{Minor}.{Build}.*" will update just the revision.
20 |
21 | [assembly: AssemblyVersion ("1.0.0")]
22 |
23 | // The following attributes are used to specify the signing key for the assembly,
24 | // if desired. See the Mono documentation for more information about signing.
25 |
26 | //[assembly: AssemblyDelaySign(false)]
27 | //[assembly: AssemblyKeyFile("")]
28 |
29 |
--------------------------------------------------------------------------------
/nuspec/Xam.Plugins.Android.SlidingUpPanel.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Xam.Plugins.Android.SlidingUpPanel
5 | 3.4.0
6 | SlidingUpPanel for Android
7 | Xamarin.Android binding library - SlidingUpPanel
8 | Xamarin.Android binding library - SlidingUpPanel
9 | Martijn van Dijk, NAXAM
10 | https://github.com/martijn00/AndroidSlidingUpPanelXamarin
11 | false
12 | xamarin android monodroid xamarin.android sliding up panel slidinguppanel sliding-up-panel
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/AndroidSlidingUpPanelXamarin/Jars/AboutJars.txt:
--------------------------------------------------------------------------------
1 | This directory is for Android .jars.
2 |
3 | There are 4 types of jars that are supported:
4 |
5 | == Input Jar and Embedded Jar ==
6 |
7 | This is the jar that bindings should be generated for.
8 |
9 | For example, if you were binding the Google Maps library, this would
10 | be Google's "maps.jar".
11 |
12 | The difference between EmbeddedJar and InputJar is, EmbeddedJar is to be
13 | embedded in the resulting dll as EmbeddedResource, while InputJar is not.
14 | There are couple of reasons you wouldn't like to embed the target jar
15 | in your dll (the ones that could be internally loaded by
16 | feature e.g. maps.jar, or you cannot embed jars that are under some
17 | proprietary license).
18 |
19 | Set the build action for these jars in the properties page to "InputJar".
20 |
21 |
22 | == Reference Jar and Embedded Reference Jar ==
23 |
24 | These are jars that are referenced by the input jar. C# bindings will
25 | not be created for these jars. These jars will be used to resolve
26 | types used by the input jar.
27 |
28 | NOTE: Do not add "android.jar" as a reference jar. It will be added automatically
29 | based on the Target Framework selected.
30 |
31 | Set the build action for these jars in the properties page to "ReferenceJar".
32 |
33 | "EmbeddedJar" works like "ReferenceJar", but like "EmbeddedJar", it is
34 | embedded in your dll. But at application build time, they are not included
35 | in the final apk, like ReferenceJar files.
36 |
37 |
38 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # AndroidSlidingUpPanelXamarin
2 |
3 | Xamarin Bindings library for [Umano's][umano] [AndroidSlidingUpPanel][AndroidSlidingUpPanel]
4 |
5 | Plugin is available on [Nuget][Nuget].
6 |
7 | # Support
8 |
9 | * Feel free to open an issue. Make sure to use one of the templates!
10 | * Commercial support is available. Integration with your app or services, samples, feature request, etc. Email: [hello@baseflow.com](mailto:hello@baseflow.com)
11 | * Powered by: [baseflow.com](https://baseflow.com)
12 |
13 | How do I use it?
14 | ================
15 |
16 |
26 |
27 |
28 |
29 | Look at the sample project and the original project for more information.
30 |
31 | ### Licensing
32 |
33 | This project is licensed under the [MS-PL License](http://opensource.org/licenses/ms-pl.html)
34 |
35 | [umano]: https://github.com/umano
36 | [AndroidSlidingUpPanel]: https://github.com/umano/AndroidSlidingUpPanel
37 | [Nuget]: https://www.nuget.org/packages/Xam.Plugins.Android.SlidingUpPanel/
38 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/AndroidSlidingUpPanelXamarin/Additions/AboutAdditions.txt:
--------------------------------------------------------------------------------
1 | Additions allow you to add arbitrary C# to the generated classes
2 | before they are compiled. This can be helpful for providing convenience
3 | methods or adding pure C# classes.
4 |
5 | == Adding Methods to Generated Classes ==
6 |
7 | Let's say the library being bound has a Rectangle class with a constructor
8 | that takes an x and y position, and a width and length size. It will look like
9 | this:
10 |
11 | public partial class Rectangle
12 | {
13 | public Rectangle (int x, int y, int width, int height)
14 | {
15 | // JNI bindings
16 | }
17 | }
18 |
19 | Imagine we want to add a constructor to this class that takes a Point and
20 | Size structure instead of 4 ints. We can add a new file called Rectangle.cs
21 | with a partial class containing our new method:
22 |
23 | public partial class Rectangle
24 | {
25 | public Rectangle (Point location, Size size) :
26 | this (location.X, location.Y, size.Width, size.Height)
27 | {
28 | }
29 | }
30 |
31 | At compile time, the additions class will be added to the generated class
32 | and the final assembly will a Rectangle class with both constructors.
33 |
34 |
35 | == Adding C# Classes ==
36 |
37 | Another thing that can be done is adding fully C# managed classes to the
38 | generated library. In the above example, let's assume that there isn't a
39 | Point class available in Java or our library. The one we create doesn't need
40 | to interact with Java, so we'll create it like a normal class in C#.
41 |
42 | By adding a Point.cs file with this class, it will end up in the binding library:
43 |
44 | public class Point
45 | {
46 | public int X { get; set; }
47 | public int Y { get; set; }
48 | }
49 |
--------------------------------------------------------------------------------
/slidinguppanel-droid.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidSlidingUpPanelXamarin", "AndroidSlidingUpPanelXamarin\AndroidSlidingUpPanelXamarin.csproj", "{6E76C357-A884-40EE-B7F3-EB1ED9F2B5AD}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlidingUpPanel.Sample", "SlidingUpPanel.Sample\SlidingUpPanel.Sample.csproj", "{0F30B80C-E13A-4C05-A110-6E44F35536BF}"
7 | EndProject
8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "demo", "demo", "{F01E6132-91A9-460F-A8E7-D4425428E6A9}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {0F30B80C-E13A-4C05-A110-6E44F35536BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {0F30B80C-E13A-4C05-A110-6E44F35536BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {0F30B80C-E13A-4C05-A110-6E44F35536BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {0F30B80C-E13A-4C05-A110-6E44F35536BF}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {6E76C357-A884-40EE-B7F3-EB1ED9F2B5AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {6E76C357-A884-40EE-B7F3-EB1ED9F2B5AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {6E76C357-A884-40EE-B7F3-EB1ED9F2B5AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {6E76C357-A884-40EE-B7F3-EB1ED9F2B5AD}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(NestedProjects) = preSolution
26 | {0F30B80C-E13A-4C05-A110-6E44F35536BF} = {F01E6132-91A9-460F-A8E7-D4425428E6A9}
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/AboutResources.txt:
--------------------------------------------------------------------------------
1 | Images, layout descriptions, binary blobs and string dictionaries can be included
2 | in your application as resource files. Various Android APIs are designed to
3 | operate on the resource IDs instead of dealing with images, strings or binary blobs
4 | directly.
5 |
6 | For example, a sample Android app that contains a user interface layout (main.axml),
7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
8 | would keep its resources in the "Resources" directory of the application:
9 |
10 | Resources/
11 | drawable/
12 | icon.png
13 |
14 | layout/
15 | main.axml
16 |
17 | values/
18 | strings.xml
19 |
20 | In order to get the build system to recognize Android resources, set the build action to
21 | "AndroidResource". The native Android APIs do not operate directly with filenames, but
22 | instead operate on resource IDs. When you compile an Android application that uses resources,
23 | the build system will package the resources for distribution and generate a class called "R"
24 | (this is an Android convention) that contains the tokens for each one of the resources
25 | included. For example, for the above Resources layout, this is what the R class would expose:
26 |
27 | public class R {
28 | public class drawable {
29 | public const int icon = 0x123;
30 | }
31 |
32 | public class layout {
33 | public const int main = 0x456;
34 | }
35 |
36 | public class strings {
37 | public const int first_string = 0xabc;
38 | public const int second_string = 0xbcd;
39 | }
40 | }
41 |
42 | You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main
43 | to reference the layout/main.axml file, or R.strings.first_string to reference the first
44 | string in the dictionary file values/strings.xml.
45 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | build/
21 | bld/
22 | [Bb]in/
23 | [Oo]bj/
24 |
25 | # Visual Studo 2015 cache/options directory
26 | .vs/
27 |
28 | # MSTest test Results
29 | [Tt]est[Rr]esult*/
30 | [Bb]uild[Ll]og.*
31 |
32 | # NUNIT
33 | *.VisualState.xml
34 | TestResult.xml
35 |
36 | # Build Results of an ATL Project
37 | [Dd]ebugPS/
38 | [Rr]eleasePS/
39 | dlldata.c
40 |
41 | *_i.c
42 | *_p.c
43 | *_i.h
44 | *.ilk
45 | *.meta
46 | *.obj
47 | *.pch
48 | *.pdb
49 | *.pgc
50 | *.pgd
51 | *.rsp
52 | *.sbr
53 | *.tlb
54 | *.tli
55 | *.tlh
56 | *.tmp
57 | *.tmp_proj
58 | *.log
59 | *.vspscc
60 | *.vssscc
61 | .builds
62 | *.pidb
63 | *.svclog
64 | *.scc
65 |
66 | # Chutzpah Test files
67 | _Chutzpah*
68 |
69 | # Visual C++ cache files
70 | ipch/
71 | *.aps
72 | *.ncb
73 | *.opensdf
74 | *.sdf
75 | *.cachefile
76 |
77 | # Visual Studio profiler
78 | *.psess
79 | *.vsp
80 | *.vspx
81 |
82 | # TFS 2012 Local Workspace
83 | $tf/
84 |
85 | # Guidance Automation Toolkit
86 | *.gpState
87 |
88 | # ReSharper is a .NET coding add-in
89 | _ReSharper*/
90 | *.[Rr]e[Ss]harper
91 | *.DotSettings.user
92 |
93 | # JustCode is a .NET coding addin-in
94 | .JustCode
95 |
96 | # TeamCity is a build add-in
97 | _TeamCity*
98 |
99 | # DotCover is a Code Coverage Tool
100 | *.dotCover
101 |
102 | # NCrunch
103 | _NCrunch_*
104 | .*crunch*.local.xml
105 |
106 | # MightyMoose
107 | *.mm.*
108 | AutoTest.Net/
109 |
110 | # Web workbench (sass)
111 | .sass-cache/
112 |
113 | # Installshield output folder
114 | [Ee]xpress/
115 |
116 | # DocProject is a documentation generator add-in
117 | DocProject/buildhelp/
118 | DocProject/Help/*.HxT
119 | DocProject/Help/*.HxC
120 | DocProject/Help/*.hhc
121 | DocProject/Help/*.hhk
122 | DocProject/Help/*.hhp
123 | DocProject/Help/Html2
124 | DocProject/Help/html
125 |
126 | # Click-Once directory
127 | publish/
128 |
129 | # Publish Web Output
130 | *.[Pp]ublish.xml
131 | *.azurePubxml
132 | # TODO: Comment the next line if you want to checkin your web deploy settings
133 | # but database connection strings (with potential passwords) will be unencrypted
134 | *.pubxml
135 | *.publishproj
136 |
137 | # NuGet Packages
138 | *.nupkg
139 | # The packages folder can be ignored because of Package Restore
140 | **/packages/*
141 | # except build/, which is used as an MSBuild target.
142 | !**/packages/build/
143 | # Uncomment if necessary however generally it will be regenerated when needed
144 | #!**/packages/repositories.config
145 |
146 | # Windows Azure Build Output
147 | csx/
148 | *.build.csdef
149 |
150 | # Windows Store app package directory
151 | AppPackages/
152 |
153 | # Others
154 | *.[Cc]ache
155 | ClientBin/
156 | [Ss]tyle[Cc]op.*
157 | ~$*
158 | *~
159 | *.dbmdl
160 | *.dbproj.schemaview
161 | *.pfx
162 | *.publishsettings
163 | node_modules/
164 | bower_components/
165 |
166 | # RIA/Silverlight projects
167 | Generated_Code/
168 |
169 | # Backup & report files from converting an old project file
170 | # to a newer Visual Studio version. Backup files are not needed,
171 | # because we have git ;-)
172 | _UpgradeReport_Files/
173 | Backup*/
174 | UpgradeLog*.XML
175 | UpgradeLog*.htm
176 |
177 | # SQL Server files
178 | *.mdf
179 | *.ldf
180 |
181 | # Business Intelligence projects
182 | *.rdl.data
183 | *.bim.layout
184 | *.bim_*.settings
185 |
186 | # Microsoft Fakes
187 | FakesAssemblies/
188 |
189 | # Node.js Tools for Visual Studio
190 | .ntvs_analysis.dat
191 |
192 | # Visual Studio 6 build log
193 | *.plg
194 |
195 | # Visual Studio 6 workspace options file
196 | *.opt
197 |
--------------------------------------------------------------------------------
/AndroidSlidingUpPanelXamarin/AndroidSlidingUpPanelXamarin.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
7 | {6E76C357-A884-40EE-B7F3-EB1ED9F2B5AD}
8 | Library
9 | Xamarin.Bindings.AndroidSlidingUpPanel
10 | Resources
11 | Assets
12 | true
13 | Xamarin.Bindings.AndroidSlidingUpPanel
14 | v8.0
15 | CS0109,CS0108
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\Debug
22 | DEBUG;
23 | prompt
24 | 4
25 | false
26 | None
27 |
28 |
29 | full
30 | true
31 | bin\Release
32 | prompt
33 | 4
34 | false
35 | false
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | ..\packages\Xamarin.Android.Support.Annotations.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Annotations.dll
44 |
45 |
46 | ..\packages\Xamarin.Android.Support.Compat.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Compat.dll
47 |
48 |
49 | ..\packages\Xamarin.Android.Support.Core.UI.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Core.UI.dll
50 |
51 |
52 | ..\packages\Xamarin.Android.Support.Core.Utils.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Core.Utils.dll
53 |
54 |
55 | ..\packages\Xamarin.Android.Support.Media.Compat.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Media.Compat.dll
56 |
57 |
58 | ..\packages\Xamarin.Android.Support.Fragment.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Fragment.dll
59 |
60 |
61 | ..\packages\Xamarin.Android.Support.v4.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.v4.dll
62 |
63 |
64 | ..\packages\Xamarin.Android.Support.v7.RecyclerView.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.v7.RecyclerView.dll
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/Resources/layout/Main.axml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
20 |
26 |
37 |
38 |
39 |
47 |
51 |
59 |
67 |
68 |
73 |
74 |
75 |
76 |
77 |
78 | -->
79 |
80 |
81 |
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/MainActivity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | using Android.App;
4 | using Android.Content;
5 | using Android.Runtime;
6 | using Android.Views;
7 | using Android.OS;
8 | using Android.Support.V7.App;
9 | using Android.Support.V7.Widget;
10 | using Com.Sothree.Slidinguppanel;
11 | using Android.Widget;
12 | using Android.Text;
13 | using Android.Text.Method;
14 | using Android.Util;
15 | using static Com.Sothree.Slidinguppanel.SlidingUpPanelLayout;
16 |
17 | namespace SlidingUpPanel.Sample
18 | {
19 | [Activity(Label = "SlidingUpPanel.Sample", MainLauncher = true, Icon = "@drawable/icon", Theme = "@style/AppTheme")]
20 | public class MainActivity : AppCompatActivity, IPanelSlideListener, View.IOnClickListener
21 | {
22 | private SlidingUpPanelLayout mLayout;
23 |
24 | protected override void OnCreate(Bundle bundle)
25 | {
26 | base.OnCreate(bundle);
27 |
28 | // Set our view from the "main" layout resource
29 | SetContentView(Resource.Layout.Main);
30 |
31 | SetSupportActionBar(FindViewById(Resource.Id.main_toolbar));
32 |
33 | var lv = (ListView)FindViewById(Resource.Id.list);
34 | lv.ItemClick += delegate
35 | {
36 | Toast.MakeText(this, "onItemClick", ToastLength.Short).Show();
37 | };
38 |
39 | var your_array_list = new[] {
40 | "This",
41 | "Is",
42 | "An",
43 | "Example",
44 | "ListView",
45 | "That",
46 | "You",
47 | "Can",
48 | "Scroll",
49 | ".",
50 | "It",
51 | "Shows",
52 | "How",
53 | "Any",
54 | "Scrollable",
55 | "View",
56 | "Can",
57 | "Be",
58 | "Included",
59 | "As",
60 | "A",
61 | "Child",
62 | "Of",
63 | "SlidingUpPanelLayout"
64 | };
65 |
66 | // This is the array adapter, it takes the context of the activity as a
67 | // first parameter, the type of list view as a second parameter and your
68 | // array as a third parameter.
69 | var arrayAdapter = new ArrayAdapter(
70 | this,
71 | Android.Resource.Layout.SimpleListItem1,
72 | your_array_list);
73 | lv.Adapter = (arrayAdapter);
74 |
75 | mLayout = (SlidingUpPanelLayout)FindViewById(Resource.Id.sliding_layout);
76 |
77 | mLayout.AddPanelSlideListener(this);
78 | mLayout.SetFadeOnClickListener(this);
79 |
80 | var t = (TextView)FindViewById(Resource.Id.name);
81 | t.SetText(Html.FromHtml(GetString(Resource.String.hello)), TextView.BufferType.Spannable);
82 | var f = (Button)FindViewById(Resource.Id.follow);
83 | f.SetText(Html.FromHtml(GetString(Resource.String.follow)), TextView.BufferType.Spannable);
84 | f.MovementMethod = LinkMovementMethod.Instance;
85 | f.Click += delegate
86 | {
87 | Intent i = new Intent(Intent.ActionView);
88 | i.SetData(Android.Net.Uri.Parse("http://www.twitter.com/naxamco"));
89 | StartActivity(i);
90 | };
91 | }
92 |
93 | public void OnPanelClosed(View panel)
94 | {
95 | }
96 |
97 | public void OnPanelOpened(View panel)
98 | {
99 | }
100 |
101 | public void OnPanelSlide(View panel, float slideOffset)
102 | {
103 | Log.Info("SlidingPanel", "onPanelSlide, offset " + slideOffset);
104 | }
105 |
106 | public void OnPanelStateChanged(View p0, PanelState p1, PanelState p2)
107 | {
108 |
109 | }
110 |
111 | public override bool OnCreateOptionsMenu(IMenu menu)
112 | {
113 | return base.OnCreateOptionsMenu(menu);
114 |
115 | // Inflate the menu; this adds items to the action bar if it is present.
116 | MenuInflater.Inflate(Resource.Menu.demo, menu);
117 |
118 | var item = menu.FindItem(Resource.Id.action_toggle);
119 | if (mLayout != null)
120 | {
121 | if (mLayout.GetPanelState() == PanelState.Hidden)
122 | {
123 | item.SetTitle(Resource.String.action_show);
124 | }
125 | else
126 | {
127 | item.SetTitle(Resource.String.action_hide);
128 | }
129 | }
130 | return true;
131 | }
132 |
133 | public override bool OnPrepareOptionsMenu(IMenu menu)
134 | {
135 | return base.OnPrepareOptionsMenu(menu);
136 | }
137 |
138 | public override bool OnOptionsItemSelected(IMenuItem item)
139 | {
140 | return base.OnOptionsItemSelected(item);
141 |
142 | switch (item.ItemId)
143 | {
144 | case Resource.Id.action_toggle:
145 | {
146 | if (mLayout != null)
147 | {
148 | if (mLayout.GetPanelState() != PanelState.Hidden)
149 | {
150 | mLayout.SetPanelState(PanelState.Hidden);
151 | item.SetTitle(Resource.String.action_show);
152 | }
153 | else
154 | {
155 | mLayout.SetPanelState(PanelState.Collapsed);
156 | item.SetTitle(Resource.String.action_hide);
157 | }
158 | }
159 | return true;
160 | }
161 | case Resource.Id.action_anchor:
162 | {
163 | if (mLayout != null)
164 | {
165 | if (mLayout.AnchorPoint == 1.0f)
166 | {
167 | mLayout.AnchorPoint = (0.7f);
168 | mLayout.SetPanelState(PanelState.Anchored);
169 | item.SetTitle(Resource.String.action_anchor_disable);
170 | }
171 | else
172 | {
173 | mLayout.AnchorPoint = (1.0f);
174 | mLayout.SetPanelState(PanelState.Collapsed);
175 | item.SetTitle(Resource.String.action_anchor_enable);
176 | }
177 | }
178 | return true;
179 | }
180 | }
181 |
182 | return base.OnOptionsItemSelected(item);
183 | }
184 |
185 | public override void OnBackPressed()
186 | {
187 | if (mLayout != null &&
188 | (mLayout.GetPanelState() == PanelState.Expanded || mLayout.GetPanelState() == PanelState.Anchored))
189 | {
190 | mLayout.SetPanelState(PanelState.Collapsed);
191 | }
192 | else
193 | {
194 | base.OnBackPressed();
195 | }
196 | }
197 |
198 | public void OnClick(View v)
199 | {
200 | if (v.Id != Resource.Id.sliding_layout) return;
201 |
202 | mLayout.SetPanelState(PanelState.Collapsed);
203 | }
204 | }
205 | }
206 |
207 |
208 |
--------------------------------------------------------------------------------
/SlidingUpPanel.Sample/SlidingUpPanel.Sample.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
7 | {0F30B80C-E13A-4C05-A110-6E44F35536BF}
8 | Library
9 | SlidingUpPanel.Sample
10 | True
11 | Resources\Resource.designer.cs
12 | Resource
13 | Resources
14 | Assets
15 | true
16 | SlidingUpPanel.Sample
17 | Properties\AndroidManifest.xml
18 | v8.0
19 |
20 |
21 | true
22 | full
23 | false
24 | bin\Debug
25 | DEBUG;
26 | prompt
27 | 4
28 | false
29 | None
30 |
31 |
32 | full
33 | true
34 | bin\Release
35 | prompt
36 | 4
37 | false
38 | false
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | ..\packages\Xamarin.Android.Support.Annotations.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Annotations.dll
47 |
48 |
49 | ..\packages\Xamarin.Android.Support.Compat.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Compat.dll
50 |
51 |
52 | ..\packages\Xamarin.Android.Support.Core.UI.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Core.UI.dll
53 |
54 |
55 | ..\packages\Xamarin.Android.Support.Core.Utils.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Core.Utils.dll
56 |
57 |
58 | ..\packages\Xamarin.Android.Support.Media.Compat.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Media.Compat.dll
59 |
60 |
61 | ..\packages\Xamarin.Android.Support.Fragment.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Fragment.dll
62 |
63 |
64 | ..\packages\Xamarin.Android.Support.v4.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.v4.dll
65 | False
66 |
67 |
68 | ..\packages\Xamarin.Android.Support.v7.RecyclerView.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.v7.RecyclerView.dll
69 |
70 |
71 | ..\packages\Xamarin.Android.Support.Transition.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Transition.dll
72 |
73 |
74 | ..\packages\Xamarin.Android.Support.Vector.Drawable.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Vector.Drawable.dll
75 |
76 |
77 | ..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Animated.Vector.Drawable.dll
78 |
79 |
80 | ..\packages\Xamarin.Android.Support.v7.AppCompat.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.v7.AppCompat.dll
81 | False
82 |
83 |
84 | ..\packages\Xamarin.Android.Support.Design.26.0.2\lib\MonoAndroid80\Xamarin.Android.Support.Design.dll
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 | {6E76C357-A884-40EE-B7F3-EB1ED9F2B5AD}
113 | AndroidSlidingUpPanelXamarin
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
--------------------------------------------------------------------------------