Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
likorn
/
quick_max
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ffb2eddd
authored
Sep 25, 2019
by
likorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Button back to return to mainActivity
parent
24244d9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
app/src/main/java/com/example/quickmax/TaskActivity.kt
app/src/main/res/layout/activity_task.xml
app/src/main/java/com/example/quickmax/TaskActivity.kt
View file @
ffb2eddd
...
...
@@ -2,6 +2,7 @@ package com.example.quickmax
import
android.animation.ArgbEvaluator
import
android.animation.ValueAnimator
import
android.content.Intent
import
android.graphics.Color
import
android.os.Bundle
import
android.os.CountDownTimer
...
...
@@ -29,6 +30,7 @@ class TaskActivity : AppCompatActivity() {
setUpAnswerButtons
()
timer
.
start
()
startProgressBarAnimation
()
btn_back
.
setOnClickListener
{
startActivity
(
Intent
(
this
@TaskActivity
,
MainActivity
::
class
.
java
))
}
}
fun
reload
()
{
...
...
app/src/main/res/layout/activity_task.xml
View file @
ffb2eddd
...
...
@@ -8,7 +8,7 @@
android:background=
"#DADADA"
tools:context=
".TaskActivity"
>
<
androidx.constraintlayout.widget.Constraint
Layout
<
Linear
Layout
android:id=
"@+id/layout_gradient"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
...
...
@@ -20,18 +20,16 @@
app:layout_constraintTop_toTopOf=
"parent"
>
<ImageButton
android:id=
"@+id/
imageButton
"
android:id=
"@+id/
btn_back
"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:layout_marginTop=
"8dp"
android:background=
"@android:color/transparent"
android:tint=
"@android:color/white"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@drawable/ic_back"
/>
</
androidx.constraintlayout.widget.Constraint
Layout>
</
Linear
Layout>
<TextView
android:id=
"@+id/tv_timer"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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