Skip to content
Library that allow to put "hat" on TextView. Inspired by Telegram appbar title with Santa Claus hat πŸŽ…πŸ»
Kotlin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
app
gradle/wrapper
hat-library support vectorDrawables.useSupportLibrary = true Jan 4, 2020
screenshots
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

hat-view

API License

What?

Library that allow to put "hat" on TextView. Inspired by Telegram appbar title with Santa Claus hat πŸŽ…πŸ»

Usage

See app directory

From XML

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

Download the latest release or grab via Gradle:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
dependencies {
    	implementation 'com.github.lndmflngs:hat-view:1.0.0'
}

Issue Tracking

Found a bug? Have an idea for an improvement? Feel free to add an issue

License

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.
You can’t perform that action at this time.