RibbonLayout


Source link: https://github.com/battleent/android-RibbonLayout

RibbonViews

This is an android view library "RibbonViews" by Battle Entertainment

Download

Gradle

dependencies {

  compile 'com.github.battleent:RibbonViews:1.0.2 
}

Usage

RibbonLayout

<com.battleent.ribbonviews.RibbonLayout

  android:layout_width="132dp"

  android:layout_height="90dp"

  app:show_header="true" // default is true

  app:header_text="New"

  app:header_textSize="10"

  app:header_textColor="@android:color/white"

  app:header_ribbonRadius="6"

  app:header_ribbonColor="@color/colorPrimary"

  app:header_padding="5"

  app:show_bottom="true" // default is true

  app:bottom_text="Updated today"

  app:bottom_textSize="10"

  app:bottom_textColor="@android:color/white"

  app:bottom_ribbonColor="@color/pale_magenta_90"

  app:bottom_height="50"

  app:bottom_padding="11">

<ImageView

android:layout_width="132dp"

android:layout_height="wrap_content"

android:scaleType="fitXY"

android:src="@drawable/thumbnail0"/>

 </com.battleent.ribbonviews.RibbonLayout>

Attributes

Parameter Format Default Description
show_header Boolean true set header ribbon's visibility
header_text String null set header ribbon's text
header_textSize int 9 set header ribbin's textSize
header_textColor color Color.White set header ribbin's textColor
header_ribbonRadius int 10 set header ribbon's corner radius
header_ribbonColor color Color.White set header ribbin's colour
header_padding int 4 set header ribbon's paddings
show_bottom Boolean true set bottom ribbon's visibility
bottom_text String null set bottom ribbon's text
bottom_textSize int 10 set bottom ribbin's textSize
bottom_textColor color Color.White set bottom ribbin's textColor
bottom_height int -1 set bottom ribbin's height
bottom_padding int 3 set bottom ribbon's paddings

RibbonTag

<com.battleent.ribbonviews.RibbonTag

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="sale event"

android:layout_marginTop="3dp"

app:tag_ribbonRadius="5"

app:tag_padding_right="6dp"

app:tag_padding_left="6dp"

app:tag_ribbonColor="#cdda0b23"/>

RibbonTagListView

<com.battleent.ribbonviews.RibbonTagListView

android:id="@+id/ribbonTagListView"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginTop="3dp"

app:item_space="10"/>

Version Log

v1.0.2 - Updated RibbonTagListView

v1.0.1 - Updated RibbonTag

License

MIT License  Copyright (c) 2017 Battle Entertainment  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.

Resources

A tiny Android library makes very easier count animation of TextView.

Present your progress bars in arc mode with information and total control.

A customizable Android NumberPicker that is inspired from the Material Design Guidelines.

Android ParallaxViewPager.

Android SDK doesn't provide direct way to track open/close events from software keyboard. This small library does it for you.

MaskFormatter adds mask functionality to your EditText. It will prevent user from inserting not allowed signs, and format input as well.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes