TintLayout


Source link: https://github.com/GIGAMOLE/TintLayout

TintLayout

This library help you to achieve popular tint effect from view.

You can check the sample app here.

Download

You can download a .jar from GitHub's releases page.

Or use Gradle jCenter:

dependencies {

  repositories {

mavenCentral()

maven {

 url  'http://dl.bintray.com/gigamole/maven/'

}

  
}

  compile 'com.github.gigamole.tintlayout:library:+' 
}

Or Gradle Maven Central:

compile 'com.github.gigamole.tintlayout:library:1.0.2'

Or Maven:

<dependency>
  <groupId>com.github.gigamole.tintlayout</groupId>
  <artifactId>library</artifactId>
  <version>1.0.2</version>
  <type>aar</type> </dependency>

Android SDK Version

TintLayout requires a minimum SDK version of 11.

Sample

Parameters

You can set such parameters as:

  • colors:

    allows you to create shadow with transparent etc.

  • angle:

    allows you to set the angle of tint.

Tips

TintLayout must have child. Only one child.

The angle can only be positive and be in range from 0 to 360.

Init

Check out in code init:

final TintLayout tintLayout = (TintLayout) findViewById(R.id.tint_layout);
 tintLayout.setAngle(145);

And XML init:

<com.gigamole.tintlayout.lib.TintLayout
  android:id="@+id/tint_layout"
  android:layout_width="300dp"
  android:layout_height="300dp"
  android:layout_gravity="center"
  android:background="@drawable/circle"
  libs:colors="@array/tint_layout_colors">

<com.gigamole.tintlayout.AgencyTextView

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:layout_gravity="center"

android:gravity="center"

android:text="@string/tint_layout_title"

android:textColor="@color/white"

android:textSize="50sp"

libs:agencyFont="agency_bold" />  </com.gigamole.tintlayout.lib.TintLayout>

If you want to look at circular tint animation just remove comment block in sample from XML and MainActivity.

Getting Help

To report a specific problem or feature request, open a new issue on Github.

License

Apache 2.0 and MIT. See LICENSE file for details.

Author

Made in DevLight Mobile Agency

Created by Basil Miller - @gigamole

Resources

Load custom fonts easily just via layout parameters or styles. Uses static Typeface objects, load once - memory efficient. No more textView.setTypeface() calls!

Extends StatedFragment and save state in onSaveState(Bundle outState) and restore state in onRestoreState(Bundle savedInstanceState).

An Android Logger with a lot of options for debugging that helps a lot to developers. You can easily add logs everywhere in your APP and manage showing them by limit them by Codes or by their Class name. It also will show you that logs was called from which file and which line, you also can see which class and which line called your current method.

A color picker activity optimized for Android Wear. Handy for watch face settings.

This project aims to provide a simple and customizable pull to refresh implementation.

This project is an implementation of the User Profile Interface Animation.

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