PercentBarView


Source link: https://github.com/aykuttasil/PercentBarView

PercentBar

Show result in Percent Bar with animation.

How to Use



  List<BarImageModel> mList = new ArrayList<>();

mList.add(new BarImageModel("https://s-media-cache-ak0.pinimg.com/564x/2b/74/04/2b74046c2e2e488fe1f2be60680671dd.jpg", "Abc", PercentBarView.BarField.LEFT));

mList.add(new BarImageModel("https://s-media-cache-ak0.pinimg.com/564x/65/01/b5/6501b5ae42a0c1aa863b1ae33a746ce2.jpg", "Def", PercentBarView.BarField.RIGHT));

mList.add(new BarImageModel("https://s-media-cache-ak0.pinimg.com/564x/5a/e9/50/5ae9501fc3b49810db7901873f77d6f7.jpg", "Lorem", PercentBarView.BarField.RIGHT));

mList.add(new BarImageModel("https://s-media-cache-ak0.pinimg.com/564x/9d/1c/86/9d1c861252a4d0067def3f567467b175.jpg", "Qwerty", PercentBarView.BarField.LEFT));

mList.add(new BarImageModel("https://s-media-cache-ak0.pinimg.com/564x/5e/bd/17/5ebd1769bf115773ad83803b29ea4bac.jpg", "WWW", PercentBarView.BarField.LEFT));

mList.add(new BarImageModel("https://s-media-cache-ak0.pinimg.com/564x/67/51/c3/6751c3d814fdda7db7e4844c3007db7c.jpg", "Aykut", PercentBarView.BarField.LEFT));

View alphaView = findViewById(R.id.ImageViewSoruImage);

percentBarView = (PercentBarView) findViewById(R.id.PercentBarView);

percentBarView.addAlphaView(alphaView);

percentBarView.setRightBarValue(70);

percentBarView.setLeftBarValue(30);

percentBarView.setImages(mList);

percentBarView.setImagesListTitle("X List");

percentBarView.setRightBarColor(Color.MAGENTA);

and



 <RelativeLayout

android:layout_width="match_parent"

android:layout_height="match_parent">

 <com.aykuttasil.percentbarapp.util.AutoFitTextView

 android:layout_width="match_parent"

 android:layout_height="match_parent"

 android:ellipsize="none"

 android:gravity="center"

 android:maxLines="5"

 android:padding="5dp"

 android:text="X"

 android:textSize="100sp" />

 <com.aykuttasil.percentbar.PercentBarView

 android:id="@+id/PercentBarView"

 android:layout_width="match_parent"

 android:layout_height="match_parent"

 android:layout_alignParentBottom="true"

 android:layout_centerHorizontal="true"

 custom:barLeftColor="@color/colorAccent"

 custom:barRightColor="@color/colorPrimary" />

</RelativeLayout>

All Feature



  View alphaView = findViewById(R.id.ImageViewSoruImage);

PercentBarView percentBarView = (PercentBarView) findViewById(R.id.PercentBarView);

percentBarView.setRightBarValue(70);

percentBarView.setLeftBarValue(1);

percentBarView.setImages(mList);

percentBarView.setImagesListTitle("X List");

percentBarView.setImageListItemSize(50)

percentBarView.setLeftBarColor(Color.GREEN);

percentBarView.setRightBarColor(Color.MAGENTA);

 percentBarView.addAlphaView(alphaView);

percentBarView.setAlphaViewValue(0.5f);
 // alpha value

percentBarView.setAnimAlphaViewDuration(3000);

percentBarView.setAnimBarDuration(2000);

percentBarView.setLeftBarWidth(60);

percentBarView.setRightBarWidth(40);

percentBarView.setAutoShow(true);
 // show bar when start app 

Installation

Gradle

Add it as a dependency in your app's build.gradle file

compile 'com.aykuttasil:percentbar:3.0.3' 

License

Copyright 2016 aykuttasil - Aykut Asil  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. 

Resources

MicroPinner is a lightweight dialog-only application, that turns your statusbar into a pingboard. (You can basically create your own notifications)

You can customize the notifications title and content, as well as its priority and visibility (Works on Android 5+ only).

Simple, single class wrapper to get device information from an android device.

This library provides an easy way to access all the device information without having to deal with all the boilerplate stuff going on inside.

Library also provides option to ask permissions for Marshmellow devices!

Design Patterns implemented in Kotlin.

  • Behavioral
  • Creational
  • Structural

RatingRequest library is a simple android dialog for request rating and review.

The library will help you to load image with progressbar from net easy. It supports fresco, glide, picasso, uil and others.

SquareMenu is a custom Floating Action Button with a different shape from traditional FABs and with three sub menu buttons.

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