jpardogo / googleprogressbar Goto Github PK
View Code? Open in Web Editor NEWAndroid library to display progress like google does in some of his services.
License: Apache License 2.0
Android library to display progress like google does in some of his services.
License: Apache License 2.0
as per your code, you are using progressbar from xml. but how can we create progressbar programmatically with Foldingdrawable.? i tried simple but didnt showing progressbar.
I am getting the following error when I tried to sync gradle.
I cann't implement it in my kotlin project, please support this, thanks
I want to reference the library in my project(https://github.com/snowdream/android-widgets).i get the error as follows.
It seems that the minSdkVersion of my project is 8, but your minSdkVersion is 11.
If your library is avaiable for minSdkVersion 8, can you modify it to minSdkVersion 8,thank you.
[/home/snowdream/workspace/git/android-widgets/lib/src/main/AndroidManifest.xml, /home/snowdream/workspace/git/android-widgets/lib/build/exploded-aar/com.jpardogo.googleprogressbar/library/1.0.0/AndroidManifest.xml:2]
Main manifest has <uses-sdk android:minSdkVersion='8'> but library uses minSdkVersion='11'
I am using this library in viewpager i am getting this crash
java.lang.NullPointerException: Attempt to read from null array
at com.jpardogo.android.googleprogressbar.library.ChromeFloatingCirclesDrawable.draw(ChromeFloatingCirclesDrawable.java:189)
at android.widget.ProgressBar.drawTrack(ProgressBar.java:1803)
at android.widget.ProgressBar.onDraw(ProgressBar.java:1770)
at android.view.View.draw(View.java:17503)
at android.view.View.updateDisplayListIfDirty(View.java:16496)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3907)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3887)
at android.view.View.updateDisplayListIfDirty(View.java:16456)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3907)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3887)
at android.view.View.updateDisplayListIfDirty(View.java:16456)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3907)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3887)
at android.view.View.updateDisplayListIfDirty(View.java:16456)
how can I make this animation fast.
If you are using proguard this methods are removed:
I have to add this line to proguard.cfg:
-keep class com.jpardogo.android.googleprogressbar.** { *; }
some time in fragment
throws exception when i use :
//So i use it like this
getActivity().findViewById(R.id.google_progress).setVisibility(View.INVISIBLE);
and i know getActivity
some time return null instead context but still is problem ! you have any suggest can cover this ?
/**
* Return the {@link FragmentActivity} this fragment is currently associated with.
* May return {@code null} if the fragment is associated with a {@link Context}
* instead.
*/
final public FragmentActivity getActivity() {
return mHost == null ? null : (FragmentActivity) mHost.getActivity();
}
I want to know how to make compile like your project
dependencies {
compile 'com.jpardogo.googleprogressbar:library:(latest version)'
}
I am planning to use this progress bar in my website. Can i use in my website like other
jquery plugins ?
Thanks,
Senthil.
I use GPB in a cardview, and Android Studio 1.0 show me an exception.
The way I use:
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card-view="http://schemas.android.com/apk/res-auto"
xmlns:gpb="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="140dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
card-view:cardBackgroundColor="@color/novel_item_white"
card-view:contentPadding="5dp"
card-view:cardElevation="2dp"
card-view:cardMaxElevation="4dp">
<com.jpardogo.android.googleprogressbar.library.GoogleProgressBar
android:id="@+id/google_progress"
android:layout_width="20dp"
android:layout_height="20dp"
gpb:type="folding_circles"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</android.support.v7.widget.CardView>
The exception:
android.content.res.Resources$NotFoundException: Int array resource ID #0x7f050000
at android.content.res.Resources.getIntArray(Resources.java:522)
at com.jpardogo.android.googleprogressbar.library.FoldingCirclesDrawable$Builder.initDefaults(FoldingCirclesDrawable.java:256)
at com.jpardogo.android.googleprogressbar.library.FoldingCirclesDrawable$Builder.<init>(FoldingCirclesDrawable.java:251)
at com.jpardogo.android.googleprogressbar.library.GoogleProgressBar.buildDrawable(GoogleProgressBar.java:42)
at com.jpardogo.android.googleprogressbar.library.GoogleProgressBar.<init>(GoogleProgressBar.java:32)
at com.jpardogo.android.googleprogressbar.library.GoogleProgressBar.<init>(GoogleProgressBar.java:22)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:379)
at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:99)
at com.android.tools.idea.rendering.LayoutlibCallback.loadView(LayoutlibCallback.java:172)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:132)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:806)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:782)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:809)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:782)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:400)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:332)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
at com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:688)
at com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:677)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:932)
at com.android.tools.idea.rendering.RenderService.createRenderSession(RenderService.java:677)
at com.android.tools.idea.rendering.RenderService.render(RenderService.java:815)
at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.doRender(AndroidLayoutPreviewToolWindowManager.java:646)
at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.access$1700(AndroidLayoutPreviewToolWindowManager.java:82)
at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7$1.run(AndroidLayoutPreviewToolWindowManager.java:589)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7.run(AndroidLayoutPreviewToolWindowManager.java:584)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)
at com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:327)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Hey,
Good job mate for this library! A couple of comments there:
super.onDraw(canvas)
I would actually clone the code from ProgressBar
, remove what I don't need and set that as a base class for my custom progress bars.Good idea anyway!
failed to resolve: com.jpardogo
Hi, could you improve the Chrome ProgressBar animation in order to make it rotate clockwise or counterclockwise while switching circles positions? Thank you in advance.
Please remove the ic_launcher.png files from your library.
It is not necessary, and also it is a problem with the last gradle plugin 1.2.x
Hi,
Thanks for the great library, please give option to increase speed of progress flip.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.