<commit_before># HidingAppBarLayout

[![Twitter](https://img.shields.io/badge/twitter-SFCD-orange.svg)](https://twitter.com/sfcdteam?style=flat)

An AppBarLayout behavior that hides AppBar's first child

![Animation](preview.gif)

## Installation

Gradle:

Add repository to the root build.gradle:
```groovy
repositories {
    ...
    maven { url 'http://dl.bintray.com/asciidoctor/maven/' }
}
```

Add a dependency to your build.gradle:
```groovy
compile 'com.sfcd.hiding-appbarlayout:hidingappbar-behaviour:1.0.6'
```

## Usage

Just define "com.sfcd.hidingappbar.HidingAppBarLayoutBehavior" behaviour for your android.support.design.widget.AppBarLayout

```xml
<android.support.design.widget.AppBarLayout
    android:id="@+id/app_bar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:expanded="false"

    android:fitsSystemWindows="true"

    app:layout_behavior="com.sfcd.hidingappbar.HidingAppBarLayoutBehavior"

    android:theme="@style/AppTheme.AppBarOverlay">

    <!-- First child will be influenced of hiding behaviour -->
    <FrameLayout<commit_msg>Removed bintray repo description from readme file<commit_after># HidingAppBarLayout

[![Twitter](https://img.shields.io/badge/twitter-SFCD-orange.svg)](https://twitter.com/sfcdteam?style=flat)

An AppBarLayout behavior that hides AppBar's first child

![Animation](preview.gif)

## Installation

Gradle:

Add a jCenter dependency to your build.gradle:
```groovy
compile 'com.sfcd.hiding-appbarlayout:hidingappbar-behaviour:1.0.6'
```

## Usage

Just define "com.sfcd.hidingappbar.HidingAppBarLayoutBehavior" behaviour for your android.support.design.widget.AppBarLayout

```xml
<android.support.design.widget.AppBarLayout
    android:id="@+id/app_bar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:expanded="false"

    android:fitsSystemWindows="true"

    app:layout_behavior="com.sfcd.hidingappbar.HidingAppBarLayoutBehavior"

    android:theme="@style/AppTheme.AppBarOverlay">

    <!-- First child will be influenced of hiding behaviour -->
    <FrameLayout
{'fraction_non_alphanumeric': 0.12855787476280836, 'fraction_numerical': 0.0028462998102466793, 'mean_word_length': 5.333333333333333, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2383213', 'n_tokens_mistral': 719, 'n_tokens_neox': 670, 'n_words': 115}