{"id":13640820,"url":"https://github.com/peng8350/LoadingProgress","last_synced_at":"2025-04-20T07:31:03.806Z","repository":{"id":107567685,"uuid":"71208926","full_name":"peng8350/LoadingProgress","owner":"peng8350","description":"This is the library when you loading an image from net.you may be use it to show the progress.it support many image framework..such as:fresco,glide,picasso,uil and so on.","archived":false,"fork":false,"pushed_at":"2017-05-17T08:36:43.000Z","size":16186,"stargazers_count":209,"open_issues_count":1,"forks_count":46,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-08T04:51:28.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peng8350.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-18T04:28:34.000Z","updated_at":"2024-12-27T14:37:26.000Z","dependencies_parsed_at":"2023-06-29T15:16:36.437Z","dependency_job_id":null,"html_url":"https://github.com/peng8350/LoadingProgress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peng8350%2FLoadingProgress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peng8350%2FLoadingProgress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peng8350%2FLoadingProgress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peng8350%2FLoadingProgress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peng8350","download_url":"https://codeload.github.com/peng8350/LoadingProgress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249864221,"owners_count":21336717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:01:14.720Z","updated_at":"2025-04-20T07:31:03.078Z","avatar_url":"https://github.com/peng8350.png","language":"Java","readme":"# LoadingProgress\n When you want to load a picture from the network, you may use the progress bar to display the progress of the picture,This project uses the Drawable injection, support Fresco, UIL, GLIDE, Picasso\nFour picture frames,Dumplites of [Fresco](https://github.com/facebook/fresco)。\u003cbr\u003e\n\n###阅读中文文档 [请点击这里](https://github.com/peng8350/LoadingProgress/blob/master/README_CN.md)\n# Design sketch\n  ![](https://github.com/peng8350/LoadingProgress/blob/master/art/view.gif)\n  \n   ![](https://github.com/peng8350/LoadingProgress/blob/master/art/1.gif)\n    ![](https://github.com/peng8350/LoadingProgress/blob/master/art/2.gif) \u003cbr\u003e \n      ![](https://github.com/peng8350/LoadingProgress/blob/master/art/3.gif)\n       ![](https://github.com/peng8350/LoadingProgress/blob/master/art/4.gif) \u003cbr\u003e \n\n# Install\n   \u003ch3\u003eGradle:\u003c/h3\u003e\n  ```Java\n    compile 'com.jpeng:LoadingProgress:1.1.0'\n  ```\n   \u003ch3\u003eJar package:\u003c/h3\u003e\n   [Jar package Download](https://github.com/peng8350/LoadingProgress/blob/master/loadprogress.jar)\n\n# Major Function:\n  - Can dynamically change the progress of text size, color,type,can visiable。\n  \n  - Can change the progress and background color。\n  \n  - Ring support gradient。\n  \n  - There are two styles of rings。\n  \n  - Support into ListView Cache;\n  \n  - More style of progress\n  \n  Specific reference[DEMO](https://github.com/peng8350/LoadingProgress/tree/master/Demo)\n  \n# Usage:\n\n  \u003ch3\u003eFirst of all, you must first create a CircleProgress or RectanglePropres and other \u003c/h3\u003e\n    \n  ```Java\n  CircleProgress progress = new CircleProgress.Builder().\n                            setTextColor(Color.RED)\n                            //setting your property...\n                            \n                            .build();\n   \n   // if you use ImageView to load(Glide,UIL,Picasso)\n  progress.inject(your  ImageView);\n  //if you use Fresco\n  progress.injectFresco(your SimpleDraweeView)\n  ```\n\n  \u003ch3\u003eThen, listen to the progress of the download picture changes, for different frameworks:\u003c/h3\u003e\n  \n  \u003ch3\u003e Fresco: \u003c/h3\u003e\n  \n  ```Java\n       /*\n       * Congratulations, you don't need to listen to the picture to load the progress of change\n       */\n  ```\n\n  \u003ch3\u003e UIL: \u003c/h3\u003e\n  \n  ```Java\n               \n                //In the interface provided by ImageLoadingProgressListener UIL inside:\n\t\t\t\t@Override\n\t\t\t\tpublic void onProgressUpdate(String s, View view, int i, int i1) {\n\t\t\t\t\tprogress.setLevel(i);\n                    progress.setMaxValue(i1);\n\t\t\t\t}\n       \n  ```\n  \n  \u003ch3\u003e The other: \u003c/h3\u003e\n  \n  ```Java\n        /*\n        *If you are use Glide and Picasso \n        *you can refer to my demo how to listening the Downloading\n        ×But in my demo seems not corrent\n        *Because in my test,some pictures cannot display\n        * may be the reason is about okhttp\n        */\n        //In your progress monitor callback method\n        progress.setLevel(current);\n        progress.setMaxValue(total);\n       \n  ```\n  \u003ch3\u003e LevelProgress \u003c/h3\u003e\n   Note that the construction method which is passed levellistdrawable or level can change the resource of the LayerDrawable, or no effect.\n    Example:\n   ```Java\n    \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n    \u003clayer-list xmlns:android=\"http://schemas.android.com/apk/res/android\"\u003e\n        \u003citem\n            android:id=\"@android:id/background\"\n            android:drawable=\"@mipmap/battery_full\"/\u003e\n        \u003citem android:id=\"@android:id/progress\"\u003e\n            \u003cclip\n                android:drawable=\"@mipmap/battery_none\"\n                android:gravity=\"bottom\"\n                android:clipOrientation=\"vertical\"/\u003e\n        \u003c/item\u003e\n    \u003c/layer-list\u003e\n   ```\n    \n   If all of the above is not what you want.,you can custom a class extends BaseProgress,Draw a picture of what you want.:\n   ```Java\n      public class CustomProgress extends BaseProgress{\n          @Override\n          public void DrawOther(Canvas canvas){\n              //Custom yourself\n          }\n      }\n   ```\n \n# Attribute description:\n\n \u003ch3\u003e Public: \u003c/h3\u003e\n  `setTextColor` Set the progress bar in the middle of the text color\u003cbr\u003e\n  `setTextSize`  Set the size of the middle of the progress bar\u003cbr\u003e\n  `setTextShow`  Set whether the intermediate text is displayed\u003cbr\u003e\n  `setTextType`  set the text type\u003cbr\u003e\n  `setCustomText`   set the custom text replace the origin number text\u003cbr\u003e\n  `setTextXOffset`  set the X distance to the center pointer\u003cbr\u003e\n  `setTextYOffset`  set the Y distance to the center pointer\n     \n  \u003ch3\u003eCircleProgress:\u003c/h3\u003e\n   \n  `setCircleWidth`   Set the width of the ring\u003cbr\u003e\n  `setCircleRadius`  Set the radius of the circle\u003cbr\u003e\n  `setProgressColor` Set the ring has been loaded on the progress of the color\u003cbr\u003e\n  `setBottomColor`   Set the color of the ring not loaded\u003cbr\u003e\n  `setStyle`         Channge the style,enum of CircleStyle.Fan or Ring\u003cbr\u003e\n  `setGradientColor` set the color of gradient\u003cbr\u003e\n  `setBottomWidth`  set the width of bottom\u003cbr\u003e\n  `setFanPadding`   set the padding line to the circle with FanStyle \n   \n  \u003ch3\u003eRectangleProgress:\u003c/h3\u003e\n   \n  `setRecBottomColor`   Set the color of the bottom of the long progress\u003cbr\u003e\n  `setRecProgressColor`  Set the background color that the long progress has been loaded\u003cbr\u003e\n  `setProgressColor` Set the ring has been loaded on the progress of the color\u003cbr\u003e\n  `setRecHeight`   Set the width of the long progress\u003cbr\u003e\n  `setRectProgressImage`  Use custom images to replace text to display (set up will not display text)\u003cbr\u003e\n  `setPosition` Set the position of the display indicator\n   \n   \u003ch3\u003eRotateProgress:\u003c/h3\u003e\n    `setSpeed`   set the speed of rotate\u003cbr\u003e\n    `setDirection` set the rotate direction\n    \n   \u003ch3\u003eLevelProgress:\u003c/h3\u003e\n   `EnableAlpha` allow the alpha change by progress\n# Hope\n  \n  If you find that you can listen to Xutils2,3 or volley and other frameworks to download progress changes in the way, you can tell me, I modify the.\n  \n  If you find BUG, can also be written in issue。\n  \n# About Me\n\n  a junior student still study at School, love programming, especially Android\n  \n  Email:peng8350@gmail.com\n\n  \n","funding_links":[],"categories":["进度条"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeng8350%2FLoadingProgress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeng8350%2FLoadingProgress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeng8350%2FLoadingProgress/lists"}