├── .gitignore ├── Components ├── xamandroidsupportv4-18-21.0.3.0.info ├── xamandroidsupportv4-18-21.0.3.0.png └── xamandroidsupportv4-18-21.0.3.0 │ ├── component │ ├── Details.md │ ├── GettingStarted.md │ ├── License.md │ ├── Manifest.xml │ └── icons │ │ ├── xamandroidsupportv4-18_128x128.png │ │ └── xamandroidsupportv4-18_512x512.png │ ├── lib │ └── android │ │ └── Xamarin.Android.Support.v4.dll │ └── samples │ └── AndroidSupportSample │ ├── AndroidSupportSample.sln │ └── AndroidSupportSample │ ├── AndroidSupportSample.csproj │ ├── Assets │ └── AboutAssets.txt │ ├── DetailsActivity.cs │ ├── DetailsFragment.cs │ ├── MainActivity.cs │ ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs │ ├── Resources │ ├── AboutResources.txt │ ├── Layout-Large │ │ └── activity_main.axml │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-ldpi │ │ └── icon.png │ ├── drawable-mdpi │ │ └── icon.png │ ├── drawable-xhdpi │ │ └── icon.png │ ├── drawable-xxhdpi │ │ └── icon.png │ ├── layout │ │ └── activity_main.axml │ └── values │ │ └── Strings.xml │ ├── Shakespeare.cs │ ├── TitlesFragment.cs │ └── packages.config ├── LICENSE ├── README.md ├── SwipeListView.sln ├── SwipeListView ├── Additions │ └── AboutAdditions.txt ├── FortySevenDeg.SwipeListView.csproj ├── Jars │ ├── AboutJars.txt │ ├── nineoldandroids-library-2.4.0.jar │ └── swipelistview-release-dec8.aar ├── Partial_SwipeListView.cs ├── Partial_SwipeListViewListenerDispatcher.cs ├── Properties │ └── AssemblyInfo.cs └── Transforms │ ├── EnumFields.xml │ ├── EnumMethods.xml │ └── Metadata.xml └── SwipeListViewSample ├── Assets ├── AboutAssets.txt └── images │ ├── dogs │ ├── alaskan_malamute.jpg │ ├── australian_cattle_dog.jpg │ ├── canaan_dog.jpg │ ├── dalmatian.jpg │ ├── english_foxhound.jpg │ ├── german_shepherd.jpg │ ├── golden_retriever.jpg │ ├── pomeranian.jpg │ ├── rhodesian_ridgeback.jpg │ ├── rottweiler.jpg │ ├── russell_terrier.jpg │ ├── saint_bernard.jpg │ ├── scottish_deerhound.jpg │ ├── shiba_inu.jpg │ ├── siberian_husky.jpg │ └── weimaraner.jpg │ └── speakers │ ├── aaron.jpg │ ├── ananth.jpg │ ├── bob.jpg │ ├── chris.jpg │ ├── dave.jpg │ ├── david.jpg │ ├── dean.jpg │ ├── demis.jpg │ ├── don.jpg │ ├── frank.jpg │ ├── greg.jpg │ ├── igor.jpg │ ├── jared.jpg │ ├── jb.jpg │ ├── jeremie.jpg │ ├── jeroen.jpg │ ├── john_bubriski.jpg │ ├── john_zablocki.jpg │ ├── jonathan.jpg │ ├── louis.jpg │ ├── michael.jpg │ ├── miguel.jpg │ ├── paul.jpg │ ├── phil.jpg │ ├── sam.jpg │ ├── scott.jpg │ ├── somya.jpg │ └── steve.jpg ├── Dog.cs ├── Dogs.cs ├── MainActivity.cs ├── Properties ├── AndroidManifest.xml └── AssemblyInfo.cs ├── Resources ├── AboutResources.txt ├── drawable │ ├── Icon.png │ ├── background_item.xml │ ├── background_new_tag.xml │ ├── choice_selected.xml │ └── choice_unselected.xml ├── layout │ ├── Main.axml │ └── package_row.axml └── values │ ├── Colors.xml │ ├── Dimens.xml │ ├── Items.xml │ ├── Strings.xml │ └── Styles.xml ├── SwipeListViewSample.csproj └── packages.config /.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 | *.sln.docstates 8 | 9 | # Build results 10 | [Dd]ebug/ 11 | [Dd]ebugPublic/ 12 | [Rr]elease/ 13 | x64/ 14 | build/ 15 | bld/ 16 | [Bb]in/ 17 | [Oo]bj/ 18 | 19 | # MSTest test Results 20 | [Tt]est[Rr]esult*/ 21 | [Bb]uild[Ll]og.* 22 | 23 | #NUNIT 24 | *.VisualState.xml 25 | TestResult.xml 26 | 27 | # Build Results of an ATL Project 28 | [Dd]ebugPS/ 29 | [Rr]eleasePS/ 30 | dlldata.c 31 | 32 | *_i.c 33 | *_p.c 34 | *_i.h 35 | *.ilk 36 | *.meta 37 | *.obj 38 | *.pch 39 | *.pdb 40 | *.pgc 41 | *.pgd 42 | *.rsp 43 | *.sbr 44 | *.tlb 45 | *.tli 46 | *.tlh 47 | *.tmp 48 | *.tmp_proj 49 | *.log 50 | *.vspscc 51 | *.vssscc 52 | .builds 53 | *.pidb 54 | *.svclog 55 | *.scc 56 | 57 | # Chutzpah Test files 58 | _Chutzpah* 59 | 60 | # Visual C++ cache files 61 | ipch/ 62 | *.aps 63 | *.ncb 64 | *.opensdf 65 | *.sdf 66 | *.cachefile 67 | 68 | # Visual Studio profiler 69 | *.psess 70 | *.vsp 71 | *.vspx 72 | 73 | # TFS 2012 Local Workspace 74 | $tf/ 75 | 76 | # Guidance Automation Toolkit 77 | *.gpState 78 | 79 | # ReSharper is a .NET coding add-in 80 | _ReSharper*/ 81 | *.[Rr]e[Ss]harper 82 | *.DotSettings.user 83 | 84 | # JustCode is a .NET coding addin-in 85 | .JustCode 86 | 87 | # TeamCity is a build add-in 88 | _TeamCity* 89 | 90 | # DotCover is a Code Coverage Tool 91 | *.dotCover 92 | 93 | # NCrunch 94 | *.ncrunch* 95 | _NCrunch_* 96 | .*crunch*.local.xml 97 | 98 | # MightyMoose 99 | *.mm.* 100 | AutoTest.Net/ 101 | 102 | # Web workbench (sass) 103 | .sass-cache/ 104 | 105 | # Installshield output folder 106 | [Ee]xpress/ 107 | 108 | # DocProject is a documentation generator add-in 109 | DocProject/buildhelp/ 110 | DocProject/Help/*.HxT 111 | DocProject/Help/*.HxC 112 | DocProject/Help/*.hhc 113 | DocProject/Help/*.hhk 114 | DocProject/Help/*.hhp 115 | DocProject/Help/Html2 116 | DocProject/Help/html 117 | 118 | # Click-Once directory 119 | publish/ 120 | 121 | # Publish Web Output 122 | *.[Pp]ublish.xml 123 | *.azurePubxml 124 | 125 | # NuGet Packages Directory 126 | packages/ 127 | ## TODO: If the tool you use requires repositories.config uncomment the next line 128 | #!packages/repositories.config 129 | 130 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets 131 | # This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented) 132 | !packages/build/ 133 | 134 | # Windows Azure Build Output 135 | csx/ 136 | *.build.csdef 137 | 138 | # Windows Store app package directory 139 | AppPackages/ 140 | 141 | # Others 142 | sql/ 143 | *.Cache 144 | ClientBin/ 145 | [Ss]tyle[Cc]op.* 146 | ~$* 147 | *~ 148 | *.dbmdl 149 | *.dbproj.schemaview 150 | *.pfx 151 | *.publishsettings 152 | node_modules/ 153 | 154 | # RIA/Silverlight projects 155 | Generated_Code/ 156 | 157 | # Backup & report files from converting an old project file to a newer 158 | # Visual Studio version. Backup files are not needed, because we have git ;-) 159 | _UpgradeReport_Files/ 160 | Backup*/ 161 | UpgradeLog*.XML 162 | UpgradeLog*.htm 163 | 164 | # SQL Server files 165 | *.mdf 166 | *.ldf 167 | 168 | # Business Intelligence projects 169 | *.rdl.data 170 | *.bim.layout 171 | *.bim_*.settings 172 | 173 | # Microsoft Fakes 174 | FakesAssemblies/ 175 | 176 | *.userprefs 177 | .DS_Store 178 | *Resource.designer.cs -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0.info: -------------------------------------------------------------------------------- 1 | {"Name":"Android Support Library v4","Id":1273,"Alias":"xamandroidsupportv4-18","Description":"The Android Support Library package is a set of code libraries that provide backward-compatible versions of Android framework APIs as well as features that are only available through the library APIs. Each Support Library is backward-compatible to a specific Android API level. This design means that your applications can use the libraries\u0027 features and still be compatible with devices running old android flavors.\n\nIncluding the Support Libraries in your Android project is considered a best practice for application developers, depending on the range of platform versions your app is targeting and the APIs that it uses. Using the features the libraries provide can help you improve the look of your application, increase performance and broaden the reach of your application to more users.\n\n\n*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].*\n\n[1]: http://code.google.com/policies.html\n[2]: http://creativecommons.org/licenses/by/2.5/\n[3]: http://developer.android.com/tools/support-library/index.html\n\t\n","Version":"21.0.3.0","Summary":"Provide backward-compatible versions of Android framework APIs.","QuickStart":"v4 Support Library Rev 20.0.0\n=============================\n\nThis library is designed to be used with Android 1.6 (API level 4) and higher. It includes the largest set of APIs compared to the other libraries, including support for application components, user interface features, accessibility, data handling, network connectivity, and programming utilities. Here are a few of the key classes included in the v4 library:\n\n**App Components**\n\n- Fragment - Adds support encapsulation of user interface and functionality with Fragments, enabling applications provide layouts that adjust between small and large-screen devices.\n- NotificationCompat - Adds support for rich notification features.\n- LocalBroadcastManager - Allows applications to easily register for and receive intents within a single application without broadcasting them globally.\n\n**User Interface**\n\n- ViewPager - Adds a ViewGroup that manages the layout for the child views, which the user can swipe between.\n- PagerTitleStrip - Adds a non-interactive title strip, that can be added as a child of ViewPager.\n- PagerTabStrip - Adds a navigation widget for switching between paged views, that can also be used with ViewPager.\n- DrawerLayout - Adds support for creating a Navigation Drawer that can be pulled in from the edge of a window.\n- SlidingPaneLayout - Adds widget for creating linked summary and detail views that appropriately adapt to various screen sizes.\n\n**Accessibility**\n\n- ExploreByTouchHelper - Adds a helper class for implementing accessibility support for custom views.\n- AccessibilityEventCompat - Adds support for AccessibilityEvent. For more information about implementing accessibility, see Accessibility.\n- AccessibilityNodeInfoCompat - Adds support for AccessibilityNodeInfo.\n- AccessibilityNodeProviderCompat - Adds support for AccessibilityNodeProvider.\n- AccessibilityDelegateCompat - Adds support for View.AccessibilityDelegate.\n\n**Content**\n\n- Loader - Adds support for asynchronous loading of data. The library also provides concrete implementations of this class, including CursorLoader and AsyncTaskLoader.\n- FileProvider - Adds support for sharing of private files between applications.\n\t\nThere are many other APIs included in this library. For complete, detailed information about the v4 Support Library APIs, [see the android.support.v4](http://developer.android.com/reference/android/support/v4/app/package-summary.html).\n\n*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].*\n\n[1]: http://code.google.com/policies.html\n[2]: http://creativecommons.org/licenses/by/2.5/\n[3]: http://developer.android.com/tools/support-library/features.html\n","Hash":"7f9f5a94a5e072eeb4a658b1b0db6fe7","TargetPlatforms":["android"],"TrialHash":null} -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/Components/xamandroidsupportv4-18-21.0.3.0.png -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/component/Details.md: -------------------------------------------------------------------------------- 1 | The Android Support Library package is a set of code libraries that provide backward-compatible versions of Android framework APIs as well as features that are only available through the library APIs. Each Support Library is backward-compatible to a specific Android API level. This design means that your applications can use the libraries' features and still be compatible with devices running old android flavors. 2 | 3 | Including the Support Libraries in your Android project is considered a best practice for application developers, depending on the range of platform versions your app is targeting and the APIs that it uses. Using the features the libraries provide can help you improve the look of your application, increase performance and broaden the reach of your application to more users. 4 | 5 | 6 | *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].* 7 | 8 | [1]: http://code.google.com/policies.html 9 | [2]: http://creativecommons.org/licenses/by/2.5/ 10 | [3]: http://developer.android.com/tools/support-library/index.html 11 | 12 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/component/GettingStarted.md: -------------------------------------------------------------------------------- 1 | v4 Support Library Rev 20.0.0 2 | ============================= 3 | 4 | This library is designed to be used with Android 1.6 (API level 4) and higher. It includes the largest set of APIs compared to the other libraries, including support for application components, user interface features, accessibility, data handling, network connectivity, and programming utilities. Here are a few of the key classes included in the v4 library: 5 | 6 | **App Components** 7 | 8 | - Fragment - Adds support encapsulation of user interface and functionality with Fragments, enabling applications provide layouts that adjust between small and large-screen devices. 9 | - NotificationCompat - Adds support for rich notification features. 10 | - LocalBroadcastManager - Allows applications to easily register for and receive intents within a single application without broadcasting them globally. 11 | 12 | **User Interface** 13 | 14 | - ViewPager - Adds a ViewGroup that manages the layout for the child views, which the user can swipe between. 15 | - PagerTitleStrip - Adds a non-interactive title strip, that can be added as a child of ViewPager. 16 | - PagerTabStrip - Adds a navigation widget for switching between paged views, that can also be used with ViewPager. 17 | - DrawerLayout - Adds support for creating a Navigation Drawer that can be pulled in from the edge of a window. 18 | - SlidingPaneLayout - Adds widget for creating linked summary and detail views that appropriately adapt to various screen sizes. 19 | 20 | **Accessibility** 21 | 22 | - ExploreByTouchHelper - Adds a helper class for implementing accessibility support for custom views. 23 | - AccessibilityEventCompat - Adds support for AccessibilityEvent. For more information about implementing accessibility, see Accessibility. 24 | - AccessibilityNodeInfoCompat - Adds support for AccessibilityNodeInfo. 25 | - AccessibilityNodeProviderCompat - Adds support for AccessibilityNodeProvider. 26 | - AccessibilityDelegateCompat - Adds support for View.AccessibilityDelegate. 27 | 28 | **Content** 29 | 30 | - Loader - Adds support for asynchronous loading of data. The library also provides concrete implementations of this class, including CursorLoader and AsyncTaskLoader. 31 | - FileProvider - Adds support for sharing of private files between applications. 32 | 33 | There are many other APIs included in this library. For complete, detailed information about the v4 Support Library APIs, [see the android.support.v4](http://developer.android.com/reference/android/support/v4/app/package-summary.html). 34 | 35 | *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].* 36 | 37 | [1]: http://code.google.com/policies.html 38 | [2]: http://creativecommons.org/licenses/by/2.5/ 39 | [3]: http://developer.android.com/tools/support-library/features.html 40 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/component/License.md: -------------------------------------------------------------------------------- 1 | ``` 2 | Packages 3 | - Android Support Library, revision 18 4 | 5 | 6 | License Terms and Conditions 7 | 8 | This is the Android Software Development Kit License Agreement. 9 | 10 | 1. Introduction 11 | 12 | 1.1 The Android Software Development Kit (referred to in this License Agreement as the 13 | "SDK" and specifically including the Android system files, packaged APIs, and Google APIs 14 | add-ons) is licensed to you subject to the terms of this License Agreement. This License 15 | Agreement forms a legally binding contract between you and Google in relation to your use 16 | of the SDK. 17 | 18 | 1.2 "Android" means the Android software stack for devices, as made available under the 19 | Android Open Source Project, which is located at the following URL: 20 | http://source.android.com/, as updated from time to time. 21 | 22 | 1.3 "Google" means Google Inc., a Delaware corporation with principal place of business 23 | at 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States. 24 | 25 | 26 | 2. Accepting this License Agreement 27 | 28 | 2.1 In order to use the SDK, you must first agree to this License Agreement. You may not 29 | use the SDK if you do not accept this License Agreement. 30 | 31 | 2.2 By clicking to accept, you hereby agree to the terms of this License Agreement. 32 | 33 | 2.3 You may not use the SDK and may not accept the License Agreement if you are a person 34 | barred from receiving the SDK under the laws of the United States or other countries 35 | including the country in which you are resident or from which you use the SDK. 36 | 37 | 2.4 If you are agreeing to be bound by this License Agreement on behalf of your employer 38 | or other entity, you represent and warrant that you have full legal authority to bind your 39 | employer or such entity to this License Agreement. If you do not have the requisite 40 | authority, you may not accept the License Agreement or use the SDK on behalf of your 41 | employer or other entity. 42 | 43 | 44 | 3. SDK License from Google 45 | 46 | 3.1 Subject to the terms of this License Agreement, Google grants you a limited, 47 | worldwide, royalty-free, non-assignable and non-exclusive license to use the SDK solely to 48 | develop applications to run on the Android platform. 49 | 50 | 3.2 You agree that Google or third parties own all legal right, title and interest in and 51 | to the SDK, including any Intellectual Property Rights that subsist in the SDK. 52 | "Intellectual Property Rights" means any and all rights under patent law, copyright law, 53 | trade secret law, trademark law, and any and all other proprietary rights. Google reserves 54 | all rights not expressly granted to you. 55 | 56 | 3.3 You may not use the SDK for any purpose not expressly permitted by this License 57 | Agreement. Except to the extent required by applicable third party licenses, you may not: 58 | (a) copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse 59 | engineer, disassemble, or create derivative works of the SDK or any part of the SDK; or 60 | (b) load any part of the SDK onto a mobile handset or any other hardware device except a 61 | personal computer, combine any part of the SDK with other software, or distribute any 62 | software or device incorporating a part of the SDK. 63 | 64 | 3.4 You agree that you will not take any actions that may cause or result in the 65 | fragmentation of Android, including but not limited to distributing, participating in the 66 | creation of, or promoting in any way a software development kit derived from the SDK. 67 | 68 | 3.5 Use, reproduction and distribution of components of the SDK licensed under an open 69 | source software license are governed solely by the terms of that open source software 70 | license and not this License Agreement. 71 | 72 | 3.6 You agree that the form and nature of the SDK that Google provides may change without 73 | prior notice to you and that future versions of the SDK may be incompatible with 74 | applications developed on previous versions of the SDK. You agree that Google may stop 75 | (permanently or temporarily) providing the SDK (or any features within the SDK) to you or 76 | to users generally at Google's sole discretion, without prior notice to you. 77 | 78 | 3.7 Nothing in this License Agreement gives you a right to use any of Google's trade 79 | names, trademarks, service marks, logos, domain names, or other distinctive brand 80 | features. 81 | 82 | 3.8 You agree that you will not remove, obscure, or alter any proprietary rights notices 83 | (including copyright and trademark notices) that may be affixed to or contained within the 84 | SDK. 85 | 86 | 87 | 4. Use of the SDK by You 88 | 89 | 4.1 Google agrees that it obtains no right, title or interest from you (or your 90 | licensors) under this License Agreement in or to any software applications that you 91 | develop using the SDK, including any intellectual property rights that subsist in those 92 | applications. 93 | 94 | 4.2 You agree to use the SDK and write applications only for purposes that are permitted 95 | by (a) this License Agreement and (b) any applicable law, regulation or generally accepted 96 | practices or guidelines in the relevant jurisdictions (including any laws regarding the 97 | export of data or software to and from the United States or other relevant countries). 98 | 99 | 4.3 You agree that if you use the SDK to develop applications for general public users, 100 | you will protect the privacy and legal rights of those users. If the users provide you 101 | with user names, passwords, or other login information or personal information, you must 102 | make the users aware that the information will be available to your application, and you 103 | must provide legally adequate privacy notice and protection for those users. If your 104 | application stores personal or sensitive information provided by users, it must do so 105 | securely. If the user provides your application with Google Account information, your 106 | application may only use that information to access the user's Google Account when, and 107 | for the limited purposes for which, the user has given you permission to do so. 108 | 109 | 4.4 You agree that you will not engage in any activity with the SDK, including the 110 | development or distribution of an application, that interferes with, disrupts, damages, or 111 | accesses in an unauthorized manner the servers, networks, or other properties or services 112 | of any third party including, but not limited to, Google or any mobile communications 113 | carrier. 114 | 115 | 4.5 You agree that you are solely responsible for (and that Google has no responsibility 116 | to you or to any third party for) any data, content, or resources that you create, 117 | transmit or display through Android and/or applications for Android, and for the 118 | consequences of your actions (including any loss or damage which Google may suffer) by 119 | doing so. 120 | 121 | 4.6 You agree that you are solely responsible for (and that Google has no responsibility 122 | to you or to any third party for) any breach of your obligations under this License 123 | Agreement, any applicable third party contract or Terms of Service, or any applicable law 124 | or regulation, and for the consequences (including any loss or damage which Google or any 125 | third party may suffer) of any such breach. 126 | 127 | 128 | 5. Your Developer Credentials 129 | 130 | 5.1 You agree that you are responsible for maintaining the confidentiality of any 131 | developer credentials that may be issued to you by Google or which you may choose yourself 132 | and that you will be solely responsible for all applications that are developed under your 133 | developer credentials. 134 | 135 | 136 | 6. Privacy and Information 137 | 138 | 6.1 In order to continually innovate and improve the SDK, Google may collect certain 139 | usage statistics from the software including but not limited to a unique identifier, 140 | associated IP address, version number of the software, and information on which tools 141 | and/or services in the SDK are being used and how they are being used. Before any of this 142 | information is collected, the SDK will notify you and seek your consent. If you withhold 143 | consent, the information will not be collected. 144 | 145 | 6.2 The data collected is examined in the aggregate to improve the SDK and is maintained 146 | in accordance with Google's Privacy Policy. 147 | 148 | 149 | 7. Third Party Applications 150 | 151 | 7.1 If you use the SDK to run applications developed by a third party or that access 152 | data, content or resources provided by a third party, you agree that Google is not 153 | responsible for those applications, data, content, or resources. You understand that all 154 | data, content or resources which you may access through such third party applications are 155 | the sole responsibility of the person from which they originated and that Google is not 156 | liable for any loss or damage that you may experience as a result of the use or access of 157 | any of those third party applications, data, content, or resources. 158 | 159 | 7.2 You should be aware the data, content, and resources presented to you through such a 160 | third party application may be protected by intellectual property rights which are owned 161 | by the providers (or by other persons or companies on their behalf). You may not modify, 162 | rent, lease, loan, sell, distribute or create derivative works based on these data, 163 | content, or resources (either in whole or in part) unless you have been specifically given 164 | permission to do so by the relevant owners. 165 | 166 | 7.3 You acknowledge that your use of such third party applications, data, content, or 167 | resources may be subject to separate terms between you and the relevant third party. In 168 | that case, this License Agreement does not affect your legal relationship with these third 169 | parties. 170 | 171 | 172 | 8. Using Android APIs 173 | 174 | 8.1 Google Data APIs 175 | 176 | 8.1.1 If you use any API to retrieve data from Google, you acknowledge that the data may 177 | be protected by intellectual property rights which are owned by Google or those parties 178 | that provide the data (or by other persons or companies on their behalf). Your use of any 179 | such API may be subject to additional Terms of Service. You may not modify, rent, lease, 180 | loan, sell, distribute or create derivative works based on this data (either in whole or 181 | in part) unless allowed by the relevant Terms of Service. 182 | 183 | 8.1.2 If you use any API to retrieve a user's data from Google, you acknowledge and agree 184 | that you shall retrieve data only with the user's explicit consent and only when, and for 185 | the limited purposes for which, the user has given you permission to do so. 186 | 187 | 188 | 9. Terminating this License Agreement 189 | 190 | 9.1 This License Agreement will continue to apply until terminated by either you or 191 | Google as set out below. 192 | 193 | 9.2 If you want to terminate this License Agreement, you may do so by ceasing your use of 194 | the SDK and any relevant developer credentials. 195 | 196 | 9.3 Google may at any time, terminate this License Agreement with you if: 197 | 198 | (A) you have breached any provision of this License Agreement; or 199 | 200 | (B) Google is required to do so by law; or 201 | 202 | (C) the partner with whom Google offered certain parts of SDK (such as APIs) to you has 203 | terminated its relationship with Google or ceased to offer certain parts of the SDK to 204 | you; or 205 | 206 | (D) Google decides to no longer provide the SDK or certain parts of the SDK to users in 207 | the country in which you are resident or from which you use the service, or the provision 208 | of the SDK or certain SDK services to you by Google is, in Google's sole discretion, no 209 | longer commercially viable. 210 | 211 | 9.4 When this License Agreement comes to an end, all of the legal rights, obligations and 212 | liabilities that you and Google have benefited from, been subject to (or which have 213 | accrued over time whilst this License Agreement has been in force) or which are expressed 214 | to continue indefinitely, shall be unaffected by this cessation, and the provisions of 215 | paragraph 14.7 shall continue to apply to such rights, obligations and liabilities 216 | indefinitely. 217 | 218 | 219 | 10. DISCLAIMER OF WARRANTIES 220 | 221 | 10.1 YOU EXPRESSLY UNDERSTAND AND AGREE THAT YOUR USE OF THE SDK IS AT YOUR SOLE RISK AND 222 | THAT THE SDK IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTY OF ANY KIND FROM 223 | GOOGLE. 224 | 225 | 10.2 YOUR USE OF THE SDK AND ANY MATERIAL DOWNLOADED OR OTHERWISE OBTAINED THROUGH THE 226 | USE OF THE SDK IS AT YOUR OWN DISCRETION AND RISK AND YOU ARE SOLELY RESPONSIBLE FOR ANY 227 | DAMAGE TO YOUR COMPUTER SYSTEM OR OTHER DEVICE OR LOSS OF DATA THAT RESULTS FROM SUCH USE. 228 | 229 | 10.3 GOOGLE FURTHER EXPRESSLY DISCLAIMS ALL WARRANTIES AND CONDITIONS OF ANY KIND, 230 | WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES AND 231 | CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 232 | 233 | 234 | 11. LIMITATION OF LIABILITY 235 | 236 | 11.1 YOU EXPRESSLY UNDERSTAND AND AGREE THAT GOOGLE, ITS SUBSIDIARIES AND AFFILIATES, AND 237 | ITS LICENSORS SHALL NOT BE LIABLE TO YOU UNDER ANY THEORY OF LIABILITY FOR ANY DIRECT, 238 | INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES THAT MAY BE INCURRED BY 239 | YOU, INCLUDING ANY LOSS OF DATA, WHETHER OR NOT GOOGLE OR ITS REPRESENTATIVES HAVE BEEN 240 | ADVISED OF OR SHOULD HAVE BEEN AWARE OF THE POSSIBILITY OF ANY SUCH LOSSES ARISING. 241 | 242 | 243 | 12. Indemnification 244 | 245 | 12.1 To the maximum extent permitted by law, you agree to defend, indemnify and hold 246 | harmless Google, its affiliates and their respective directors, officers, employees and 247 | agents from and against any and all claims, actions, suits or proceedings, as well as any 248 | and all losses, liabilities, damages, costs and expenses (including reasonable attorneys 249 | fees) arising out of or accruing from (a) your use of the SDK, (b) any application you 250 | develop on the SDK that infringes any copyright, trademark, trade secret, trade dress, 251 | patent or other intellectual property right of any person or defames any person or 252 | violates their rights of publicity or privacy, and (c) any non-compliance by you with this 253 | License Agreement. 254 | 255 | 256 | 13. Changes to the License Agreement 257 | 258 | 13.1 Google may make changes to the License Agreement as it distributes new versions of 259 | the SDK. When these changes are made, Google will make a new version of the License 260 | Agreement available on the website where the SDK is made available. 261 | 262 | 263 | 14. General Legal Terms 264 | 265 | 14.1 This License Agreement constitutes the whole legal agreement between you and Google 266 | and governs your use of the SDK (excluding any services which Google may provide to you 267 | under a separate written agreement), and completely replaces any prior agreements between 268 | you and Google in relation to the SDK. 269 | 270 | 14.2 You agree that if Google does not exercise or enforce any legal right or remedy 271 | which is contained in this License Agreement (or which Google has the benefit of under any 272 | applicable law), this will not be taken to be a formal waiver of Google's rights and that 273 | those rights or remedies will still be available to Google. 274 | 275 | 14.3 If any court of law, having the jurisdiction to decide on this matter, rules that 276 | any provision of this License Agreement is invalid, then that provision will be removed 277 | from this License Agreement without affecting the rest of this License Agreement. The 278 | remaining provisions of this License Agreement will continue to be valid and enforceable. 279 | 280 | 14.4 You acknowledge and agree that each member of the group of companies of which Google 281 | is the parent shall be third party beneficiaries to this License Agreement and that such 282 | other companies shall be entitled to directly enforce, and rely upon, any provision of 283 | this License Agreement that confers a benefit on (or rights in favor of) them. Other than 284 | this, no other person or company shall be third party beneficiaries to this License 285 | Agreement. 286 | 287 | 14.5 EXPORT RESTRICTIONS. THE SDK IS SUBJECT TO UNITED STATES EXPORT LAWS AND 288 | REGULATIONS. YOU MUST COMPLY WITH ALL DOMESTIC AND INTERNATIONAL EXPORT LAWS AND 289 | REGULATIONS THAT APPLY TO THE SDK. THESE LAWS INCLUDE RESTRICTIONS ON DESTINATIONS, END 290 | USERS AND END USE. 291 | 292 | 14.6 The rights granted in this License Agreement may not be assigned or transferred by 293 | either you or Google without the prior written approval of the other party. Neither you 294 | nor Google shall be permitted to delegate their responsibilities or obligations under this 295 | License Agreement without the prior written approval of the other party. 296 | 297 | 14.7 This License Agreement, and your relationship with Google under this License 298 | Agreement, shall be governed by the laws of the State of California without regard to its 299 | conflict of laws provisions. You and Google agree to submit to the exclusive jurisdiction 300 | of the courts located within the county of Santa Clara, California to resolve any legal 301 | matter arising from this License Agreement. Notwithstanding this, you agree that Google 302 | shall still be allowed to apply for injunctive remedies (or an equivalent type of urgent 303 | legal relief) in any jurisdiction. 304 | 305 | November 13, 2012 306 | 307 | ``` 308 | 309 | 310 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/component/Manifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | Android Support Library v4 4 | Xamarin Inc. 5 | http://xamarin.com 6 | 21.0.3.0 7 | Provide backward-compatible versions of Android framework APIs. 8 | 9 | 10 | 11 | 12 | 13 | Android Support Sample 14 | Android Support Sample 15 | 16 | 17 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/component/icons/xamandroidsupportv4-18_128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/Components/xamandroidsupportv4-18-21.0.3.0/component/icons/xamandroidsupportv4-18_128x128.png -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/component/icons/xamandroidsupportv4-18_512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/Components/xamandroidsupportv4-18-21.0.3.0/component/icons/xamandroidsupportv4-18_512x512.png -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/lib/android/Xamarin.Android.Support.v4.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/Components/xamandroidsupportv4-18-21.0.3.0/lib/android/Xamarin.Android.Support.v4.dll -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidSupportSample", "AndroidSupportSample\AndroidSupportSample.csproj", "{B05ADD8D-0896-4EEF-963B-10E7752E5D0E}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {B05ADD8D-0896-4EEF-963B-10E7752E5D0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {B05ADD8D-0896-4EEF-963B-10E7752E5D0E}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {B05ADD8D-0896-4EEF-963B-10E7752E5D0E}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {B05ADD8D-0896-4EEF-963B-10E7752E5D0E}.Release|Any CPU.Build.0 = Release|Any CPU 16 | {BCE98C50-BDB6-49C4-AFB4-78EB1357A3F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {BCE98C50-BDB6-49C4-AFB4-78EB1357A3F2}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {BCE98C50-BDB6-49C4-AFB4-78EB1357A3F2}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {BCE98C50-BDB6-49C4-AFB4-78EB1357A3F2}.Release|Any CPU.Build.0 = Release|Any CPU 20 | EndGlobalSection 21 | GlobalSection(MonoDevelopProperties) = preSolution 22 | StartupItem = AndroidSupportSample\AndroidSupportSample.csproj 23 | EndGlobalSection 24 | EndGlobal 25 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/AndroidSupportSample.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {B05ADD8D-0896-4EEF-963B-10E7752E5D0E} 9 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | Library 11 | com.xamarin.sample.fragments.supportlib 12 | True 13 | Resources\Resource.designer.cs 14 | Resource 15 | Resources 16 | Assets 17 | AndroidSupportSample 18 | Properties\AndroidManifest.xml 19 | v2.3 20 | 21 | 22 | true 23 | full 24 | false 25 | bin\Debug 26 | DEBUG; 27 | prompt 28 | 4 29 | None 30 | false 31 | armeabi;armeabi-v7a;x86 32 | 33 | 34 | full 35 | true 36 | bin\Release 37 | prompt 38 | 4 39 | false 40 | false 41 | armeabi;armeabi-v7a;x86 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | ..\packages\Xamarin.Android.Support.v4.21.0.3.0\lib\MonoAndroid10\Xamarin.Android.Support.v4.dll 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/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 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/DetailsActivity.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.OS; 3 | using Android.Support.V4.App; 4 | 5 | namespace com.xamarin.sample.fragments.supportlib 6 | { 7 | [Activity(Label = "Details Activity")] 8 | public class DetailsActivity : FragmentActivity 9 | { 10 | protected override void OnCreate(Bundle bundle) 11 | { 12 | base.OnCreate(bundle); 13 | var index = Intent.Extras.GetInt("current_play_id", 0); 14 | 15 | var details = DetailsFragment.NewInstance(index); // Details 16 | var fragmentTransaction = SupportFragmentManager.BeginTransaction(); 17 | fragmentTransaction.Add(Android.Resource.Id.Content, details); 18 | fragmentTransaction.Commit(); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/DetailsFragment.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.OS; 4 | using Android.Support.V4.App; 5 | using Android.Util; 6 | using Android.Views; 7 | using Android.Widget; 8 | 9 | namespace com.xamarin.sample.fragments.supportlib 10 | { 11 | internal class DetailsFragment : Fragment 12 | { 13 | public static DetailsFragment NewInstance(int playId) 14 | { 15 | var detailsFrag = new DetailsFragment {Arguments = new Bundle()}; 16 | detailsFrag.Arguments.PutInt("current_play_id", playId); 17 | return detailsFrag; 18 | } 19 | 20 | public int ShownPlayId 21 | { 22 | get { return Arguments.GetInt("current_play_id", 0); } 23 | } 24 | 25 | public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 26 | { 27 | if (container == null) 28 | { 29 | // Currently in a layout without a container, so no reason to create our view. 30 | return null; 31 | } 32 | 33 | var scroller = new ScrollView(Activity); 34 | 35 | var text = new TextView(Activity); 36 | var padding = Convert.ToInt32(TypedValue.ApplyDimension(ComplexUnitType.Dip, 4, Activity.Resources.DisplayMetrics)); 37 | text.SetPadding(padding, padding, padding, padding); 38 | text.TextSize = 24; 39 | text.Text = Shakespeare.Dialogue[ShownPlayId]; 40 | 41 | scroller.AddView(text); 42 | 43 | return scroller; 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Android.Content; 3 | using Android.Runtime; 4 | using Android.Views; 5 | using Android.Widget; 6 | using Android.OS; 7 | using Android.App; 8 | 9 | using Android.Support.V4.App; 10 | 11 | namespace com.xamarin.sample.fragments.supportlib 12 | { 13 | [Activity (Label = "AndroidSupportSample", MainLauncher = true)] 14 | public class MainActivity : Android.Support.V4.App.FragmentActivity 15 | { 16 | protected override void OnCreate (Bundle bundle) 17 | { 18 | base.OnCreate (bundle); 19 | SetContentView (Resource.Layout.activity_main); 20 | } 21 | } 22 | } 23 | 24 | 25 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/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 | [assembly: AssemblyTitle ("AndroidSupportSample")] 8 | [assembly: AssemblyDescription ("")] 9 | [assembly: AssemblyConfiguration ("")] 10 | [assembly: AssemblyCompany ("Xamarin, Inc.")] 11 | [assembly: AssemblyProduct ("")] 12 | [assembly: AssemblyCopyright ("Xamarin, Inc.")] 13 | [assembly: AssemblyTrademark ("")] 14 | [assembly: AssemblyCulture ("")] 15 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". 16 | // The form "{Major}.{Minor}.*" will automatically update the build and revision, 17 | // and "{Major}.{Minor}.{Build}.*" will update just the revision. 18 | [assembly: AssemblyVersion ("1.0.0")] 19 | // The following attributes are used to specify the signing key for the assembly, 20 | // if desired. See the Mono documentation for more information about signing. 21 | //[assembly: AssemblyDelaySign(false)] 22 | //[assembly: AssemblyKeyFile("")] 23 | 24 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/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 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/Layout-Large/activity_main.axml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 11 | 12 | 16 | 17 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/layout/activity_main.axml: -------------------------------------------------------------------------------- 1 | 5 | 9 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Resources/values/Strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World, Click Me! 4 | FragmentDocumentSample 5 | 6 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/Shakespeare.cs: -------------------------------------------------------------------------------- 1 | namespace com.xamarin.sample.fragments.supportlib 2 | { 3 | class Shakespeare 4 | { 5 | public static string[] Titles = 6 | { 7 | "Henry IV (1)", 8 | "Henry V", 9 | "Henry VIII", 10 | "Richard II", 11 | "Richard III", 12 | "Merchant of Venice", 13 | "Othello", 14 | "King Lear" 15 | }; 16 | 17 | public static string[] Dialogue = 18 | { 19 | "So shaken as we are, so wan with care," + 20 | "Find we a time for frighted peace to pant," + 21 | "And breathe short-winded accents of new broils" + 22 | "To be commenced in strands afar remote." + 23 | "No more the thirsty entrance of this soil" + 24 | "Shall daub her lips with her own children's blood;" + 25 | "Nor more shall trenching war channel her fields," + 26 | "Nor bruise her flowerets with the armed hoofs" + 27 | "Of hostile paces: those opposed eyes," + 28 | "Which, like the meteors of a troubled heaven," + 29 | "All of one nature, of one substance bred," + 30 | "Did lately meet in the intestine shock" + 31 | "And furious close of civil butchery" + 32 | "Shall now, in mutual well-beseeming ranks," + 33 | "March all one way and be no more opposed" + 34 | "Against acquaintance, kindred and allies:" + 35 | "The edge of war, like an ill-sheathed knife," + 36 | "No more shall cut his master. Therefore, friends," + 37 | "As far as to the sepulchre of Christ," + 38 | "Whose soldier now, under whose blessed cross" + 39 | "We are impressed and engaged to fight," + 40 | "Forthwith a power of English shall we levy;" + 41 | "Whose arms were moulded in their mothers' womb" + 42 | "To chase these pagans in those holy fields" + 43 | "Over whose acres walk'd those blessed feet" + 44 | "Which fourteen hundred years ago were nail'd" + 45 | "For our advantage on the bitter cross." + 46 | "But this our purpose now is twelve month old," + 47 | "And bootless 'tis to tell you we will go:" + 48 | "Therefore we meet not now. Then let me hear" + 49 | "Of you, my gentle cousin Westmoreland," + 50 | "What yesternight our council did decree" + 51 | "In forwarding this dear expedience.", 52 | 53 | "Hear him but reason in divinity," + 54 | "And all-admiring with an inward wish" + 55 | "You would desire the king were made a prelate:" + 56 | "Hear him debate of commonwealth affairs," + 57 | "You would say it hath been all in all his study:" + 58 | "List his discourse of war, and you shall hear" + 59 | "A fearful battle render'd you in music:" + 60 | "Turn him to any cause of policy," + 61 | "The Gordian knot of it he will unloose," + 62 | "Familiar as his garter: that, when he speaks," + 63 | "The air, a charter'd libertine, is still," + 64 | "And the mute wonder lurketh in men's ears," + 65 | "To steal his sweet and honey'd sentences;" + 66 | "So that the art and practic part of life" + 67 | "Must be the mistress to this theoric:" + 68 | "Which is a wonder how his grace should glean it," + 69 | "Since his addiction was to courses vain," + 70 | "His companies unletter'd, rude and shallow," + 71 | "His hours fill'd up with riots, banquets, sports," + 72 | "And never noted in him any study," + 73 | "Any retirement, any sequestration" + 74 | "From open haunts and popularity.", 75 | 76 | "I come no more to make you laugh: things now," + 77 | "That bear a weighty and a serious brow," + 78 | "Sad, high, and working, full of state and woe," + 79 | "Such noble scenes as draw the eye to flow," + 80 | "We now present. Those that can pity, here" + 81 | "May, if they think it well, let fall a tear;" + 82 | "The subject will deserve it. Such as give" + 83 | "Their money out of hope they may believe," + 84 | "May here find truth too. Those that come to see" + 85 | "Only a show or two, and so agree" + 86 | "The play may pass, if they be still and willing," + 87 | "I'll undertake may see away their shilling" + 88 | "Richly in two short hours. Only they" + 89 | "That come to hear a merry bawdy play," + 90 | "A noise of targets, or to see a fellow" + 91 | "In a long motley coat guarded with yellow," + 92 | "Will be deceived; for, gentle hearers, know," + 93 | "To rank our chosen truth with such a show" + 94 | "As fool and fight is, beside forfeiting" + 95 | "Our own brains, and the opinion that we bring," + 96 | "To make that only true we now intend," + 97 | "Will leave us never an understanding friend." + 98 | "Therefore, for goodness' sake, and as you are known" + 99 | "The first and happiest hearers of the town," + 100 | "Be sad, as we would make ye: think ye see" + 101 | "The very persons of our noble story" + 102 | "As they were living; think you see them great," + 103 | "And follow'd with the general throng and sweat" + 104 | "Of thousand friends; then in a moment, see" + 105 | "How soon this mightiness meets misery:" + 106 | "And, if you can be merry then, I'll say" + 107 | "A man may weep upon his wedding-day.", 108 | 109 | "First, heaven be the record to my speech!" + 110 | "In the devotion of a subject's love," + 111 | "Tendering the precious safety of my prince," + 112 | "And free from other misbegotten hate," + 113 | "Come I appellant to this princely presence." + 114 | "Now, Thomas Mowbray, do I turn to thee," + 115 | "And mark my greeting well; for what I speak" + 116 | "My body shall make good upon this earth," + 117 | "Or my divine soul answer it in heaven." + 118 | "Thou art a traitor and a miscreant," + 119 | "Too good to be so and too bad to live," + 120 | "Since the more fair and crystal is the sky," + 121 | "The uglier seem the clouds that in it fly." + 122 | "Once more, the more to aggravate the note," + 123 | "With a foul traitor's name stuff I thy throat;" + 124 | "And wish, so please my sovereign, ere I move," + 125 | "What my tongue speaks my right drawn sword may prove.", 126 | 127 | "Now is the winter of our discontent" + 128 | "Made glorious summer by this sun of York;" + 129 | "And all the clouds that lour'd upon our house" + 130 | "In the deep bosom of the ocean buried." + 131 | "Now are our brows bound with victorious wreaths;" + 132 | "Our bruised arms hung up for monuments;" + 133 | "Our stern alarums changed to merry meetings," + 134 | "Our dreadful marches to delightful measures." + 135 | "Grim-visaged war hath smooth'd his wrinkled front;" + 136 | "And now, instead of mounting barded steeds" + 137 | "To fright the souls of fearful adversaries," + 138 | "He capers nimbly in a lady's chamber" + 139 | "To the lascivious pleasing of a lute." + 140 | "But I, that am not shaped for sportive tricks," + 141 | "Nor made to court an amorous looking-glass;" + 142 | "I, that am rudely stamp'd, and want love's majesty" + 143 | "To strut before a wanton ambling nymph;" + 144 | "I, that am curtail'd of this fair proportion," + 145 | "Cheated of feature by dissembling nature," + 146 | "Deformed, unfinish'd, sent before my time" + 147 | "Into this breathing world, scarce half made up," + 148 | "And that so lamely and unfashionable" + 149 | "That dogs bark at me as I halt by them;" + 150 | "Why, I, in this weak piping time of peace," + 151 | "Have no delight to pass away the time," + 152 | "Unless to spy my shadow in the sun" + 153 | "And descant on mine own deformity:" + 154 | "And therefore, since I cannot prove a lover," + 155 | "To entertain these fair well-spoken days," + 156 | "I am determined to prove a villain" + 157 | "And hate the idle pleasures of these days." + 158 | "Plots have I laid, inductions dangerous," + 159 | "By drunken prophecies, libels and dreams," + 160 | "To set my brother Clarence and the king" + 161 | "In deadly hate the one against the other:" + 162 | "And if King Edward be as true and just" + 163 | "As I am subtle, false and treacherous," + 164 | "This day should Clarence closely be mew'd up," + 165 | "About a prophecy, which says that 'G'" + 166 | "Of Edward's heirs the murderer shall be." + 167 | "Dive, thoughts, down to my soul: here" + 168 | "Clarence comes.", 169 | 170 | "To bait fish withal: if it will feed nothing else," + 171 | "it will feed my revenge. He hath disgraced me, and" + 172 | "hindered me half a million; laughed at my losses," + 173 | "mocked at my gains, scorned my nation, thwarted my" + 174 | "bargains, cooled my friends, heated mine" + 175 | "enemies; and what's his reason? I am a Jew. Hath" + 176 | "not a Jew eyes? hath not a Jew hands, organs," + 177 | "dimensions, senses, affections, passions? fed with" + 178 | "the same food, hurt with the same weapons, subject" + 179 | "to the same diseases, healed by the same means," + 180 | "warmed and cooled by the same winter and summer, as" + 181 | "a Christian is? If you prick us, do we not bleed?" + 182 | "if you tickle us, do we not laugh? if you poison" + 183 | "us, do we not die? and if you wrong us, shall we not" + 184 | "revenge? If we are like you in the rest, we will" + 185 | "resemble you in that. If a Jew wrong a Christian," + 186 | "what is his humility? Revenge. If a Christian" + 187 | "wrong a Jew, what should his sufferance be by" + 188 | "Christian example? Why, revenge. The villany you" + 189 | "teach me, I will execute, and it shall go hard but I" + 190 | "will better the instruction.", 191 | 192 | "Virtue! a fig! 'tis in ourselves that we are thus" + 193 | "or thus. Our bodies are our gardens, to the which" + 194 | "our wills are gardeners: so that if we will plant" + 195 | "nettles, or sow lettuce, set hyssop and weed up" + 196 | "thyme, supply it with one gender of herbs, or" + 197 | "distract it with many, either to have it sterile" + 198 | "with idleness, or manured with industry, why, the" + 199 | "power and corrigible authority of this lies in our" + 200 | "wills. If the balance of our lives had not one" + 201 | "scale of reason to poise another of sensuality, the" + 202 | "blood and baseness of our natures would conduct us" + 203 | "to most preposterous conclusions: but we have" + 204 | "reason to cool our raging motions, our carnal" + 205 | "stings, our unbitted lusts, whereof I take this that" + 206 | "you call love to be a sect or scion.", 207 | 208 | "Blow, winds, and crack your cheeks! rage! blow!" + 209 | "You cataracts and hurricanoes, spout" + 210 | "Till you have drench'd our steeples, drown'd the cocks!" + 211 | "You sulphurous and thought-executing fires," + 212 | "Vaunt-couriers to oak-cleaving thunderbolts," + 213 | "Singe my white head! And thou, all-shaking thunder," + 214 | "Smite flat the thick rotundity o' the world!" + 215 | "Crack nature's moulds, an germens spill at once," + 216 | "That make ingrateful man!" 217 | }; 218 | } 219 | } 220 | 221 | -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/TitlesFragment.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.Content; 4 | using Android.OS; 5 | using Android.Support.V4.App; 6 | using Android.Views; 7 | using Android.Widget; 8 | 9 | namespace com.xamarin.sample.fragments.supportlib 10 | { 11 | public class TitlesFragment : ListFragment 12 | { 13 | private int _currentPlayId; 14 | private bool _isDualPane; 15 | 16 | public override void OnActivityCreated(Bundle savedInstanceState) 17 | { 18 | base.OnActivityCreated(savedInstanceState); 19 | 20 | var detailsFrame = Activity.FindViewById(Resource.Id.details); 21 | 22 | // If running on a tablet, then the layout in Resources/Layout-Large will be loaded. 23 | // That layout uses fragments, and defines the detailsFrame. We use the visiblity of 24 | // detailsFrame as this distinguisher between tablet and phone. 25 | _isDualPane = detailsFrame != null && detailsFrame.Visibility == ViewStates.Visible; 26 | 27 | var adapter = new ArrayAdapter(Activity, Android.Resource.Layout.SimpleListItemChecked, Shakespeare.Titles); 28 | ListAdapter = adapter; 29 | 30 | if (savedInstanceState != null) 31 | { 32 | _currentPlayId = savedInstanceState.GetInt("current_play_id", 0); 33 | } 34 | 35 | if (_isDualPane) 36 | { 37 | ListView.ChoiceMode = ChoiceMode.Single; 38 | ShowDetails(_currentPlayId); 39 | } 40 | } 41 | 42 | public override void OnSaveInstanceState(Bundle outState) 43 | { 44 | base.OnSaveInstanceState(outState); 45 | outState.PutInt("current_play_id", _currentPlayId); 46 | } 47 | 48 | public override void OnListItemClick(ListView l, View v, int position, long id) 49 | { 50 | ShowDetails(position); 51 | } 52 | 53 | private void ShowDetails(int playId) 54 | { 55 | _currentPlayId = playId; 56 | if (_isDualPane) 57 | { 58 | // We can display everything in-place with fragments. 59 | // Have the list highlight this item and show the data. 60 | ListView.SetItemChecked(playId, true); 61 | 62 | // Check what fragment is shown, replace if needed. 63 | var details = FragmentManager.FindFragmentById(Resource.Id.details) as DetailsFragment; 64 | if (details == null || details.ShownPlayId != playId) 65 | { 66 | // Make new fragment to show this selection. 67 | details = DetailsFragment.NewInstance(playId); 68 | 69 | // Execute a transaction, replacing any existing 70 | // fragment with this one inside the frame. 71 | var ft = FragmentManager.BeginTransaction(); 72 | ft.Replace(Resource.Id.details, details); 73 | ft.SetTransition(FragmentTransaction.TransitFragmentFade); 74 | ft.Commit(); 75 | } 76 | } 77 | else 78 | { 79 | // Otherwise we need to launch a new activity to display 80 | // the dialog fragment with selected text. 81 | var intent = new Intent(); 82 | 83 | intent.SetClass(Activity, typeof (DetailsActivity)); 84 | intent.PutExtra("current_play_id", playId); 85 | StartActivity(intent); 86 | } 87 | } 88 | } 89 | } -------------------------------------------------------------------------------- /Components/xamandroidsupportv4-18-21.0.3.0/samples/AndroidSupportSample/AndroidSupportSample/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | SwipeListView | C# 2 | =========================== 3 | 4 | This is an Android Jar binding of the [47 Degrees Swipe List View](https://github.com/47deg/android-swipelistview). 5 | 6 | The Swipe List View is an Android List View implementation with support for drawable cells and many other swipe related features. This control simplifies the building of lists in Android that support swipe gestures on the list items. Swipe Modes: 7 | * Left * Right * Both * None Swipe Actions: 8 | * Reveal - Swipe to reveal a view behind the list item * Dismiss - Swipe to remove a list item from the list * Choice - Swipe with a rubber band-like behavior that toggles the selected state of the list item 9 | #Minimum SDK Version 10 | API 12 *(Android 3.1)* 11 | 12 | #XML Usage 13 | 14 | If you decide to use SwipeListView as a view, you can define it in your xml layout like this: 15 | 16 | ```xml 17 | 34 | ``` 35 | 36 | * `swipeFrontView` - **Required** - front view id. 37 | * `swipeBackView` - **Required** - back view id. 38 | * `swipeActionLeft` - Optional - left swipe action Default: 'reveal' 39 | * `swipeActionRight` - Optional - right swipe action Default: 'reveal' 40 | * `swipeMode` - Gestures to enable or 'none'. Default: 'both' 41 | * `swipeCloseAllItemsWhenMoveList` - Close revealed items on list motion. Default: 'true' 42 | * `swipeOpenOnLongPress` - Reveal on long press Default: 'true' 43 | * `swipeAnimationTime` - item drop animation time. Default: android configuration 44 | * `swipeOffsetLeft` - left offset 45 | * `swipeOffsetRight` - right offset 46 | 47 | # License 48 | 49 | Copyright (C) 2012 47 Degrees, LLC 50 | http://47deg.com 51 | hello@47deg.com 52 | 53 | Licensed under the Apache License, Version 2.0 (the "License"); 54 | you may not use this file except in compliance with the License. 55 | You may obtain a copy of the License at 56 | 57 | http://www.apache.org/licenses/LICENSE-2.0 58 | 59 | Unless required by applicable law or agreed to in writing, software 60 | distributed under the License is distributed on an "AS IS" BASIS, 61 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 62 | See the License for the specific language governing permissions and 63 | limitations under the License. -------------------------------------------------------------------------------- /SwipeListView.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SwipeListViewSample", "SwipeListViewSample\SwipeListViewSample.csproj", "{62C5EDE6-0F05-4A3D-A414-CF4224AA25B7}" 5 | EndProject 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FortySevenDeg.SwipeListView", "SwipeListView\FortySevenDeg.SwipeListView.csproj", "{91AA220C-F477-4738-8872-3AF5384650E8}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {62C5EDE6-0F05-4A3D-A414-CF4224AA25B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {62C5EDE6-0F05-4A3D-A414-CF4224AA25B7}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {62C5EDE6-0F05-4A3D-A414-CF4224AA25B7}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {62C5EDE6-0F05-4A3D-A414-CF4224AA25B7}.Release|Any CPU.Build.0 = Release|Any CPU 18 | {91AA220C-F477-4738-8872-3AF5384650E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {91AA220C-F477-4738-8872-3AF5384650E8}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {91AA220C-F477-4738-8872-3AF5384650E8}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {91AA220C-F477-4738-8872-3AF5384650E8}.Release|Any CPU.Build.0 = Release|Any CPU 22 | EndGlobalSection 23 | GlobalSection(MonoDevelopProperties) = preSolution 24 | StartupItem = SwipeListViewSample\SwipeListViewSample.csproj 25 | Policies = $0 26 | $0.DotNetNamingPolicy = $1 27 | $1.DirectoryNamespaceAssociation = PrefixedHierarchical 28 | $1.ResourceNamePolicy = FileFormatDefault 29 | $0.TextStylePolicy = $2 30 | $2.inheritsSet = null 31 | $2.scope = text/x-csharp 32 | $0.CSharpFormattingPolicy = $3 33 | $3.IndentSwitchBody = True 34 | $3.AnonymousMethodBraceStyle = NextLine 35 | $3.PropertyBraceStyle = NextLine 36 | $3.PropertyGetBraceStyle = NextLine 37 | $3.PropertySetBraceStyle = NextLine 38 | $3.EventAddBraceStyle = NextLine 39 | $3.EventRemoveBraceStyle = NextLine 40 | $3.StatementBraceStyle = NextLine 41 | $3.ElseNewLinePlacement = NewLine 42 | $3.CatchNewLinePlacement = NewLine 43 | $3.FinallyNewLinePlacement = NewLine 44 | $3.EmbeddedStatementPlacement = DoNotCare 45 | $3.BeforeMethodDeclarationParentheses = False 46 | $3.BeforeMethodCallParentheses = False 47 | $3.BeforeConstructorDeclarationParentheses = False 48 | $3.BeforeIndexerDeclarationBracket = False 49 | $3.BeforeDelegateDeclarationParentheses = False 50 | $3.AfterDelegateDeclarationParameterComma = True 51 | $3.NewParentheses = False 52 | $3.IfParentheses = False 53 | $3.WhileParentheses = False 54 | $3.ForParentheses = False 55 | $3.ForeachParentheses = False 56 | $3.CatchParentheses = False 57 | $3.SwitchParentheses = False 58 | $3.LockParentheses = False 59 | $3.UsingParentheses = False 60 | $3.SpacesBeforeBrackets = False 61 | $3.inheritsSet = Mono 62 | $3.inheritsScope = text/x-csharp 63 | $3.scope = text/x-csharp 64 | $0.TextStylePolicy = $4 65 | $4.FileWidth = 120 66 | $4.TabsToSpaces = False 67 | $4.inheritsSet = VisualStudio 68 | $4.inheritsScope = text/plain 69 | $4.scope = text/plain 70 | $0.TextStylePolicy = $5 71 | $5.inheritsSet = null 72 | $5.scope = application/xml 73 | $0.XmlFormattingPolicy = $6 74 | $6.inheritsSet = Mono 75 | $6.inheritsScope = application/xml 76 | $6.scope = application/xml 77 | $0.TextStylePolicy = $7 78 | $7.inheritsSet = null 79 | $7.scope = application/config+xml 80 | $0.XmlFormattingPolicy = $8 81 | $8.inheritsSet = null 82 | $8.scope = application/config+xml 83 | version = 2.0.0 84 | EndGlobalSection 85 | EndGlobal 86 | -------------------------------------------------------------------------------- /SwipeListView/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 | -------------------------------------------------------------------------------- /SwipeListView/FortySevenDeg.SwipeListView.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 7 | {91AA220C-F477-4738-8872-3AF5384650E8} 8 | Library 9 | FortySevenDeg.SwipeListView 10 | Resources 11 | Assets 12 | False 13 | FortySevenDeg.SwipeListView 14 | v4.4 15 | sdfsdf 16 | 2.0.0 17 | 18 | 19 | true 20 | full 21 | false 22 | bin\Debug 23 | DEBUG; 24 | prompt 25 | 4 26 | None 27 | false 28 | 29 | 30 | true 31 | bin\Release 32 | prompt 33 | 4 34 | false 35 | false 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /SwipeListView/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 | -------------------------------------------------------------------------------- /SwipeListView/Jars/nineoldandroids-library-2.4.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListView/Jars/nineoldandroids-library-2.4.0.jar -------------------------------------------------------------------------------- /SwipeListView/Jars/swipelistview-release-dec8.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListView/Jars/swipelistview-release-dec8.aar -------------------------------------------------------------------------------- /SwipeListView/Partial_SwipeListView.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace FortySevenDeg.SwipeListView 4 | { 5 | public partial class SwipeListView 6 | { 7 | WeakReference dispatcher; 8 | SwipeListViewListenerDispatcher EventDispatcher 9 | { 10 | get 11 | { 12 | if(dispatcher == null || !dispatcher.IsAlive) 13 | { 14 | var d = new SwipeListViewListenerDispatcher(this); 15 | SetSwipeListViewListener(d); 16 | dispatcher = new WeakReference(d); 17 | } 18 | return(SwipeListViewListenerDispatcher)dispatcher.Target; 19 | } 20 | } 21 | 22 | public event EventHandler SwipeModeChanged 23 | { 24 | add 25 | { 26 | EventDispatcher.SwipeModeChanged += value; 27 | } 28 | remove 29 | { 30 | EventDispatcher.SwipeModeChanged -= value; 31 | } 32 | } 33 | 34 | public event EventHandler ChoiceToggled 35 | { 36 | add 37 | { 38 | EventDispatcher.ChoiceToggled += value; 39 | } 40 | remove 41 | { 42 | EventDispatcher.ChoiceToggled -= value; 43 | } 44 | } 45 | 46 | public event EventHandler ToggleChoiceEnded 47 | { 48 | add 49 | { 50 | EventDispatcher.ToggleChoiceEnded += value; 51 | } 52 | remove 53 | { 54 | EventDispatcher.ToggleChoiceEnded -= value; 55 | } 56 | } 57 | 58 | public event EventHandler ToggleChoiceStarted 59 | { 60 | add 61 | { 62 | EventDispatcher.ToggleChoiceStarted += value; 63 | } 64 | remove 65 | { 66 | EventDispatcher.ToggleChoiceStarted -= value; 67 | } 68 | } 69 | 70 | public event EventHandler BackViewClicked 71 | { 72 | add 73 | { 74 | EventDispatcher.BackViewClicked += value; 75 | } 76 | remove 77 | { 78 | EventDispatcher.BackViewClicked -= value; 79 | } 80 | } 81 | 82 | public event EventHandler FrontViewClicked 83 | { 84 | add 85 | { 86 | EventDispatcher.FrontViewClicked += value; 87 | } 88 | remove 89 | { 90 | EventDispatcher.FrontViewClicked -= value; 91 | } 92 | } 93 | 94 | public event EventHandler Dismissed 95 | { 96 | add 97 | { 98 | EventDispatcher.Dismissed += value; 99 | } 100 | remove 101 | { 102 | EventDispatcher.Dismissed -= value; 103 | } 104 | } 105 | 106 | public event EventHandler FirstItemListed 107 | { 108 | add 109 | { 110 | EventDispatcher.FirstItemListed += value; 111 | } 112 | remove 113 | { 114 | EventDispatcher.FirstItemListed -= value; 115 | } 116 | } 117 | 118 | public event EventHandler LastItemListed 119 | { 120 | add 121 | { 122 | EventDispatcher.LastItemListed += value; 123 | } 124 | remove 125 | { 126 | EventDispatcher.LastItemListed -= value; 127 | } 128 | } 129 | 130 | public event EventHandler ListDataSetChanged 131 | { 132 | add 133 | { 134 | EventDispatcher.ListDataSetChanged += value; 135 | } 136 | remove 137 | { 138 | EventDispatcher.ListDataSetChanged -= value; 139 | } 140 | } 141 | 142 | public event EventHandler Moved 143 | { 144 | add 145 | { 146 | EventDispatcher.Moved += value; 147 | } 148 | remove 149 | { 150 | EventDispatcher.Moved -= value; 151 | } 152 | } 153 | 154 | public event EventHandler ItemClosed 155 | { 156 | add 157 | { 158 | EventDispatcher.ItemClosed += value; 159 | } 160 | remove 161 | { 162 | EventDispatcher.ItemClosed -= value; 163 | } 164 | } 165 | 166 | public event EventHandler ItemOpened 167 | { 168 | add 169 | { 170 | EventDispatcher.ItemOpened += value; 171 | } 172 | remove 173 | { 174 | EventDispatcher.ItemOpened -= value; 175 | } 176 | } 177 | 178 | public event EventHandler ItemOpenStarted 179 | { 180 | add 181 | { 182 | EventDispatcher.ItemOpenStarted += value; 183 | } 184 | remove 185 | { 186 | EventDispatcher.ItemOpenStarted -= value; 187 | } 188 | } 189 | 190 | public event EventHandler ItemCloseStarted 191 | { 192 | add 193 | { 194 | EventDispatcher.ItemCloseStarted += value; 195 | } 196 | remove 197 | { 198 | EventDispatcher.ItemCloseStarted -= value; 199 | } 200 | } 201 | } 202 | } 203 | 204 | -------------------------------------------------------------------------------- /SwipeListView/Partial_SwipeListViewListenerDispatcher.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace FortySevenDeg.SwipeListView 4 | { 5 | internal partial class SwipeListViewListenerDispatcher : Java.Lang.Object, ISwipeListViewListener 6 | { 7 | SwipeListView sender; 8 | 9 | public SwipeListViewListenerDispatcher(SwipeListView sender) 10 | { 11 | this.sender = sender; 12 | } 13 | 14 | internal EventHandler SwipeModeChanged; 15 | public int OnChangeSwipeMode(int position) 16 | { 17 | var h = SwipeModeChanged; 18 | var args = new SwipeListViewSwipeModeChangedEventArgs() { Position = position, SwipeMode = -1 }; 19 | if(h != null) 20 | h(sender, args); 21 | 22 | return args.SwipeMode; 23 | } 24 | 25 | internal EventHandler ChoiceToggled; 26 | public void OnChoiceChanged(int position, bool selected) 27 | { 28 | var h = ChoiceToggled; 29 | var args = new SwipeListViewChoiceChangedEventArgs() { Position = position, Selected = selected }; 30 | if(h != null) 31 | h(sender, args); 32 | } 33 | 34 | internal EventHandler ToggleChoiceEnded; 35 | public void OnChoiceEnded() 36 | { 37 | var h = ToggleChoiceEnded; 38 | if(h != null) 39 | h(sender, new EventArgs()); 40 | } 41 | 42 | internal EventHandler ToggleChoiceStarted; 43 | public void OnChoiceStarted() 44 | { 45 | var h = ToggleChoiceStarted; 46 | if(h != null) 47 | h(sender, new EventArgs()); 48 | } 49 | 50 | internal EventHandler BackViewClicked; 51 | public void OnClickBackView(int position) 52 | { 53 | var h = BackViewClicked; 54 | var args = new SwipeListViewClickedEventArgs() { Position = position }; 55 | if(h != null) 56 | h(sender, args); 57 | } 58 | 59 | internal EventHandler FrontViewClicked; 60 | public void OnClickFrontView(int position) 61 | { 62 | var h = FrontViewClicked; 63 | var args = new SwipeListViewClickedEventArgs() { Position = position }; 64 | if(h != null) 65 | h(sender, args); 66 | } 67 | 68 | internal EventHandler Dismissed; 69 | public void OnDismiss(int[] reverseSortedPositions) 70 | { 71 | var h = Dismissed; 72 | var args = new SwipeListViewDismissedEventArgs() { ReverseSortedPositions = reverseSortedPositions }; 73 | if(h != null) 74 | h(sender, args); 75 | } 76 | 77 | internal EventHandler FirstItemListed; 78 | public void OnFirstListItem() 79 | { 80 | var h = FirstItemListed; 81 | if(h != null) 82 | h(sender, new EventArgs()); 83 | } 84 | 85 | internal EventHandler LastItemListed; 86 | public void OnLastListItem() 87 | { 88 | var h = LastItemListed; 89 | if(h != null) 90 | h(sender, new EventArgs()); 91 | } 92 | 93 | internal EventHandler ListDataSetChanged; 94 | public void OnListChanged() 95 | { 96 | var h = ListDataSetChanged; 97 | if(h != null) 98 | h(sender, new EventArgs()); 99 | } 100 | 101 | internal EventHandler Moved; 102 | public void OnMove(int position, float x) 103 | { 104 | var h = Moved; 105 | var args = new SwipeListViewMovedEventArgs() { Position = position, X = x }; 106 | if(h != null) 107 | h(sender, args); 108 | } 109 | 110 | internal EventHandler ItemClosed; 111 | public void OnClosed(int position, bool fromRight) 112 | { 113 | var h = ItemClosed; 114 | var args = new SwipeListViewClosedEventArgs() { Position = position, FromRight = fromRight }; 115 | if(h != null) 116 | h(sender, args); 117 | } 118 | 119 | internal EventHandler ItemOpened; 120 | public void OnOpened(int position, bool toRight) 121 | { 122 | var h = ItemOpened; 123 | var args = new SwipeListViewOpenedEventArgs() { Position = position, ToRight = toRight }; 124 | if(h != null) 125 | h(sender, args); 126 | } 127 | 128 | internal EventHandler ItemOpenStarted; 129 | public void OnStartOpen(int position, int action, bool right) 130 | { 131 | var h = ItemOpenStarted; 132 | var args = new SwipeListViewOpenStartedEventArgs() { Position = position, Right = right }; 133 | if(h != null) 134 | h(sender, args); 135 | } 136 | 137 | internal EventHandler ItemCloseStarted; 138 | public void OnStartClose(int position, bool right) 139 | { 140 | var h = ItemCloseStarted; 141 | var args = new SwipeListViewCloseStartedEventArgs() { Position = position, Right = right }; 142 | if(h != null) 143 | h(sender, args); 144 | } 145 | } 146 | 147 | public class SwipeListViewSwipeModeChangedEventArgs : EventArgs 148 | { 149 | public int Position { get; internal set; } 150 | public int SwipeMode { get; set; } 151 | } 152 | 153 | public class SwipeListViewChoiceChangedEventArgs : EventArgs 154 | { 155 | public int Position { get; internal set; } 156 | public bool Selected { get; internal set; } 157 | } 158 | 159 | public class SwipeListViewClickedEventArgs : EventArgs 160 | { 161 | public int Position { get; internal set; } 162 | } 163 | 164 | public class SwipeListViewDismissedEventArgs : EventArgs 165 | { 166 | public int[] ReverseSortedPositions { get; internal set; } 167 | } 168 | 169 | public class SwipeListViewMovedEventArgs : EventArgs 170 | { 171 | public int Position { get; internal set; } 172 | public float X { get; internal set; } 173 | } 174 | 175 | public class SwipeListViewClosedEventArgs : EventArgs 176 | { 177 | public int Position { get; internal set; } 178 | public bool FromRight { get; internal set; } 179 | } 180 | 181 | public class SwipeListViewOpenedEventArgs : EventArgs 182 | { 183 | public int Position { get; internal set; } 184 | public bool ToRight { get; internal set; } 185 | } 186 | 187 | public class SwipeListViewCloseStartedEventArgs : EventArgs 188 | { 189 | public int Position { get; internal set; } 190 | public bool Right { get; internal set; } 191 | } 192 | 193 | public class SwipeListViewOpenStartedEventArgs : EventArgs 194 | { 195 | public int Position { get; internal set; } 196 | public bool Right { get; internal set; } 197 | } 198 | } -------------------------------------------------------------------------------- /SwipeListView/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("SwipeListView")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("")] 13 | [assembly: AssemblyCopyright("Chris Riesgo")] 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("2.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 | -------------------------------------------------------------------------------- /SwipeListView/Transforms/EnumFields.xml: -------------------------------------------------------------------------------- 1 |  2 | 18 | 19 | -------------------------------------------------------------------------------- /SwipeListView/Transforms/EnumMethods.xml: -------------------------------------------------------------------------------- 1 |  2 | 18 | 19 | -------------------------------------------------------------------------------- /SwipeListView/Transforms/Metadata.xml: -------------------------------------------------------------------------------- 1 |  2 | 9 | 10 | 11 | FortySevenDeg.SwipeListView 12 | 13 | 14 | position 15 | position 16 | selected 17 | position 18 | position 19 | position 20 | selected 21 | reverseSortedPositions 22 | position 23 | x 24 | position 25 | toRight 26 | position 27 | right 28 | position 29 | action 30 | right 31 | swipeListViewListener 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /SwipeListViewSample/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 | -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/alaskan_malamute.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/alaskan_malamute.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/australian_cattle_dog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/australian_cattle_dog.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/canaan_dog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/canaan_dog.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/dalmatian.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/dalmatian.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/english_foxhound.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/english_foxhound.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/german_shepherd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/german_shepherd.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/golden_retriever.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/golden_retriever.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/pomeranian.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/pomeranian.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/rhodesian_ridgeback.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/rhodesian_ridgeback.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/rottweiler.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/rottweiler.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/russell_terrier.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/russell_terrier.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/saint_bernard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/saint_bernard.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/scottish_deerhound.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/scottish_deerhound.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/shiba_inu.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/shiba_inu.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/siberian_husky.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/siberian_husky.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/dogs/weimaraner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/dogs/weimaraner.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/aaron.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/aaron.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/ananth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/ananth.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/bob.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/bob.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/chris.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/chris.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/dave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/dave.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/david.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/david.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/dean.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/dean.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/demis.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/demis.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/don.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/don.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/frank.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/frank.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/greg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/greg.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/igor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/igor.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/jared.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/jared.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/jb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/jb.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/jeremie.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/jeremie.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/jeroen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/jeroen.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/john_bubriski.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/john_bubriski.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/john_zablocki.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/john_zablocki.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/jonathan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/jonathan.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/louis.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/louis.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/michael.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/michael.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/miguel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/miguel.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/paul.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/paul.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/phil.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/phil.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/sam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/sam.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/scott.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/scott.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/somya.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/somya.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Assets/images/speakers/steve.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Assets/images/speakers/steve.jpg -------------------------------------------------------------------------------- /SwipeListViewSample/Dog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SwipeListViewSample 4 | { 5 | public class Dog 6 | { 7 | public int Id { get; set; } 8 | 9 | public string Name { get; set; } 10 | 11 | public string ImageUrl { get; set; } 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /SwipeListViewSample/Dogs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace SwipeListViewSample 5 | { 6 | public static class Dogs 7 | { 8 | /// 9 | /// Helper method to populate our dog data, 10 | /// 11 | public static IEnumerable GetDogData() 12 | { 13 | return new[] { 14 | new Dog { Name = "Alaskan Malamute", ImageUrl = "images/dogs/alaskan_malamute.jpg" }, 15 | new Dog { Name = "Australian Cattle Dog", ImageUrl = "images/dogs/australian_cattle_dog.jpg" }, 16 | new Dog { Name = "Canaan Dog", ImageUrl = "images/dogs/canaan_dog.jpg" }, 17 | new Dog { Name = "Dalmatian", ImageUrl = "images/dogs/dalmatian.jpg" }, 18 | new Dog { Name = "English Foxhound", ImageUrl = "images/dogs/english_foxhound.jpg" }, 19 | new Dog { Name = "German Shepherd", ImageUrl = "images/dogs/german_shepherd.jpg" }, 20 | new Dog { Name = "Golden Retriever", ImageUrl = "images/dogs/golden_retriever.jpg" }, 21 | new Dog { Name = "Pomeranian", ImageUrl = "images/dogs/pomeranian.jpg" }, 22 | new Dog { Name = "Rhodesian Ridgeback", ImageUrl = "images/dogs/rhodesian_ridgeback.jpg" }, 23 | new Dog { Name = "Rottweiler", ImageUrl = "images/dogs/rottweiler.jpg" }, 24 | new Dog { Name = "Russell Terrier", ImageUrl = "images/dogs/russell_terrier.jpg" }, 25 | new Dog { Name = "Saint Bernard", ImageUrl = "images/dogs/saint_bernard.jpg" }, 26 | new Dog { Name = "Scottish Deerhound", ImageUrl = "images/dogs/scottish_deerhound.jpg" }, 27 | new Dog { Name = "Shiba Inu", ImageUrl = "images/dogs/shiba_inu.jpg" }, 28 | new Dog { Name = "Siberian Husky", ImageUrl = "images/dogs/siberian_husky.jpg" }, 29 | new Dog { Name = "Weimaraner", ImageUrl = "images/dogs/weimaraner.jpg" } 30 | }; 31 | } 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /SwipeListViewSample/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.App; 4 | using Android.Views; 5 | using Android.Widget; 6 | using Android.OS; 7 | using System.Collections.Generic; 8 | using System.Linq; 9 | using Android.Support.V4.App; 10 | using Android.Graphics.Drawables; 11 | using FortySevenDeg.SwipeListView; 12 | 13 | namespace SwipeListViewSample 14 | { 15 | [Activity(Label = "Swipe ListView", MainLauncher = true)] 16 | public class MainActivity : FragmentActivity 17 | { 18 | SwipeListView _swipeListView; 19 | DogsAdapter _adapter; 20 | 21 | protected override void OnCreate(Bundle bundle) 22 | { 23 | base.OnCreate(bundle); 24 | 25 | // Set our view from the "main" layout resource 26 | SetContentView(Resource.Layout.Main); 27 | ActionBar.SetIcon(new ColorDrawable(Android.Graphics.Color.Transparent)); 28 | 29 | _swipeListView = FindViewById(Resource.Id.example_lv_list); 30 | 31 | _adapter = new DogsAdapter(this, Dogs.GetDogData()); 32 | 33 | _swipeListView.FrontViewClicked += HandleFrontViewClicked; 34 | _swipeListView.BackViewClicked += HandleBackViewClicked; 35 | _swipeListView.Dismissed += HandleDismissed; 36 | 37 | _swipeListView.Adapter = _adapter; 38 | } 39 | 40 | void HandleFrontViewClicked (object sender, SwipeListViewClickedEventArgs e) 41 | { 42 | RunOnUiThread(() => _swipeListView.OpenAnimate(e.Position)); 43 | } 44 | 45 | void HandleBackViewClicked (object sender, SwipeListViewClickedEventArgs e) 46 | { 47 | RunOnUiThread(() => _swipeListView.CloseAnimate(e.Position)); 48 | } 49 | 50 | void HandleDismissed (object sender, SwipeListViewDismissedEventArgs e) 51 | { 52 | foreach (var i in e.ReverseSortedPositions) 53 | { 54 | _adapter.RemoveView(i); 55 | } 56 | } 57 | } 58 | 59 | 60 | public class DogsAdapter: BaseAdapter 61 | { 62 | private readonly List data; 63 | private readonly Activity context; 64 | 65 | public DogsAdapter(Activity activity, IEnumerable speakers) 66 | { 67 | data = speakers.OrderBy(s => s.Name).ToList(); 68 | context = activity; 69 | } 70 | 71 | public override long GetItemId(int position) 72 | { 73 | return position; 74 | } 75 | 76 | public override Dog this [int index] { 77 | get { return data[index]; } 78 | } 79 | 80 | public override int Count { 81 | get { return data.Count; } 82 | } 83 | 84 | public void RemoveView(int position) 85 | { 86 | data.RemoveAt(position); 87 | NotifyDataSetChanged(); 88 | } 89 | 90 | public override View GetView(int position, View convertView, ViewGroup parent) 91 | { 92 | var view = convertView; 93 | if(view == null) 94 | { 95 | // inflate the custom AXML layout 96 | view = context.LayoutInflater.Inflate(Resource.Layout.package_row, null); 97 | } 98 | 99 | ((SwipeListView)parent).Recycle(view, position); 100 | 101 | var dog = data[position]; 102 | 103 | var ivImage = view.FindViewById(Resource.Id.example_row_iv_image); 104 | var tvTitle = view.FindViewById(Resource.Id.example_row_tv_title); 105 | 106 | var image = GetHeadShot(dog.ImageUrl); 107 | ivImage.SetImageDrawable(image); 108 | tvTitle.Text = dog.Name; 109 | 110 | view.Click += (sender, e) => 111 | { 112 | ((ISwipeListViewListener)parent).OnClickBackView(position); 113 | }; 114 | 115 | return view; 116 | } 117 | 118 | private Drawable GetHeadShot(string url) 119 | { 120 | Drawable headshotDrawable = null; 121 | try { 122 | headshotDrawable = Drawable.CreateFromStream(context.Assets.Open(url), null); 123 | } catch (Exception ex) { 124 | Android.Util.Log.Debug(GetType().FullName, "Error getting headshot for " + url + ", " + ex.ToString()); 125 | headshotDrawable = null; 126 | } 127 | return headshotDrawable; 128 | } 129 | } 130 | } 131 | 132 | 133 | -------------------------------------------------------------------------------- /SwipeListViewSample/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /SwipeListViewSample/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("SwipeListView")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("")] 13 | [assembly: AssemblyCopyright("chrisriesgo")] 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 | -------------------------------------------------------------------------------- /SwipeListViewSample/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 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/drawable/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrisriesgo/android-swipelistview-sharp/88d47b332f3f52d0f1d1b99e1d1e563383b451b4/SwipeListViewSample/Resources/drawable/Icon.png -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/drawable/background_item.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/drawable/background_new_tag.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/drawable/choice_selected.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/drawable/choice_unselected.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/layout/Main.axml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 21 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/layout/package_row.axml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 9 | 16 | 17 | 22 | 25 | 33 | 34 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/values/Colors.xml: -------------------------------------------------------------------------------- 1 |  2 | 19 | 20 | 21 | 22 | #dedede 23 | 24 | #e3e3e3 25 | #ffffff 26 | #444444 27 | #7e7e7e 28 | 29 | #ffbcbcbc 30 | 31 | #ff0000 32 | #ffffff 33 | 34 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/values/Dimens.xml: -------------------------------------------------------------------------------- 1 |  2 | 19 | 20 | 21 | 22 | 23 | 3dp 24 | 8dp 25 | 5dp 26 | 1dp 27 | 28 | 29 | 90dp 30 | 64dp 31 | 17sp 32 | 15sp 33 | 34 | 20dp 35 | 36 | 11sp 37 | 3dp 38 | 39 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/values/Items.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 0.65 5 | 6 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/values/Strings.xml: -------------------------------------------------------------------------------- 1 |  2 | 19 | 20 | 21 | Hello World, Click Me! 22 | SwipeListView 23 | 24 | SwipeListView Demo 25 | Open 26 | Google Play 27 | Uninstall 28 | 29 | Can\'t open this application 30 | Settings 31 | Swipe Mode 32 | Left 33 | Right 34 | Both 35 | Left Action 36 | Reveal 37 | Dismiss 38 | Choice 39 | Right Action 40 | Right Offset (%1$s dp) 41 | Left Offset (%1$s dp) 42 | dp 43 | Animation Time (Default: 0) 44 | Milliseconds 45 | Open On Long Press 46 | 47 | About 48 | This is just a simple demo for the Open Source SwipeListView Android Library by 47 Degrees. Find all source, documentation and packaged downloads at GitHub. Cheers! 49 | Ok 50 | 51 | Visit 47deg 52 | Go to GitHub 53 | 54 | Don\'t show this message again 55 | Others 56 | 57 | Loading 58 | 59 | New! 60 | Discard 61 | 62 | 63 | -------------------------------------------------------------------------------- /SwipeListViewSample/Resources/values/Styles.xml: -------------------------------------------------------------------------------- 1 |  2 | 19 | 20 | 21 | 22 | 23 | 24 | 31 | 32 | 38 | 39 | 45 | 46 | 54 | 55 | 60 | 61 | 64 | 65 | 66 | 67 | 72 | 73 | 77 | 78 | 83 | 84 | 89 | 90 | 97 | 98 | -------------------------------------------------------------------------------- /SwipeListViewSample/SwipeListViewSample.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 7 | {62C5EDE6-0F05-4A3D-A414-CF4224AA25B7} 8 | Library 9 | SwipeListViewSample 10 | Assets 11 | Resources 12 | Resource 13 | Resources\Resource.designer.cs 14 | True 15 | True 16 | SwipeListView 17 | v5.0 18 | Properties\AndroidManifest.xml 19 | 2.0.0 20 | 21 | 22 | true 23 | full 24 | false 25 | bin\Debug 26 | DEBUG; 27 | prompt 28 | 4 29 | None 30 | false 31 | True 32 | 33 | 34 | full 35 | true 36 | bin\Release 37 | prompt 38 | 4 39 | false 40 | false 41 | armeabi;armeabi-v7a;x86 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | ..\packages\Xamarin.Android.Support.v4.21.0.3.0\lib\MonoAndroid10\Xamarin.Android.Support.v4.dll 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 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 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | {91AA220C-F477-4738-8872-3AF5384650E8} 105 | FortySevenDeg.SwipeListView 106 | 107 | 108 | 109 | 110 | 21.0.3.0 111 | False 112 | 113 | 114 | -------------------------------------------------------------------------------- /SwipeListViewSample/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | --------------------------------------------------------------------------------