All Projects → opacapp → Multiline Collapsingtoolbar

opacapp / Multiline Collapsingtoolbar

Licence: other
A modified CollapsingToolbarLayout that can deal with multiline titles

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Multiline Collapsingtoolbar

SimpleToolbar
Custom Android Toolbar
Stars: ✭ 22 (-97.13%)
Mutual labels:  toolbar
Swiftuix
Extensions and additions to the standard SwiftUI library.
Stars: ✭ 4,087 (+432.86%)
Mutual labels:  toolbar
Prophiler
PHP Profiler & Developer Toolbar (built for Phalcon)
Stars: ✭ 445 (-41.98%)
Mutual labels:  toolbar
NavigationHeader
Navigation Header library based on MotionLayout inspired by dribble menu design built with MotionLayout and ObjectAnimator.
Stars: ✭ 39 (-94.92%)
Mutual labels:  toolbar
developerbar
Developer Bar (inspired on Kohana Debug Toolbar) for Kohana 3+ PHP
Stars: ✭ 16 (-97.91%)
Mutual labels:  toolbar
Vxe Table
🐬 vxe-table vue 表格解决方案
Stars: ✭ 4,242 (+453.06%)
Mutual labels:  toolbar
SuperToolbar
Android native Toolbar on steroids 💪
Stars: ✭ 52 (-93.22%)
Mutual labels:  toolbar
Bubbletab
Put some bubble in your tabs and give your apps a supa fresh style !
Stars: ✭ 537 (-29.99%)
Mutual labels:  toolbar
Ribbon
🎀 A simple cross-platform toolbar/custom input accessory view library for iOS & macOS.
Stars: ✭ 273 (-64.41%)
Mutual labels:  toolbar
Uiwidget
一个集成TabLayout、UIAlertDialog、UIActionSheetDialog、UIProgressDialog、TitleBarView(自带沉浸式标题栏)、CollapsingTitleBarLayout、RadiusView(圆角及状态背景设置View解放shape文件)、KeyboardHelper(软键盘控制及遮挡控制类)、StatusViewHelper(状态栏沉浸帮助类)、NavigationViewHelper(导航栏沉浸式帮助类)、AlphaViewHelper(View透明度控制帮助类) 等项目常用UI库
Stars: ✭ 400 (-47.85%)
Mutual labels:  toolbar
android-moving-toolbar
[Test Project] - Translate Toolbar using standard API and Android Support Library.
Stars: ✭ 36 (-95.31%)
Mutual labels:  toolbar
FatSidebar
Custom vertical button toolbar for macOS
Stars: ✭ 68 (-91.13%)
Mutual labels:  toolbar
Extended text
A powerful extended official text for Flutter, which supports Speical Text(Image,@somebody), Custom Background, Custom overFlow, Text Selection.
Stars: ✭ 345 (-55.02%)
Mutual labels:  toolbar
atom-toolbar-almighty
Atom editor's missing toolbar
Stars: ✭ 21 (-97.26%)
Mutual labels:  toolbar
Immersivedetailsample
A sample application show how to realize immersive parallax effect header like Google Play Store
Stars: ✭ 457 (-40.42%)
Mutual labels:  toolbar
symfony-debug-toolbar-git
Get the latest Git commit information into Symfony debug toolbar
Stars: ✭ 30 (-96.09%)
Mutual labels:  toolbar
Waterfall Toolbar
Stars: ✭ 282 (-63.23%)
Mutual labels:  toolbar
Androidnavigation
A library managing navigation, nested Fragment, StatusBar, Toolbar for Android
Stars: ✭ 636 (-17.08%)
Mutual labels:  toolbar
Toolbar
Awesome autolayout Toolbar. Toolbar is a library for iOS. You can easily create chat InputBar.
Stars: ✭ 458 (-40.29%)
Mutual labels:  toolbar
Toolbarpanel
Toolbar that can be slided down to show a panel
Stars: ✭ 397 (-48.24%)
Mutual labels:  toolbar

multiline-collapsingtoolbar Download

multiline-collapsingtoolbar is a replacement for CollapsingToolbarLayout from the Android Design Support Library which can deal with multiline titles (with a customizable maximum number of lines) in the expanded state. When collapsing the toolbar, the lower lines of the title fade away to leave only the top line visible.

Information about compatibility with AndroidX

We are currently not planning to update this library for support of the Android Support Library version 28 or the new AndroidX libraries, as has been discussed in #62 and other places. Instead, we are trying to get our modifications merged into the official Material Components Android library. Please see the PR for more details.

Example

Here you can see the library in action in the included demo app:

Demo image

Installation

If you are using Gradle and the JCenter Maven Repository, installing the library is as simple as adding a new dependency statement.

dependencies {
    compile 'net.opacapp:multiline-collapsingtoolbar:27.1.1'
}

The current version 27.1.1 of the library is based on the code and tested with the Design Support Library version 27.1.1. We'll try to keep up to date with new support library versions as soon as possible, but please do not expect this library to run with support versions other than that.

Usage

The library's public API is nearly identical to the version from the support library, so you can use it as a drop-in replacement. We only added a maxLines attribute and corresponding getter and setter functions to the CollapsingToolbarLayout to make it possible to change the maximum number of lines, which is set to 3 by default.

As the Design Support Library, it should be compatible with API 14 (Android 4.0) and above.

XML layout example:

<android.support.design.widget.AppBarLayout
        android:layout_height="192dp"
        android:layout_width="match_parent">
    <net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:layout_scrollFlags="scroll|exitUntilCollapsed"
            app:maxLines="3">
        <android.support.v7.widget.Toolbar
                android:layout_height="?attr/actionBarSize"
                android:layout_width="match_parent"
                app:layout_collapseMode="pin"/>
    </net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>

You can find a simple demo application in the demo module.

Implementation details

Most of the code is copied from the original Support Library classes, the only changes (apart from the package name, imports and automatic code reformatting) are in the CollapsingTextHelper and CollapsingToolbarLayout classes. The changes there are marked with comments.

Contributing

This library is probably not complete and might contain bugs that only occur in constellations we did not yet test. Please do not hesitate to create an issue on GitHub for any problems that cross your way. Please understand that we cannot afford to spend time fixing problems that do not affect our products, but we'll be happy to merge pull requests if you or someone else is able to improve this library.

If you get stuck anywhere in the process, please do not hestitate to ask us anytime at [email protected].

Please note that we have a Code of Conduct in place that applies to all project-related communication.

Contributors

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