All Projects → JDevZone → FillProgressLayout

JDevZone / FillProgressLayout

Licence: MIT license
A simple and flexible Fillable Progress Layout written in Kotlin

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to FillProgressLayout

Bannerlayout
Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner
Stars: ✭ 92 (+19.48%)
Mutual labels:  view, layout
LinearProgressView
A simple linear progress view for iOS
Stars: ✭ 103 (+33.77%)
Mutual labels:  progressbar, progress-view
Arclayout
With Arc Layout explore new styles and approaches on material design
Stars: ✭ 1,662 (+2058.44%)
Mutual labels:  view, layout
Toothyprogress
A polyline determinated ProgressBar written in Kotlin
Stars: ✭ 56 (-27.27%)
Mutual labels:  view, progressbar
pulldownlayout
PullDownLayout is a small library that allows you to implement a view that can be dragged down your layout. PullDownLayout can also be used to implement Pull-To-Dismiss feature for your activities and fragments.
Stars: ✭ 16 (-79.22%)
Mutual labels:  view, layout
Kotlinanim
Create fluent animations in a kotlin way
Stars: ✭ 72 (-6.49%)
Mutual labels:  view, layout
Zzhorizontalprogressbar
水平进度条,支持渐变色和二级进度
Stars: ✭ 153 (+98.7%)
Mutual labels:  view, progressbar
Physicslayout
Android layout that simulates physics using JBox2D
Stars: ✭ 658 (+754.55%)
Mutual labels:  view, layout
Flexml
🚀基于Litho的Android高性能动态业务容器。
Stars: ✭ 225 (+192.21%)
Mutual labels:  view, layout
Android 3d Layout
Wow effect, transform your layout into 3D views
Stars: ✭ 199 (+158.44%)
Mutual labels:  view, layout
Readablebottombar
Yet another material bottom bar library for Android
Stars: ✭ 977 (+1168.83%)
Mutual labels:  view, layout
IJProgressView
A simple progress view written in Swift.
Stars: ✭ 70 (-9.09%)
Mutual labels:  progressbar, progress-view
Androidlibs
🔥正在成为史上最全分类 Android 开源大全~~~~(长期更新 Star 一下吧)
Stars: ✭ 7,148 (+9183.12%)
Mutual labels:  view, layout
Kvconstraintkit
An Impressive Auto Layout DSL for iOS, tvOS & OSX. & It is written in pure swift.
Stars: ✭ 91 (+18.18%)
Mutual labels:  view, layout
Ringprogressbar
A material design circle the progress bar.
Stars: ✭ 789 (+924.68%)
Mutual labels:  view, progressbar
Android Statefullayout
A custom Android ViewGroup to display different states of screen (CONTENT, PROGRESS, OFFLINE, EMPTY, etc.)
Stars: ✭ 140 (+81.82%)
Mutual labels:  view, layout
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+5292.21%)
Mutual labels:  view, layout
Longshadow
Add a long shadow on any Android View
Stars: ✭ 562 (+629.87%)
Mutual labels:  view, layout
Expansionpanel
Android - Expansion panels contain creation flows and allow lightweight editing of an element.
Stars: ✭ 1,984 (+2476.62%)
Mutual labels:  view, layout
ShadowDrawable
为View 和 ViewGroup 添加阴影效果--Android,Add shadow for single view or viewgroup layout.
Stars: ✭ 22 (-71.43%)
Mutual labels:  view, layout

FillProgressLayout

🔥A simple and flexible Fill Progress Layout written in Kotlin🔥



Netflix button animation using FillProgressLayout


GitHub license Android Arsenal GitHub code size in bytes

Support Library alternative is available here


Installation

  1. Add it in your root build.gradle at the end of repositories:
	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  1. Add the dependency in app gradle
	dependencies {
	        implementation 'com.github.JDevZone:FillProgressLayout:{latest_version}'
	}

Basic usage

As FillProgressLayout is direct child of LinearLayout you can replace LinearLayout with it as follows

<com.devzone.fillprogresslayout.FillProgressLayout
            android:id="@+id/fillL"
            android:layout_margin="30dp"
            app:fpl_backgroundColor="@color/colorRedTrans"
            app:fpl_progressColor="@color/colorGreenTrans"
            app:fpl_isRounded="false"
            app:fpl_progress="0"
            app:fpl_progressDuration="3000"
            app:fpl_progressDirection="left_to_right"
            app:fpl_shouldRestart="false"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
        <--childviews-->
    </com.devzone.fillprogresslayout.FillProgressLayout>

Alternatively

You can use FillProgressLayout as background for other layouts.

<RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
  
        <--as background for AppCompatTextView-->
        <com.devzone.fillprogresslayout.FillProgressLayout
                android:layout_alignBottom="@+id/tv"
                android:layout_alignParentTop="true"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"/>

        <androidx.appcompat.widget.AppCompatTextView
                android:id="@+id/tv"
                android:text="@string/app_name"
                android:gravity="center"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"/>
    </RelativeLayout>

Samples

Fill Direction Demo

Left To Right

Right To Left

Top To Bottom

Bottom To Top

Additional

Rounded Corners sample

Gradient Progress sample

Customisation

Here are the attributes you can specify through XML or related setters programatically:

  • fpl_backgroundColor - Set background color.
  • fpl_progressColor - Set progress color.
  • fpl_isRounded - Set true if you need rounded corners.
  • fpl_roundedCornerRadius - Set radius for round corners.
  • fpl_progress - Set current progress.
  • fpl_progressDuration - Set fill duration.
  • fpl_shouldRestart - Set if progress filling should restart from 0.
  • fpl_progressDirection - Set fill direction. i.e. left_to_right,right_to_left,top_to_bottom or bottom_to_top
  • fpl_gradientColors - Set array of gradient colors i.e. @array/gradientColors
  • fpl_gradientMovement - Set true for gradient movement with progress and false for static filling
  • fpl_gradientDirection - Set Gradient direction. i.e. left_to_right,right_to_left,top_to_bottom , bottom_to_top,top_left_to_bottom_right,top_right_to_bottom_left,bottom_right_to_top_left orbottom_left_to_top_right

📄 License

FillProgressLayout is released under the MIT license. See LICENSE for details.

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].