All Projects β†’ andrefrsousa β†’ SuperToolbar

andrefrsousa / SuperToolbar

Licence: MIT license
Android native Toolbar on steroids πŸ’ͺ

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to SuperToolbar

Biometric-Authentication-Android
A sample implementation of AndroidX biometrics API using Kotlin. Authenticate using biometrics or PIN/Password if biometrics isn't available on device. Fully implemented in Jetpack compose using Material 3 dynamic theming and also has a separate implementation in xml with MDC 3.
Stars: ✭ 29 (-44.23%)
Mutual labels:  android-development, android-ui, android-app
PaymentCardView
Custom Credit/Debit card view
Stars: ✭ 62 (+19.23%)
Mutual labels:  android-development, android-ui, android-app
Cameraxdemo
A sample camera app with CameraX API from Android Jetpack
Stars: ✭ 112 (+115.38%)
Mutual labels:  android-development, android-ui, android-app
android-custom-view
No description or website provided.
Stars: ✭ 15 (-71.15%)
Mutual labels:  android-development, android-ui, android-app
media-picker
Easy customizable picker for all your needs in Android application
Stars: ✭ 167 (+221.15%)
Mutual labels:  android-development, android-ui, android-app
Datingapp
Dating UI kit is used for online meet up with girls and boys . The screen contains more than 30 icons and most of all required elements required to design an application like this. The XML and JAVA files contains comments at each and every point for easy understanding. Everything was made with a detail oriented style and followed by today's web trends. Clean coded & Layers are well-organized, carefully named, and grouped.
Stars: ✭ 97 (+86.54%)
Mutual labels:  android-development, android-ui, android-app
Ibackdrop
A library to simply use Backdrop in your project (make it easy). Read more ->
Stars: ✭ 137 (+163.46%)
Mutual labels:  android-development, android-ui, android-app
Android Customtoast
Easy to use Custom Toast Library for Android
Stars: ✭ 24 (-53.85%)
Mutual labels:  android-development, android-ui, android-app
Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (+321.15%)
Mutual labels:  android-development, android-ui, android-app
Awesomedialog
A Beautiful Dialog Library for Kotlin Android
Stars: ✭ 163 (+213.46%)
Mutual labels:  android-development, android-ui, android-app
Edxposedmanager
Companion Android application for EdXposed
Stars: ✭ 1,172 (+2153.85%)
Mutual labels:  android-development, android-ui, android-app
Whatsapp Android App
This is sample code for layout for chatting app like Whatsapp.
Stars: ✭ 32 (-38.46%)
Mutual labels:  toolbar, android-development, android-ui
Phonenumberverificationui Android
Check out the new style for mobile number verification πŸ˜‰πŸ˜‰πŸ˜ŠπŸ˜Š
Stars: ✭ 52 (+0%)
Mutual labels:  android-development, android-ui, android-app
Mediapicker
Easy customizable picker for all your needs in Android application
Stars: ✭ 105 (+101.92%)
Mutual labels:  android-development, android-ui, android-app
Androidkex
Extensions for Kotlin. Use the power of Kotlin to make your code smaller and beautiful.
Stars: ✭ 35 (-32.69%)
Mutual labels:  android-development, android-ui, android-app
Android Inappbilling
A sample which uses Google's Play Billing Library and it does InApp Purchases and Subscriptions.
Stars: ✭ 114 (+119.23%)
Mutual labels:  android-development, android-ui, android-app
Music Player Go
🎢🎼 Very slim music player πŸ‘¨β€πŸŽ€ 100% made in Italy πŸ•πŸŒ³πŸŒžπŸπŸŒ„
Stars: ✭ 654 (+1157.69%)
Mutual labels:  android-development, android-ui, android-app
Motiontoast
🌈 A Beautiful Motion Toast Library for Kotlin Android
Stars: ✭ 767 (+1375%)
Mutual labels:  android-development, android-ui, android-app
Notzz App
πŸ“ A Simple Note-Taking App built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, State Flow, Hilt-Dependency Injection, Jetpack DataStore, Architecture Components, MVVM, Room, Material Design Components).
Stars: ✭ 158 (+203.85%)
Mutual labels:  android-development, android-ui, android-app
Modern Android Development
Modern Android Development tools & key points
Stars: ✭ 219 (+321.15%)
Mutual labels:  android-development, android-ui, android-app

Super Toolbar

Android native toolbar on steroids πŸ’ͺ

Build Status jitpack api

Summary

  • Animate the height of the toolbar as you scroll
  • Center the toolbar title horizontally
  • Use light title font

Download

This library is available in jitpack, so to use it you need to add the above statement to your root build.gradle:

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

Add the dependency:

dependencies {
    implementation 'com.github.andrefrsousa:SuperToolbar:1.3.0'
}

Sample Project

We have a sample project in Kotlin that demonstrates the use of the library here.

Use

It is recommended that you review the sample project to get a full understanding of all the features offered by the library. To display the height of the toolbar, you only need to call:

fun setElevationVisibility(show: Boolean)

If you want to have the same effect as the one used in Google Messages, for example, add a scroll listener to your RecyclerView or ScrollView. Like this:

myRecyclerView.addOnScrollListener(object : RecyclerView.OnScrollListener() {
    override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) {
        super.onScrolled(recyclerView, dx, dy)
        toolbar.setElevationVisibility(recyclerView.canScrollVertically(-1))
    }
})

Adjustments

You can costumize your toolbar with the following attributes:

// The duration of the elevation animation. By default it is 250 miliseconds.
<attr name="superToolbar_animationDuration" format="integer"/>

// If you want to show the toolbar elevation when created. By default is false.
<attr name="superToolbar_showElevationAtStart" format="boolean"/>

// Center the toolbar title. Is false by default.
<attr name="superToolbar_centerTitle" format="boolean"/>

// Use a light font as the title of the toolbar. The default value is false.
<attr name="superToolbar_useLightFont" format="boolean"/>

License

Copyright (c) 2018 AndrΓ© Sousa  

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].