OfficeAbout

Additional

Language
Java
Version
1.0.6 (Feb 14, 2021)
Created
Sep 27, 2019
Updated
Feb 14, 2021
Owner
Fayaz Bin Salam (p32929)
Contributor
Fayaz Bin Salam (p32929)
1
Activity
Badge
Generate
Download
Source code
APK file

Announcement

MaterialOfficeAbout

A simple about screen library for Android for a Team of people

Share

Sharing with your friends is just one click away from here

Support

If you like my works and want to support me/my works, feel free to support or donate. My payment details can be found here: https://p32929.github.io/SendMoney2Me/

Screenshot

Installation

Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

Add the dependency

dependencies {
         implementation 'com.github.p32929:MaterialOfficeAbout:1.0.6'
}

How to use:

1. Initialize:

To initialize you can use new OfficeAboutHelper(context, jsonUrl) like this:

OfficeAboutHelper officeAboutHelper = new OfficeAboutHelper(this, "https://raw.githubusercontent.com/p32929/SomeHowTosAndTexts/master/Office/OfficeInfoMaterial.json");

2. Show about activity:

You can show the about activity in 4 ways.

  1. officeAboutHelper.showAboutActivity(); // It will show a toolbar by default
  2. officeAboutHelper.showAboutActivity(boolean showToolbar);
  3. officeAboutHelper.showAboutActivity(boolean showToolbar, LoadListener listener);
  4. officeAboutHelper.showAboutActivity(LoadListener listener); // It will show a toolbar by default
  • Tip: If you want to add some more views dynamically, you might wanna use the LoadListener listener and add the views in onLoad(LinearLayout linearLayoutDummy) callback.
  • Tip: If you want to shuffle the members list but keep someone at the top, you can use shuffleAndBringSomeoneTopByName() or shuffleAndBringSomeoneTopByDesignation() methods For more info, check out the app in the repository

And lastly, if you are using Pro Guard add this line(Otherwise, the app will crash):

-keep public class org.richit.materialofficeaboutlib.Models.** { *; }

LICENSE

MIT License

Copyright (c) 2019 Fayaz Bin Salam

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.