Skip to content

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.

Notifications You must be signed in to change notification settings

Dan629pl/nordan-simply-page-android

Repository files navigation

Nordan Simply Page

platform API License

Dependency

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

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

Nordan Simply Pages

About Us Page Style

        ...
    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

             	    ...
      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

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages