Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Commit bbcb320

Browse files
committed
2 parents da96a87 + 9751a38 commit bbcb320

File tree

4 files changed

+217
-62
lines changed

4 files changed

+217
-62
lines changed

viewflow-example/.classpath

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<classpath>
3-
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
4-
<classpathentry kind="src" path="viewflow_src"/>
5-
<classpathentry kind="src" path="src"/>
6-
<classpathentry kind="src" path="gen"/>
7-
<classpathentry kind="src" path="org_taptwo_android_widget_viewflow_src"/>
8-
<classpathentry kind="output" path="bin"/>
9-
</classpath>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
4+
<classpathentry kind="src" path="src"/>
5+
<classpathentry kind="src" path="gen"/>
6+
<classpathentry kind="src" path="org_taptwo_android_widget_viewflow_src"/>
7+
<classpathentry kind="src" path="viewflow_src"/>
8+
<classpathentry combineaccessrules="false" kind="src" path="/viewflow"/>
9+
<classpathentry kind="output" path="bin"/>
10+
</classpath>
Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res/org.taptwo.android.widget.viewflow.example"
44
android:orientation="vertical" android:layout_width="fill_parent"
55
android:layout_height="fill_parent">
66

7-
8-
9-
<LinearLayout android:layout_height="wrap_content"
10-
android:layout_width="fill_parent" android:gravity="center_horizontal"
11-
android:orientation="horizontal" android:id="@+id/header_layout">
12-
<org.taptwo.android.widget.CircleFlowIndicator
13-
android:padding="10dip" android:layout_height="wrap_content"
14-
android:layout_width="wrap_content" android:id="@+id/viewflowindic"
15-
android:background="#00000000"></org.taptwo.android.widget.CircleFlowIndicator>
16-
</LinearLayout>
7+
<org.taptwo.android.widget.CircleFlowIndicator
8+
android:padding="10dip"
9+
android:layout_height="wrap_content"
10+
android:layout_width="wrap_content"
11+
android:id="@+id/viewflowindic"
12+
android:layout_gravity="center_horizontal"
13+
app:inactiveType="fill"
14+
app:fadeOut="1000" />
1715
<org.taptwo.android.widget.ViewFlow
1816
android:id="@+id/viewflow" android:layout_width="fill_parent"
1917
android:layout_height="fill_parent" app:sidebuffer="3"></org.taptwo.android.widget.ViewFlow>
2018

21-
22-
23-
24-
25-
26-
</LinearLayout>
19+
</FrameLayout>

viewflow/res/values/attrs.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,19 @@
1919
<attr name="sidebuffer" format="integer" />
2020
</declare-styleable>
2121
<declare-styleable name="CircleFlowIndicator">
22-
<attr name="fillColor" format="color" />
23-
<attr name="strokeColor" format="color" />
22+
<attr name="activeColor" format="color" />
23+
<attr name="inactiveColor" format="color" />
2424
<attr name="radius" format="dimension" />
2525
<attr name="centered" format="boolean" />
26+
<attr name="fadeOut" format="integer" />
27+
<attr name="inactiveType">
28+
<flag name="stroke" value="0" />
29+
<flag name="fill" value="1" />
30+
</attr>
31+
<attr name="activeType">
32+
<flag name="stroke" value="0" />
33+
<flag name="fill" value="1" />
34+
</attr>
2635
</declare-styleable>
2736
<declare-styleable name="TitleFlowIndicator">
2837
<attr name="titlePadding" format="dimension" />

0 commit comments

Comments
 (0)