Skip to content

Commit 34d4cc1

Browse files
Valerie923Okuro3499dogi
authored
courses: smoother step navigating (fixes #13530) (#13533)
Co-authored-by: Gideon Okuro <gideonollonde@gmail.com> Co-authored-by: dogi <dogi@users.noreply.github.com>
1 parent e7014d8 commit 34d4cc1

2 files changed

Lines changed: 30 additions & 23 deletions

File tree

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ android {
1212
applicationId "org.ole.planet.myplanet"
1313
minSdk = 26
1414
targetSdk = 36
15-
versionCode = 5581
16-
versionName = "0.55.81"
15+
versionCode = 5582
16+
versionName = "0.55.82"
1717
ndkVersion = '26.3.11579264'
1818
vectorDrawables.useSupportLibrary = true
1919
}

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

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,18 @@
1212
android:layout_height="wrap_content"
1313
android:layout_gravity="center"
1414
android:visibility="gone" />
15+
1516
<LinearLayout
1617
android:id="@+id/content_layout"
1718
android:layout_width="match_parent"
1819
android:layout_height="match_parent"
1920
android:orientation="vertical">
20-
2121
<LinearLayout
2222
android:layout_width="match_parent"
2323
android:layout_height="wrap_content"
2424
android:orientation="horizontal"
2525
android:gravity="center_vertical"
2626
android:padding="8dp">
27-
2827
<ImageView
2928
android:id="@+id/backButton"
3029
android:layout_width="wrap_content"
@@ -51,18 +50,15 @@
5150
app:cardCornerRadius="8dp"
5251
app:cardElevation="2dp"
5352
app:cardUseCompatPadding="true">
54-
5553
<LinearLayout
5654
android:layout_width="match_parent"
5755
android:layout_height="match_parent"
5856
android:orientation="vertical">
59-
6057
<LinearLayout
6158
android:layout_width="match_parent"
6259
android:layout_height="?attr/actionBarSize"
6360
android:background="@color/colorPrimary"
6461
android:padding="8dp">
65-
6662
<TextView
6763
android:id="@+id/tv_step"
6864
android:layout_width="wrap_content"
@@ -81,6 +77,29 @@
8177
android:background="@drawable/buttonyellow"
8278
android:minHeight="@dimen/_40dp"
8379
android:text="@string/remove" />
80+
</LinearLayout>
81+
82+
<ProgressBar
83+
android:id="@+id/course_step_progress_bar"
84+
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
85+
android:layout_width="match_parent"
86+
android:layout_height="4dp"
87+
android:progress="0"
88+
android:progressTint="@color/colorAccent" />
89+
90+
<androidx.viewpager2.widget.ViewPager2
91+
android:id="@+id/viewPager2"
92+
android:layout_width="match_parent"
93+
android:layout_height="0dp"
94+
android:layout_weight="1"
95+
android:background="@color/card_bg" />
96+
<LinearLayout
97+
android:layout_width="match_parent"
98+
android:layout_height="wrap_content"
99+
android:background="@color/colorPrimary"
100+
android:orientation="horizontal"
101+
android:padding="8dp">
102+
84103
<TextView
85104
android:id="@+id/previous_step"
86105
android:layout_width="wrap_content"
@@ -92,6 +111,10 @@
92111
android:text="@string/previous"
93112
android:textColor="@color/md_white_1000"
94113
app:drawableLeftCompat="@drawable/ic_left_arrow" />
114+
<View
115+
android:layout_width="0dp"
116+
android:layout_height="match_parent"
117+
android:layout_weight="1" />
95118
<TextView
96119
android:id="@+id/next_step"
97120
android:layout_width="wrap_content"
@@ -117,29 +140,13 @@
117140
android:textColor="@color/md_white_1000"
118141
android:visibility="gone" />
119142
</LinearLayout>
120-
121-
<ProgressBar
122-
android:id="@+id/course_step_progress_bar"
123-
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
124-
android:layout_width="match_parent"
125-
android:layout_height="4dp"
126-
android:progress="0"
127-
android:progressTint="@color/colorAccent" />
128-
129-
<androidx.viewpager2.widget.ViewPager2
130-
android:id="@+id/viewPager2"
131-
android:layout_width="match_parent"
132-
android:layout_height="0dp"
133-
android:layout_weight="1"
134-
android:background="@color/card_bg" />
135143
<LinearLayout
136144
android:id="@+id/ll_progress"
137145
android:layout_width="match_parent"
138146
android:layout_height="?attr/actionBarSize"
139147
android:background="@color/colorPrimary"
140148
android:padding="8dp"
141149
android:visibility="gone">
142-
143150
<androidx.appcompat.widget.AppCompatSeekBar
144151
android:id="@+id/course_progress"
145152
style="@style/Seekbar"

0 commit comments

Comments
 (0)