Skip to content

vitoravale/AndroidAboutPage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidAboutPage version NuGet

Port of android-about-page for Xamarin.Android


Create an awesome About Page for your Android App in 2 minutes

Android About Page Cover

This library allows to generate beautiful About Pages with less effort, it's fully customizable and supports opening specific intent

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://medyo.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

PM Install-Package AndroidAboutPage

Dependencies

  • Xamarin.Android.Support.v4
  • Xamarin.Android.Support.v7.AppCompat
  • Xamarin.Android.Support.Vector.Drawable
  • Xamarin.Android.Support.Animated.Vector.Drawable

Usage

1. Add Description

SetDescription(string)

2. Add Image

SetImage(int)

3. Add predefined Social network

The library has already some predefined social networks like :

  • Facebook
  • Twitter
  • Instagram
  • Youtube
  • PlayStore
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 :

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 Color | Set color of the element| | int Icon | Set icon of the element| | string Value | Set Element value like Facebook ID| | string Tag | Set a unique tag value to the element| | Intent Intent | Set an intent to be called on OnClick |

Sample Project

sample

License

The MIT License (MIT)
Copyright (c) 2016 Mehdi Sakout, Yauheni Pakala

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%