Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Horyun Lee
ExpandedCircleProgressView
Commits
3c48c377
Commit
3c48c377
authored
11 years ago
by
Horyun Lee
Browse files
Options
Download
Email Patches
Plain Diff
Update README.md
parent
ec57dc58
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+51
-46
README.md
with
51 additions
and
46 deletions
+51
-46
README.md
+
51
-
46
View file @
3c48c377
ExpandedCircleProgressView
ExpandedCircleProgressView
==========================
==========================
this is a custom view
for android
to show progressing with an expanded circle.
this is a
android-
custom view to show progressing with an expanded circle.




### I would like to show progress with diffrent view with circle. For that reason, i made Fancy Buttons, to make this task much easier.
## Overview
## Overview
**ExpandedCircleProgressView**
, helps you to show progress with expading circle.
**ExpandedCircleProgressView**
, helps you to show progress with expading circle with smooth animation.
**
You can get this sample of view on market
### Usage
### Usage
1.
Add ExpandedCircleProgressView namespace on the top element :
Add ExpandedCircleProgressView namespace on the top element :
xmlns:tigerlee="http://schemas.android.com/apk/res-auto"
xmlns:tigerlee="http://schemas.android.com/apk/res-auto"
2.
Add namespace of ExpandedCircleProgressView
Add namespace of ExpandedCircleProgressView :
<com.tigerlee.widget.ExpandedCircleProgressView
android:id="@+id/expanded_circle_progress"
android:layout_centerInParent="true"
android:layout_height="match_parent"/>
<com.tigerlee.widget.ExpandedCircleProgressView
android:id="@+id/expanded_circle_progress"
android:layout_centerInParent="true"
android:layout_width="match_parent"
android:layout_height="match_parent" />
#### Supported Attributs
#### Supported Attributs
1.
declare-styleable
declare-styleable :
<declare-styleable
name=
"ExpandedCircleProgressView"
>
<declare-styleable name="ExpandedCircleProgressView">
<attr
name=
"innerCircleSize"
format=
"dimension"
/>
<attr name="innerCircleSize" format="dimension" />
<attr
name=
"outerCircleSize"
format=
"dimension"
/>
<attr name="outerCircleSize" format="dimension" />
<attr name="innerCircleColor" format="color" />
<attr
name=
"innerCircleColor"
format=
"color"
/>
<attr name="outerCircleColor" format="color" />
<attr
name=
"outerCircleColor"
format=
"color"
/>
<attr name="textProgressColor" format="color" />
<attr name="progressCircleColor" format="color" />
<attr
name=
"textProgressColor"
format=
"color"
/>
<attr name="outerCircleLineWidth" format="dimension" />
<attr
name=
"progressCircleColor"
format=
"color"
/>
<attr name="textProgressSize" format="dimension" />
</declare-styleable>
<attr
name=
"outerCircleLineWidth"
format=
"dimension"
/>
<attr
name=
"textProgressSize"
format=
"dimension"
/>
</declare-styleable>
2.
Detail role of attributes
Detail role of attributes
:
| XML Attribute | Java Attribute | Description |
| XML Attribute | Java Attribute | Description |
| ------------- |:-------------:| -----:|
| ------------- |:-------------:| -----:|
...
@@ -60,24 +54,35 @@ this is a custom view for android to show progressing with an expanded circle.
...
@@ -60,24 +54,35 @@ this is a custom view for android to show progressing with an expanded circle.
#### Sample
#### Sample
** Add expandedeCircleProgress view on layout**
Please follow these steps


<com.tigerlee.widget.ExpandedCircleProgressView
Add expandedeCircleProgress view on layout :
android:id="@+id/expanded_circle_progress"
android:layout_centerInParent="true"
android:id="@+id/expanded_circle_progress"
android:layout_width="match_parent"
android:layout_centerInParent="true"
android:layout_height="match_parent"
android:layout_width="match_parent"
tigerlee:innerCircleSize="40dp"
android:layout_height="match_parent"
tigerlee:outerCircleSize="100dp"
tigerlee:innerCircleSize="40dp"
tigerlee:innerCircleColor="@android:color/holo_orange_light"
tigerlee:outerCircleSize="100dp"
tigerlee:outerCircleColor="@android:color/black"
tigerlee:innerCircleColor="@android:color/holo_orange_light"
tigerlee:outerCircleLineWidth="1dp"
tigerlee:outerCircleColor="@android:color/black"
tigerlee:progressCircleColor="@android:color/holo_orange_light"
tigerlee:outerCircleLineWidth="1dp"
tigerlee:textProgressColor="@android:color/white"
tigerlee:progressCircleColor="@android:color/holo_orange_light"
tigerlee:textProgressSize="20sp"
tigerlee:textProgressColor="@android:color/white"
/>
tigerlee:textProgressSize="20sp"
Get view from findbprogress with int value :
```
java
mCircleProgressView
=
(
ExpandedCircleProgressView
)
rootView
.
findViewById
(
R
.
id
.
expanded_circle_progress
);
```
Set progress :
```
java
mCircleProgressView
.
setProgress
(
mProgress
);
```
### Qustion?
### Qustion?
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment