Skip to content

Commit 30609bc

Browse files
author
Tsur Yohananov
committed
resolved conflicts
2 parents 9b4b2db + e14ca6c commit 30609bc

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Release](https://jitpack.io/v/tsuryo/NumberPicker.svg)](https://jitpack.io/#tsuryo/Android-Countdown-Timer)
1+
[![Release](https://jitpack.io/v/tsuryo/Android-Countdown-Timer.svg)](https://jitpack.io/#tsuryo/Android-Countdown-Timer)
22
# Android-Countdown-Timer
33
Android library provide a simple to use Countdown Timer View.
44

@@ -33,11 +33,7 @@ Android 5.0+ API 21+
3333
android:id="@+id/counter"
3434
android:layout_width="wrap_content"
3535
android:layout_height="wrap_content"
36-
android:layout_marginBottom="8dp"
37-
app:layout_constraintBottom_toTopOf="@+id/gdH50"
38-
app:layout_constraintLeft_toLeftOf="parent"
39-
app:layout_constraintRight_toRightOf="parent"
40-
app:layout_constraintTop_toTopOf="parent"
36+
<!--Additional attributes-->
4137
app:max_time_unit="HOUR"
4238
app:text_color="@color/colorPrimary"
4339
app:text_size="36dp"
@@ -47,10 +43,7 @@ Android 5.0+ API 21+
4743
android:id="@+id/counte1"
4844
android:layout_width="wrap_content"
4945
android:layout_height="wrap_content"
50-
app:layout_constraintBottom_toBottomOf="parent"
51-
app:layout_constraintLeft_toLeftOf="parent"
52-
app:layout_constraintRight_toRightOf="parent"
53-
app:layout_constraintTop_toBottomOf="@+id/gdH50"
46+
<!--Additional attributes-->
5447
app:max_time_unit="DAY"
5548
app:text_color="#2196F3"
5649
app:text_size="36dp"

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,35 @@
1010
android:id="@+id/counter"
1111
android:layout_width="wrap_content"
1212
android:layout_height="wrap_content"
13+
android:layout_marginStart="8dp"
14+
android:layout_marginTop="8dp"
1315
android:layout_marginBottom="8dp"
14-
app:layout_constraintBottom_toTopOf="@+id/gdH50"
15-
app:layout_constraintLeft_toLeftOf="parent"
16-
app:layout_constraintRight_toRightOf="parent"
16+
app:layout_constraintBottom_toTopOf="@+id/guideline"
17+
app:layout_constraintEnd_toEndOf="parent"
18+
app:layout_constraintStart_toStartOf="parent"
1719
app:layout_constraintTop_toTopOf="parent"
1820
app:max_time_unit="HOUR"
21+
app:custom_font="@font/batmfa__"
1922
app:text_color="@color/colorPrimary"
20-
app:text_size="36dp"
21-
app:custom_font="@font/batmfa__" />
23+
app:text_size="36dp" />
2224

2325
<com.tsuryo.androidcountdown.Counter
2426
android:id="@+id/counte1"
2527
android:layout_width="wrap_content"
2628
android:layout_height="wrap_content"
29+
android:layout_marginTop="8dp"
2730
app:layout_constraintBottom_toBottomOf="parent"
28-
app:layout_constraintLeft_toLeftOf="parent"
29-
app:layout_constraintRight_toRightOf="parent"
30-
app:layout_constraintTop_toBottomOf="@+id/gdH50"
31+
app:layout_constraintEnd_toEndOf="parent"
32+
app:layout_constraintStart_toStartOf="parent"
33+
app:layout_constraintTop_toTopOf="@+id/guideline"
3134
app:max_time_unit="DAY"
32-
app:text_color="#2196F3"
35+
app:counter_font="DIGITAL_BOLD"
36+
app:text_color="@color/colorAccent"
3337
app:text_size="36dp"
34-
app:textual_description="true"
35-
app:counter_font="DIGITAL_BOLD" />
38+
app:textual_description="true" />
3639

3740
<androidx.constraintlayout.widget.Guideline
38-
android:id="@+id/gdH50"
41+
android:id="@+id/guideline"
3942
android:layout_width="wrap_content"
4043
android:layout_height="wrap_content"
4144
android:orientation="horizontal"

0 commit comments

Comments
 (0)