Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Dan629pl/nordan-simply-page-android

Library for quick and convenient creation of activities such as "About Us" or "Settings". With its help you can easily add references to your other activities and sociali using ready-made patterns, but you can easily create your own positions using transparent Api. Library written using material components.
https://github.com/Dan629pl/nordan-simply-page-android

android android-library android-ui library material material-design

Last synced: 5 days ago
JSON representation

Library for quick and convenient creation of activities such as "About Us" or "Settings". With its help you can easily add references to your other activities and sociali using ready-made patterns, but you can easily create your own positions using transparent Api. Library written using material components.

Awesome Lists containing this project

README

        

# Nordan Simply Page
[![platform](https://img.shields.io/badge/platform-Android-yellow.svg)](https://www.android.com)
[![API](https://img.shields.io/badge/API-24%2B-brightgreen.svg?style=plastic)](https://android-arsenal.com/api?level=24)
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0.html)

## Dependency

Add this to your module's `build.gradle` file:

```gradle
dependencies {
...
implementation 'com.github.Dan629pl:nordan-simply-page-android:1.2.5'
}
```

Nordan Simply Pages

About Us Page Style

```java
...
ConstraintLayout simplyPage = new NordanSimplyPage(this)
.addImageItem(R.drawable.nordan_logo)
.addDescriptionItem(R.string.lorem_ipsum)
.addSeparator()
.addGroup("Contact", R.color.gray_font_color)
.addPhone("123456789", "Call to me")
.addEmail("email address", "Write me an email")
.addSms("123456789", "Send message to me", "Sms message")
.addGroup("Check my socials", R.color.gray_font_color)
.addFacebook("facebookId")
.addInstagram("instagramId")
.addGithub("githubId")
.addGooglePlayStore("com.google.android.googlequicksearchbox")
.addYoutube("channelId")
.addWebsite("https://www.google.com", "Website")
.addSkype("profileId")
.addLinkedIn("daniel-owczarczyk-8b89a6150")
.addTwitter("profileId")
.addGroup(R.mipmap.ic_launcher_round, "Other groups (with left side image)")
.addMinimalItem(BaseElement.builder().title("Minimal item (only text view)").build())
.addEmptyItem()
.addMinimalItem(
BaseElement.builder()
.title("Version " + BuildConfig.VERSION_NAME)
.gravity(Gravity.CENTER)
.build())
.addCopyRightsItem()
.create();
setContentView(simplyPage);
...
```
## Screenshots

Settings Page Style

```java
...
View settingPage = new NordanSimplyPage(this)
.addImageItem(R.drawable.nordan_logo, 300, 75)
.addGroup(getString(R.string.account_group), R.drawable.account_icon, R.color.gray_font_color)
.addAccountItem(createAccountElement())
.addItem(createAccountConfirmedElement())
.addMinimalItem(createSignOutElement())
.addEmptyItem(30)
.addGroup(R.drawable.settings_app_icon, "Application")
.addSwitchItem(createThemeSwitcherElement())
.addItem(createTimeRefreshElement())
.addSingleRadioChoiceItem(createSingleChoiceElement())
.addCheckBoxItem(createCheckBoxElement())
.addCheckBoxItem(createCheckBoxExtendableElement())
.addSeekBarItem(createSeekBarElement())
.addEditTextItem(createEditTextElement())
.addEmptyItem(200)
.create();
setContentView(settingPage);
...
```
## Screenshots

## Donation
If this library help you reduce time to develop, you can buy me a coffee! :)

Buy Me A Coffee

## License

* [Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)

```
Copyright 2020 Daniel Owczarczyk

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.