The Cult will provide a new layout for your Toolbar. This allow you to use with a custom SearchView with animation and more.
This library should work on API 14.
You can use this library like a Toolbar, you just need to do the following:
-
- Add ''CultView'' view to your root layout and add a reference for your layout, look like:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/blue">
<com.github.ppamorim.cult.CultView
android:id="@+id/cult_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:toolbar_height="64dp"
app:content_view="@layout/layout_base"/>
</FrameLayout>
- This library is under development yet, use at your own risk.
This library use appcompat-v7:22.1.1
and dmytrodanylyk.shadow-layout
.
But why not to add in MavenCentral? Because it is so much bureaucratic.
JitPack is there and is the future!
Into your build.gradle:
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
compile 'com.github.ppamorim:cult:0.1.5'
}
- Fix the bug on DragViewHelper class that not allow a drag possibility the second content.
- Pedro Paulo de Amorim - pp.amorim@hotmail.com
Copyright 2015 Pedro Paulo de Amorim
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.