Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pomodoro_Team_7
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
moxdlab
moco2024
Pomodoro_Team_7
Commits
0e949e64
Commit
0e949e64
authored
11 months ago
by
Khaleeq
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
c1656c8b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/pomo/myapplication/MainActivity.kt
+3
-10
3 additions, 10 deletions
app/src/main/java/com/pomo/myapplication/MainActivity.kt
with
3 additions
and
10 deletions
app/src/main/java/com/pomo/myapplication/MainActivity.kt
+
3
−
10
View file @
0e949e64
...
@@ -13,7 +13,6 @@ import androidx.compose.foundation.layout.fillMaxSize
...
@@ -13,7 +13,6 @@ import androidx.compose.foundation.layout.fillMaxSize
import
androidx.compose.foundation.layout.height
import
androidx.compose.foundation.layout.height
import
androidx.compose.foundation.layout.width
import
androidx.compose.foundation.layout.width
import
androidx.compose.material3.Button
import
androidx.compose.material3.Button
import
androidx.compose.material3.ButtonDefaults
import
androidx.compose.material3.MaterialTheme
import
androidx.compose.material3.MaterialTheme
import
androidx.compose.material3.Surface
import
androidx.compose.material3.Surface
import
androidx.compose.material3.Text
import
androidx.compose.material3.Text
...
@@ -25,7 +24,6 @@ import androidx.compose.runtime.remember
...
@@ -25,7 +24,6 @@ import androidx.compose.runtime.remember
import
androidx.compose.runtime.setValue
import
androidx.compose.runtime.setValue
import
androidx.compose.ui.Alignment
import
androidx.compose.ui.Alignment
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.graphics.Color
import
androidx.compose.ui.tooling.preview.Preview
import
androidx.compose.ui.tooling.preview.Preview
import
androidx.compose.ui.unit.dp
import
androidx.compose.ui.unit.dp
import
com.pomo.myapplication.ui.theme.MyApplicationTheme
import
com.pomo.myapplication.ui.theme.MyApplicationTheme
...
@@ -153,21 +151,15 @@ class MainActivity : ComponentActivity() {
...
@@ -153,21 +151,15 @@ class MainActivity : ComponentActivity() {
Text
(
text
=
"Reset"
)
Text
(
text
=
"Reset"
)
}
}
}
}
Spacer
(
modifier
=
Modifier
.
height
(
20
.
dp
))
Spacer
(
modifier
=
Modifier
.
height
(
20
.
dp
))
Row
{
Row
{
// Dieser Button wird gelöscht ist nur für Testzwecke da
// Dieser Button wird gelöscht ist nur für Testzwecke da
Button
(
Button
(
onClick
=
{
setTimer
(
1
)
})
{
onClick
=
{
setTimer
(
1
)
},
colors
=
ButtonDefaults
.
buttonColors
(
containerColor
=
Color
(
0xFF4CAF50
),
// Grün
contentColor
=
Color
.
White
// Weißer Text
)
)
{
Text
(
text
=
"1 min"
)
Text
(
text
=
"1 min"
)
}
}
Button
(
onClick
=
{
setTimer
(
5
)
})
{
Button
(
onClick
=
{
setTimer
(
5
)
})
{
Text
(
text
=
"5 min"
)
Text
(
text
=
"5 min"
)
}
}
...
@@ -183,6 +175,7 @@ class MainActivity : ComponentActivity() {
...
@@ -183,6 +175,7 @@ class MainActivity : ComponentActivity() {
}
}
}
}
@Composable
@Composable
fun
TimerDisplay
(
time
:
String
)
{
fun
TimerDisplay
(
time
:
String
)
{
Text
(
Text
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment