All Projects → nekocode → Dividerdrawable

nekocode / Dividerdrawable

Licence: apache-2.0
Help to layout and draw dividers on android views.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Dividerdrawable

Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+710.13%)
Mutual labels:  widget
Dragpointview
A draggable PointView for Android.
Stars: ✭ 401 (-13.58%)
Mutual labels:  widget
Styled widget
Simplifying widget style in Flutter.
Stars: ✭ 424 (-8.62%)
Mutual labels:  widget
Direct Select Flutter
DirectSelect is a selection widget with an ethereal, full-screen modal popup displaying the available choices when the widget is interact with. https://dribbble.com/shots/3876250-DirectSelect-Dropdown-ux
Stars: ✭ 360 (-22.41%)
Mutual labels:  widget
Sofi
an OS agnostic UI module for Python
Stars: ✭ 378 (-18.53%)
Mutual labels:  widget
Scriptable
scriptable widget
Stars: ✭ 405 (-12.72%)
Mutual labels:  widget
Flutter oktoast
a pure flutter toast library
Stars: ✭ 338 (-27.16%)
Mutual labels:  widget
Lottie Flutter
Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
Stars: ✭ 444 (-4.31%)
Mutual labels:  widget
Flutter badges
A flutter package for creating badges.
Stars: ✭ 391 (-15.73%)
Mutual labels:  widget
Qt Advanced Docking System
Advanced Docking System for Qt
Stars: ✭ 422 (-9.05%)
Mutual labels:  widget
Flutter Settings Ui
Create native settings for Flutter app in a minutes.
Stars: ✭ 363 (-21.77%)
Mutual labels:  widget
Functional widget
A code generator to write widgets as function without loosing the benefits of classes.
Stars: ✭ 374 (-19.4%)
Mutual labels:  widget
Githubcontributionsios
Show off your GitHub contributions from your lock screen 📱
Stars: ✭ 410 (-11.64%)
Mutual labels:  widget
Flutter radial menu
A simple animated radial menu widget for Flutter.
Stars: ✭ 359 (-22.63%)
Mutual labels:  widget
Avatarview
A circular Image View with a lot of perks. Including progress animation and highlight state with borders and gradient color.
Stars: ✭ 429 (-7.54%)
Mutual labels:  widget
Stacklayoutmanager
customized layoutmanager,let item pile up like stackview/类似最美有物卡片堆叠效果
Stars: ✭ 343 (-26.08%)
Mutual labels:  widget
Tabulator
Interactive Tables and Data Grids for JavaScript
Stars: ✭ 4,329 (+832.97%)
Mutual labels:  widget
Flutter easyloading
✨A clean and lightweight loading/toast widget for Flutter, easy to use without context, support iOS、Android and Web
Stars: ✭ 455 (-1.94%)
Mutual labels:  widget
Sliding Panel
Android sliding panel that is part of the view hierarchy, not above it.
Stars: ✭ 433 (-6.68%)
Mutual labels:  widget
Projectx
所有个人开源项目合集,便于管理及维护。
Stars: ✭ 417 (-10.13%)
Mutual labels:  widget

DividerDrawable

Apache 2.0 License Release

This library can help you easily layout and draw dividers on existing views. For better performance, don't create new views for drawing dividers anymore, use drawable instead.

Install

repositories {
    maven { url "https://jitpack.io" }
}
dependencies {
    compile 'com.github.nekocode:DividerDrawable:{lastest-version}'
}

Usage

Obtain a new DividerDrawable instance. And you can set the color and stroke witdh of the divider.

final DividerDrawable dividerDrawable = new DividerDrawable();
dividerDrawable.setStrokeWidth(10)
        .setColor(0xFFFFFFFF)

Similar to the view layout, the DividerDrawable also has a layout that can help draw divider to the relative position of the container(view/drawable/canvas).

dividerDrawable.getLayout()
        .setOrientation(DividerLayout.ORIENTATION_VERTICAL)
        .setAlign(DividerLayout.ALIGN_PARENT_BOTTOM)
        .setCenter(DividerLayout.CENTER_HORIZONTAL)
        .setMarginBottomDp(20);

You can use DividerUtils to easily combine the divider drawable to your existing backgroud drawable.

DividerUtils.addDividersTo(textView, dividerDrawable);

If you changed the divider's layout params, don't forget to notify the changes.

dividerDrawable.notifyLayoutChanged();

Screenshot

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].