HoloCircularProgressBar
=======================
## What is a HoloCircularProgressBar
HoloCircularProgressBar is a Custom View implementation for Android you might know from the Android Clock App from Android 4.1
<div align="center">
<img height="400px" src="https://raw.github.com/passsy/android-HoloCircularProgressBar/master/raw/screenshot1.png"/>
<img height="400px" src="https://raw.github.com/passsy/android-HoloCircularProgressBar/master/raw/screenshot2.png"/>
</div>
## Usage
### Sample Project
You can see the ProgressBar working in the sample application. Just check out the library and create a new "Android Project form Existing Code"
### Use it in your own Code
Add the View in your Layout
<de.passsy.holocircularprogressbar.HoloCircularProgressBar
android:id="@+id/holoCircularProgressBar1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
#### Got this error?
The following classes could not be instantiated:
- de.passsy.holocircularprogressbar.HoloCircularProgressBar (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
If your Layout Editor can't draw the view, you have to restart Eclipse. There is a bug in the ADT Plugin
##### Got the next error?
Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.
Failed to find style 'circularProgressBarStyle' in current theme
You have to add a style for this View. see below
There are several XML attributes you can add the the HoloCircularProgressBar
<de.passsy.holocircularprogressbar.HoloCircularProgressBar
android:id="@+id/holoCircularProgressBar1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
app:stroke_width="10dp"
app:progress="0.4"
app:marker_progress="0.6"
app:progress_color="@android:color/holo_orange_dark"
app:progress_background_color="#cccccc"
app:gravity="center" />
### Style
Don't forget to add a default style to your AppTheme
<style name="AppTheme" parent="android:Theme.Holo">
<item name="circularProgressBarStyle">@style/CircularProgressBar</item>
</style>
I added two simple styles @style/CircularProgressBar and @style/CircularProgressBarLight to give you a quick start. You can see both styles in action in the sample Project
After you wrote your own style you might restart your Eclipse again as I mentioned before. The ADT Plugin really has some troubles working with Android Libraries and Styles
## Bugs
You found bugs? Report them or feel free to fix them by yourself and make a pull request. No one wants a buggy library
## License
Copyright 2013 Pascal Welsch
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.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
android-HoloCircularProgressBar-master.zip项目安卓应用源码下载android-HoloCircularProgressBar-master.zip项目安卓应用源码下载 1.适合学生毕业设计研究参考 2.适合个人学习研究参考 3.适合公司开发项目技术参考
资源推荐
资源详情
资源评论





















收起资源包目录













































































共 43 条
- 1
资源评论


yxkfw
- 粉丝: 67
- 资源: 2万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
