All Projects → underwindfall → RotateLabelView

underwindfall / RotateLabelView

Licence: Apache-2.0 license
This is library to help you to add a sticky rotation label into your view.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to RotateLabelView

awesome-android-libraries
😎 A curated list of awesome Android libraries
Stars: ✭ 135 (+285.71%)
Mutual labels:  android-ui
edge-to-edge-decorator
Edge to edge decorator - is a utility class that is responsible for coloring the statusBar and navigationBar to maintain edge to edge (e2e) mode.
Stars: ✭ 47 (+34.29%)
Mutual labels:  android-ui
info-bar-compose
An Android Jetpack Compose library for displaying on-screen messages. (simplified Snackbar alternative)
Stars: ✭ 80 (+128.57%)
Mutual labels:  android-ui
random-users-details
Random Users details in flutter from randomusers api
Stars: ✭ 14 (-60%)
Mutual labels:  android-ui
bottomsheets
Material Bottom Sheets library for Android
Stars: ✭ 76 (+117.14%)
Mutual labels:  android-ui
VideoPreLoading
Demo for video PreLoading/ PreCaching using ExoPlayer 2.13.3 in Android.
Stars: ✭ 61 (+74.29%)
Mutual labels:  android-ui
CCView
💳 Ready made credit card creation library. 💳
Stars: ✭ 42 (+20%)
Mutual labels:  android-ui
VectorIntegerView
Animated integer on Android. https://habr.com/post/420919/
Stars: ✭ 17 (-51.43%)
Mutual labels:  android-ui
PageStepIndicator
Step indicator with titles/labels and tons of customizations.
Stars: ✭ 27 (-22.86%)
Mutual labels:  android-ui
AndroidTabsExample
An Example Android Application with Tabs
Stars: ✭ 17 (-51.43%)
Mutual labels:  android-ui
TypedTextView
Custom implementation of Android's TextView simulating a keyboard/type-writer.
Stars: ✭ 57 (+62.86%)
Mutual labels:  android-ui
QuestionnaireView
A simple view to be able to display question and various field (Radio, EditText, checkbox ) for answers
Stars: ✭ 34 (-2.86%)
Mutual labels:  android-ui
XCPullToLoadMoreListView
XCPullToLoadMoreListView-下拉加载更多ListView控件(仿QQ、微信聊天对话列表控件)
Stars: ✭ 24 (-31.43%)
Mutual labels:  android-ui
android-cuberto-dialog-design
This is an implementation inspired by beautiful design by Cuberto on his Dribble page, which can be found here https://dribbble.com/shots/3206606-Landing-page-wip
Stars: ✭ 15 (-57.14%)
Mutual labels:  android-ui
CustomToastLibrary
Android Custom Toast
Stars: ✭ 26 (-25.71%)
Mutual labels:  android-ui
Circular-Layout
A layout that arranges other views in a circle.
Stars: ✭ 46 (+31.43%)
Mutual labels:  android-ui
SnappCompose
A clone of Snapp using Jetpack Compose. Showcasing various usages of Google Maps Animations etc combined with Compose
Stars: ✭ 59 (+68.57%)
Mutual labels:  android-ui
XCArcProgressView
Android开口圆环比例进度View(高仿猎豹清理大师内存占用比例View)
Stars: ✭ 28 (-20%)
Mutual labels:  android-ui
FabDialog
🎈 Fab into Dialog Animation on Android
Stars: ✭ 36 (+2.86%)
Mutual labels:  android-ui
github-commit-browser
A blog companion sample project that demonstrates saving UI state after process death on Android utilizing the community established 3rd party libraries
Stars: ✭ 55 (+57.14%)
Mutual labels:  android-ui

RotateLabelView

This is library to help you to add a sticky rotation label into your view.

Import into your project

implementation 'com.qifan.rotateLabelView:rotateLabelView:1.0.0'

ScreenShots

Example Usage

 <com.qifan.library.RotateLabelView
        android:id="@+id/rotate_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@android:color/transparent"
        app:background_color="@color/colorAccent"
        app:label="Android"
        app:layout_constraintEnd_toEndOf="@id/image"
        app:layout_constraintTop_toTopOf="@id/image"
        app:text_color="@android:color/white"
        app:text_size="15sp" />

Custom Attributes

attr type default meaning
label string NONE label content text
text_color color android.R.color.white label color
background_color color android.R.color.black label background color
text_size dimension 30f label text size
rotation_angle integer 45 label rotation angle
type enum TOP_RIGHT label rotation position(TOP_RIGHT,TOP_LEFT,BOTTOM_RIGHT,BOTTOM_LEFT)

Available Setter Attrs Function

interface RotateLabelComponent {
    fun setLabel(text: Label)
    fun setLabel(@StringRes textRes: Int)
    fun setBackgroundColor(@ColorRes color: Int)
    fun setTextColor(@ColorRes color: Int)
    fun setTextSize(textSize: Float)
    fun setType(type: RotateLabelView.Type)
}

License

MIT License

Copyright (c) 2019 Qifan Yang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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].