rakshakhegde / Diffre

Neon Progress indicator useful for event progress like views. Proof of concept.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BuddyBuild

Diffre

pronounced - Differ

Diffre is a sample Android application that shows how to change text color based on background.

This sample application exposes two possible implementations:

  • A Path-based implementation that requires API level 19
  • A Region-based implementation that requires API level 1

Heavily influenced from Romain Guy's Medium article

demo gif

demo gif

This project was built because of this Stack OverFlow question

Check out this other library I wrote: LastPagerAdapter

Limitations

  • Even though Region API works from API 1+, many devices I've encountered don't render it unless layerType="software" is specified. So this effectively makes Region API useful only from API 11.

Contact

Email | Twitter

License

Copyright 2016 Rakshak Hegde

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Neon Progress indicator useful for event progress like views. Proof of concept.


Languages

Language:Java 100.0%