nekocode / Dividerdrawable
Licence: apache-2.0
Help to layout and draw dividers on android views.
Stars: ✭ 464
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
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
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 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
DividerDrawable
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();
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].