Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wcoder/androidaboutpage
Port of https://github.com/medyo/android-about-page
https://github.com/wcoder/androidaboutpage
android android-library nuget porting-to-xamarin xamarin-android
Last synced: 21 days ago
JSON representation
Port of https://github.com/medyo/android-about-page
- Host: GitHub
- URL: https://github.com/wcoder/androidaboutpage
- Owner: wcoder
- License: mit
- Created: 2016-04-27T10:35:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T19:57:11.000Z (almost 7 years ago)
- Last Synced: 2024-10-04T15:31:28.277Z (about 1 month ago)
- Topics: android, android-library, nuget, porting-to-xamarin, xamarin-android
- Language: C#
- Homepage:
- Size: 205 KB
- Stars: 15
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AndroidAboutPage ![version](http://img.shields.io/badge/original-v1.2.2-brightgreen.svg?style=flat) [![NuGet Badge](https://buildstats.info/nuget/AndroidAboutPage)](https://www.nuget.org/packages/AndroidAboutPage/)
Port of [android-about-page](https://github.com/medyo/android-about-page) for Xamarin.Android
---
Create an awesome About Page for your Android App in 2 minutes
![Android About Page Cover](https://raw.githubusercontent.com/medyo/android-about-page/master/resources/cover.png)
This library allows to generate beautiful About Pages with less effort, it's fully customizable and supports opening specific intent
```csharp
View aboutPage = new AboutPage(this)
.IsRtl(false)
.SetImage(Resource.Drawable.dummy_image)
.AddItem(versionElement)
.AddItem(adsElement)
.AddGroup("Connect with us")
.AddEmail("[email protected]")
.AddWebsite("http://wcoder.github.io/")
.AddFacebook("the.medy")
.AddTwitter("medyo80")
.AddYoutube("UCdPQtdWIsg7_pi4mrRu46vA")
.AddPlayStore("com.ideashower.readitlater.pro")
.AddGitHub("medyo")
.AddInstagram("medyo80")
.Create();
```## Setup
Grab the latest version from NuGet
> Install-Package AndroidAboutPage
## Dependencies
* Xamarin.Android.Support.v7.AppCompat
## Usage
### 1. Add Description```csharp
SetDescription(string)
```### 2. Add Image
```csharp
SetImage(int)
```### 3. Add predefined Social network
The library has already some predefined social networks like :
* Youtube
* PlayStore```csharp
AddFacebook(string PageID)
AddTwitter(string AccountID)
AddYoutube(string AccountID)
AddPlayStore(string PackageName)
AddInstagram(string AccountID)
AddGitHub(string AccountID)
```### 4. Add Custom Element
For example `app version` :```csharp
Element versionElement = new Element();
versionElement.Title = "Version 6.2";
AddItem(versionElement)
```### 5. Available attributes for Element Class
| Function | Description |
| ------------- |:------------------|
| `string` Title | Set title of the element|
| `int` IconTint | Set color of the element|
| `int` IconDrawable | Set icon of the element|
| `string` Value | Set Element value like Facebook ID|
| `Intent` Intent | Set an intent to be called on `OnClick` |
| `GravityFlags` Gravity | Set a unique tag value to the element|
| `Action` ClickHandler | If `intent` isn't suitable for you need, implement your custom behaviour by overriding the click event |## Sample Project
[sample](https://github.com/wcoder/AndroidAboutPage/tree/master/samples)## Translations
The library does supports the following languages :* English (default)
* German (by [vanniktech](https://github.com/vanniktech))
* Italian (by [greenaddress](https://github.com/greenaddress))
* Croatian (by [skmlcd](https://github.com/skmlcd))
* Arabic (by [zecharyah](https://github.com/zecharyah))
* Slovenian (by [skmlcd](https://github.com/skmlcd))
* Ukrainian (by [NumezmaT](https://github.com/NumezmaT))
* Russian (by [NumezmaT](https://github.com/NumezmaT))
* Romanian (by [Vally79](https://github.com/Vally79))
* Portuguese Brazil (by [rbaprado](https://github.com/rbaprado))
* French (by [medyo](https://github.com/medyo))
* Simplified Chinese (by [whiskeyfei](https://github.com/whiskeyfei))
* Spanish (by [danramirez](https://github.com/danramirez))
* Japanese (by [chibatching](https://github.com/chibatching))
* Turkish (by [tekseker](https://github.com/tekseker))
* Catalan (by [unxavi](https://github.com/unxavi))
* Czech (by [semanticer](https://github.com/semanticer))
* Hungarian (by [jbarat](https://github.com/jbarat))
* Korean (by [Alfex4936](https://github.com/Alfex4936))
* Swedish (by [Krillsson](https://github.com/Krillsson))
* Polish (by [karmil32](https://github.com/karmil32))
* Persian (by [mortezasun](https://github.com/mortezasun))
* Traditional Chinese (by [ppcrong](https://github.com/ppcrong))
* Serbian (by [ljmocic](https://github.com/ljmocic))
* Greek (by [jvoyatz](https://github.com/jvoyatz))
* Indian (by [kartikarora](https://github.com/kartikarora))Please make a Pull request to add a new language.
## License
```
The MIT License (MIT)
Copyright (c) 2016 Mehdi Sakout, Yauheni PakalaPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```