Created
June 29, 2016 09:55
-
-
Save griajobag/23016f33454508ad45d8971c4c515040 to your computer and use it in GitHub Desktop.
smooth progressbar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ScrollView | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:padding="10dp" | |
android:layout_height="match_parent"> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/container" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
tools:context=".MainActivity" | |
tools:ignore="MergeRootFrame" | |
android:paddingTop="16dp"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Normal indeterminate drawable"/> | |
<ProgressBar | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:indeterminateOnly="false" | |
style="@style/ProgressBar.Horizontal" | |
android:indeterminate="true"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="AccelerateInterpolator"/> | |
<ProgressBar | |
android:id="@+id/progressbar2" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
style="@style/ProgressBar.Horizontal" | |
android:indeterminate="true"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="GPlus"/> | |
<fr.castorflex.android.smoothprogressbar.SmoothProgressBar | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:indeterminate="true" | |
style="@style/GPlusProgressBar"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Google now"/> | |
<fr.castorflex.android.smoothprogressbar.SmoothProgressBar | |
android:id="@+id/google_now" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
style="@style/GNowProgressBar" | |
android:indeterminate="true"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Gradient"/> | |
<fr.castorflex.android.smoothprogressbar.SmoothProgressBar | |
android:id="@+id/gradient" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
style="@style/GradientProgressBar" | |
android:indeterminate="true"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Circular"/> | |
<fr.castorflex.android.circularprogressbar.CircularProgressBar | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
app:cpb_colors="@array/gplus_colors"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Pocket"/> | |
<fr.castorflex.android.smoothprogressbar.SmoothProgressBar | |
android:id="@+id/pocket" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
style="@style/PocketProgressBar" | |
android:indeterminate="true"/> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal"> | |
<Button | |
android:id="@+id/start" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAlignment="center" | |
android:text="Begin" | |
android:layout_weight="1"/> | |
<Button | |
android:id="@+id/finish" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAlignment="center" | |
android:text="Finish" | |
android:layout_weight="1"/> | |
</LinearLayout> | |
<TextView | |
android:gravity="center" | |
android:layout_weight="1" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:textColor="@android:color/black" | |
android:text="Button - button ini befungsi untuk start dan stop progressbar Pocket, perhatikan baik-baik"/> | |
<TextView | |
android:gravity="center" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="Thanks to Antoine Merle. Code, rewrite by putuguna.com"/> | |
</LinearLayout> | |
</ScrollView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment