Library that allow to put "hat" on TextView. Inspired by Telegram appbar title with Santa Claus hat π π»
See app
directory
The simplest way is to use HatTextView
like a normal TextView
<com.lockwood.hat.HatTextView
android:id="@+id/test"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Argh!"
app:hat="@drawable/ic_hat_pirate" />
Download the latest release or grab via Gradle:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.lndmflngs:hat-view:1.0.4'
}
Found a bug? Have an idea for an improvement? Feel free to add an issue
Copyright (C) 2020 Ivan Zinovyev (https://github.com/lndmflngs)
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.