Skip to content

Commit 1e580d2

Browse files
committed
Updated duration attribute.
1 parent 3093475 commit 1e580d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
android:layout_width="30dp"
2020
android:layout_height="30dp"
2121
custom:foregroundColor="@color/link_text_material_light"
22-
custom:animDuration="4000"/>
22+
custom:animDuration="5000"/>
2323

2424
</LinearLayout>

library/src/main/java/es/claucookie/miniequalizerlibrary/EqualizerView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class EqualizerView extends LinearLayout {
3030
int foregroundColor;
3131
int duration;
3232

33+
3334
public EqualizerView(Context context) {
3435
super(context);
3536
initViews();
@@ -55,7 +56,7 @@ private void setAttrs(Context context, AttributeSet attrs) {
5556

5657
try {
5758
foregroundColor = a.getInt(R.styleable.EqualizerView_foregroundColor, Color.BLACK);
58-
duration = a.getInt(R.styleable.EqualizerView_animDuration, 4000);
59+
duration = a.getInt(R.styleable.EqualizerView_animDuration, 3000);
5960

6061
} finally {
6162
a.recycle();

0 commit comments

Comments
 (0)