Initial walking skeleton implementation

This commit is contained in:
Paul-1108
2026-05-16 23:23:44 +02:00
commit 48e1b41a97
68 changed files with 1758 additions and 0 deletions
+70
View File
@@ -0,0 +1,70 @@
# Gradle
.gradle/
build/
*/build/
# Local configuration
local.properties
# Android Studio / IntelliJ
.idea/
*.iml
# Generated files
captures/
.externalNativeBuild/
.cxx/
# Kotlin
*.kotlin_module
# Logs
*.log
# OS files
.DS_Store
Thumbs.db
# Keystore files
*.jks
*.keystore
# Android profiling
*.hprof
# Temporary files
tmp/
temp/
# APK / Bundle outputs
*.apk
*.aab
# Emulator / device files
*.lock
# Navigation editor temp files
.navigation/
# Generated folders
bin/
out/
# Mac
.AppleDouble
.LSOverride
# Windows
ehthumbs.db
Desktop.ini
# VSCode
.vscode/
# JetBrains cache
.idea/caches/
.idea/libraries/
.idea/modules.xml
.idea/workspace.xml
.idea/navEditor.xml
.idea/assetWizardSettings.xml
+47
View File
@@ -0,0 +1,47 @@
plugins {
alias(libs.plugins.android.application)
}
android {
namespace = "com.example.workouttimer"
compileSdk {
version = release(36) {
minorApiLevel = 1
}
}
defaultConfig {
applicationId = "com.example.workouttimer"
minSdk = 26
targetSdk = 36
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
implementation(libs.androidx.activity)
implementation(libs.androidx.constraintlayout)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
}
+21
View File
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
@@ -0,0 +1,24 @@
package com.example.workouttimer
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.workouttimer", appContext.packageName)
}
}
+25
View File
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.WorkoutTimer">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
@@ -0,0 +1,17 @@
package com.example.workouttimer
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.workouttimer.ui.navigation.AppNavigation
class MainActivity : AppCompatActivity() {
private lateinit var appNavigation: AppNavigation
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
appNavigation = AppNavigation(this)
setContentView(appNavigation.createContent())
}
}
@@ -0,0 +1,38 @@
package com.example.workouttimer.data
import com.example.workouttimer.domain.Exercise
import com.example.workouttimer.domain.ExerciseTarget
import com.example.workouttimer.domain.Workout
class MockWorkoutRepository {
fun getWorkouts(): List<Workout> {
return listOf(
Workout(
id = 1,
name = "Full Body Basic",
tags = listOf("Ganzkörper", "Einsteiger"),
exercises = listOf(
Exercise(
id = 1,
name = "Push-ups",
target = ExerciseTarget.Repetitions(12),
info = "Saubere Ausführung, kontrollierte Bewegung."
),
Exercise(
id = 2,
name = "Plank",
target = ExerciseTarget.Duration(30),
info = "Körper gerade halten."
),
Exercise(
id = 3,
name = "Squats",
target = ExerciseTarget.Repetitions(15),
info = "Knie stabil halten."
)
)
)
)
}
}
@@ -0,0 +1,8 @@
package com.example.workouttimer.domain
data class Exercise(
val id: Int,
val name: String,
val target: ExerciseTarget,
val info: String = ""
)
@@ -0,0 +1,8 @@
package com.example.workouttimer.domain
sealed class ExerciseTarget {
data class Repetitions(val reps: Int) : ExerciseTarget()
data class Duration(val seconds: Int) : ExerciseTarget()
}
@@ -0,0 +1,8 @@
package com.example.workouttimer.domain
data class Workout(
val id: Int,
val name: String,
val exercises: List<Exercise>,
val tags: List<String> = emptyList()
)
@@ -0,0 +1,8 @@
package com.example.workouttimer.domain
enum class WorkoutState {
READY,
RUNNING,
PAUSED,
FINISHED
}
@@ -0,0 +1,115 @@
package com.example.workouttimer.ui.navigation
import android.content.Context
import android.view.View
import android.widget.FrameLayout
import com.example.workouttimer.ui.screens.FinishedScreen
import com.example.workouttimer.ui.screens.HomeScreen
import com.example.workouttimer.ui.screens.PauseScreen
import com.example.workouttimer.ui.screens.ReadyToStartScreen
import com.example.workouttimer.ui.screens.RunningWorkoutScreen
import com.example.workouttimer.ui.screens.SavedWorkoutsScreen
import com.example.workouttimer.viewmodel.WorkoutViewModel
class AppNavigation(private val context: Context) {
private val container = FrameLayout(context)
private val viewModel = WorkoutViewModel()
fun createContent(): FrameLayout {
showHome()
return container
}
private fun setScreen(view: View) {
container.removeAllViews()
container.addView(view)
}
fun showHome() {
setScreen(
HomeScreen(
context = context,
onShowWorkouts = { showSavedWorkouts() }
)
)
}
fun showSavedWorkouts() {
setScreen(
SavedWorkoutsScreen(
context = context,
workouts = viewModel.workouts,
onWorkoutSelected = { workout ->
viewModel.selectWorkout(workout)
showReadyToStart()
},
onBack = { showHome() }
)
)
}
fun showReadyToStart() {
setScreen(
ReadyToStartScreen(
context = context,
workout = viewModel.currentWorkout,
onStart = {
viewModel.startWorkout()
showRunningWorkout()
},
onBack = { showSavedWorkouts() }
)
)
}
fun showRunningWorkout() {
setScreen(
RunningWorkoutScreen(
context = context,
workout = viewModel.currentWorkout,
exercise = viewModel.getCurrentExercise(),
exerciseNumber = viewModel.currentExerciseIndex + 1,
onNextExercise = {
viewModel.nextExercise()
if (viewModel.workoutState.name == "FINISHED") {
showFinished()
} else {
showRunningWorkout()
}
},
onPause = {
viewModel.pauseWorkout()
showPause()
}
)
)
}
fun showPause() {
setScreen(
PauseScreen(
context = context,
onResume = {
viewModel.resumeWorkout()
showRunningWorkout()
},
onFinish = {
viewModel.finishWorkout()
showFinished()
}
)
)
}
fun showFinished() {
setScreen(
FinishedScreen(
context = context,
workout = viewModel.currentWorkout,
onBackHome = { showHome() }
)
)
}
}
@@ -0,0 +1,4 @@
package com.example.workouttimer.ui.screens
class ChooseBreak {
}
@@ -0,0 +1,4 @@
package com.example.workouttimer.ui.screens
class ChooseExercise {
}
@@ -0,0 +1,4 @@
package com.example.workouttimer.ui.screens
class ChooseReps {
}
@@ -0,0 +1,4 @@
package com.example.workouttimer.ui.screens
class CreateOrModifyScreen {
}
@@ -0,0 +1,47 @@
package com.example.workouttimer.ui.screens
import android.content.Context
import android.view.Gravity
import android.widget.Button
import android.widget.LinearLayout
import android.widget.TextView
import com.example.workouttimer.domain.Workout
class FinishedScreen(
context: Context,
workout: Workout?,
onBackHome: () -> Unit
) : LinearLayout(context) {
init {
orientation = VERTICAL
gravity = Gravity.CENTER
setPadding(48, 48, 48, 48)
val title = TextView(context)
title.text = "Workout beendet!"
title.textSize = 32f
title.gravity = Gravity.CENTER
val workoutText = TextView(context)
workoutText.text = workout?.name ?: ""
workoutText.textSize = 22f
workoutText.gravity = Gravity.CENTER
val summary = TextView(context)
summary.text = "Gute Arbeit. Dein Workout wurde erfolgreich abgeschlossen."
summary.textSize = 18f
summary.gravity = Gravity.CENTER
val homeButton = Button(context)
homeButton.text = "Zur Startseite"
homeButton.setOnClickListener {
onBackHome()
}
addView(title)
addView(workoutText)
addView(summary)
addView(homeButton)
}
}
@@ -0,0 +1,39 @@
package com.example.workouttimer.ui.screens
import android.content.Context
import android.view.Gravity
import android.widget.Button
import android.widget.LinearLayout
import android.widget.TextView
class HomeScreen(
context: Context,
onShowWorkouts: () -> Unit
) : LinearLayout(context) {
init {
orientation = VERTICAL
gravity = Gravity.CENTER
setPadding(48, 48, 48, 48)
val title = TextView(context)
title.text = "Workout Timer"
title.textSize = 32f
title.gravity = Gravity.CENTER
val subtitle = TextView(context)
subtitle.text = "Plane und starte dein Workout"
subtitle.textSize = 18f
subtitle.gravity = Gravity.CENTER
val button = Button(context)
button.text = "Gespeicherte Workouts"
button.setOnClickListener {
onShowWorkouts()
}
addView(title)
addView(subtitle)
addView(button)
}
}
@@ -0,0 +1,41 @@
package com.example.workouttimer.ui.screens
import android.content.Context
import android.view.Gravity
import android.widget.Button
import android.widget.LinearLayout
import android.widget.TextView
class PauseScreen(
context: Context,
onResume: () -> Unit,
onFinish: () -> Unit
) : LinearLayout(context) {
init {
orientation = VERTICAL
gravity = Gravity.CENTER
setPadding(48, 48, 48, 48)
val title = TextView(context)
title.text = "Pause"
title.textSize = 32f
title.gravity = Gravity.CENTER
val resumeButton = Button(context)
resumeButton.text = "Weiter trainieren"
resumeButton.setOnClickListener {
onResume()
}
val finishButton = Button(context)
finishButton.text = "Workout beenden"
finishButton.setOnClickListener {
onFinish()
}
addView(title)
addView(resumeButton)
addView(finishButton)
}
}
@@ -0,0 +1,59 @@
package com.example.workouttimer.ui.screens
import android.content.Context
import android.view.Gravity
import android.widget.Button
import android.widget.LinearLayout
import android.widget.TextView
import com.example.workouttimer.domain.ExerciseTarget
import com.example.workouttimer.domain.Workout
class ReadyToStartScreen(
context: Context,
workout: Workout?,
onStart: () -> Unit,
onBack: () -> Unit
) : LinearLayout(context) {
init {
orientation = VERTICAL
gravity = Gravity.CENTER_HORIZONTAL
setPadding(48, 48, 48, 48)
val title = TextView(context)
title.text = workout?.name ?: "Kein Workout ausgewählt"
title.textSize = 28f
title.gravity = Gravity.CENTER
addView(title)
workout?.exercises?.forEach { exercise ->
val exerciseText = TextView(context)
exerciseText.text = "${exercise.name} - ${formatTarget(exercise.target)}"
exerciseText.textSize = 18f
addView(exerciseText)
}
val startButton = Button(context)
startButton.text = "Workout starten"
startButton.setOnClickListener {
onStart()
}
val backButton = Button(context)
backButton.text = "Zurück"
backButton.setOnClickListener {
onBack()
}
addView(startButton)
addView(backButton)
}
private fun formatTarget(target: ExerciseTarget): String {
return when (target) {
is ExerciseTarget.Repetitions -> "${target.reps} Wiederholungen"
is ExerciseTarget.Duration -> "${target.seconds} Sekunden"
}
}
}
@@ -0,0 +1,72 @@
package com.example.workouttimer.ui.screens
import android.content.Context
import android.view.Gravity
import android.widget.Button
import android.widget.LinearLayout
import android.widget.TextView
import com.example.workouttimer.domain.Exercise
import com.example.workouttimer.domain.ExerciseTarget
import com.example.workouttimer.domain.Workout
class RunningWorkoutScreen(
context: Context,
workout: Workout?,
exercise: Exercise?,
exerciseNumber: Int,
onNextExercise: () -> Unit,
onPause: () -> Unit
) : LinearLayout(context) {
init {
orientation = VERTICAL
gravity = Gravity.CENTER
setPadding(48, 48, 48, 48)
val workoutTitle = TextView(context)
workoutTitle.text = workout?.name ?: "Workout läuft"
workoutTitle.textSize = 22f
workoutTitle.gravity = Gravity.CENTER
val exerciseTitle = TextView(context)
exerciseTitle.text = "Übung $exerciseNumber: ${exercise?.name ?: "-"}"
exerciseTitle.textSize = 30f
exerciseTitle.gravity = Gravity.CENTER
val targetText = TextView(context)
targetText.text = exercise?.target?.let { formatTarget(it) } ?: ""
targetText.textSize = 24f
targetText.gravity = Gravity.CENTER
val infoText = TextView(context)
infoText.text = exercise?.info ?: ""
infoText.textSize = 16f
infoText.gravity = Gravity.CENTER
val nextButton = Button(context)
nextButton.text = "Übung geschafft / Weiter"
nextButton.setOnClickListener {
onNextExercise()
}
val pauseButton = Button(context)
pauseButton.text = "Pause"
pauseButton.setOnClickListener {
onPause()
}
addView(workoutTitle)
addView(exerciseTitle)
addView(targetText)
addView(infoText)
addView(nextButton)
addView(pauseButton)
}
private fun formatTarget(target: ExerciseTarget): String {
return when (target) {
is ExerciseTarget.Repetitions -> "${target.reps} Wiederholungen"
is ExerciseTarget.Duration -> "${target.seconds} Sekunden"
}
}
}
@@ -0,0 +1,4 @@
package com.example.workouttimer.ui.screens
class SaveWorkoutScreen {
}
@@ -0,0 +1,46 @@
package com.example.workouttimer.ui.screens
import android.content.Context
import android.view.Gravity
import android.widget.Button
import android.widget.LinearLayout
import android.widget.TextView
import com.example.workouttimer.domain.Workout
class SavedWorkoutsScreen(
context: Context,
workouts: List<Workout>,
onWorkoutSelected: (Workout) -> Unit,
onBack: () -> Unit
) : LinearLayout(context) {
init {
orientation = VERTICAL
gravity = Gravity.CENTER_HORIZONTAL
setPadding(48, 48, 48, 48)
val title = TextView(context)
title.text = "Gespeicherte Workouts"
title.textSize = 28f
title.gravity = Gravity.CENTER
addView(title)
workouts.forEach { workout ->
val workoutButton = Button(context)
workoutButton.text = workout.name
workoutButton.setOnClickListener {
onWorkoutSelected(workout)
}
addView(workoutButton)
}
val backButton = Button(context)
backButton.text = "Zurück"
backButton.setOnClickListener {
onBack()
}
addView(backButton)
}
}
@@ -0,0 +1,62 @@
package com.example.workouttimer.viewmodel
import com.example.workouttimer.data.MockWorkoutRepository
import com.example.workouttimer.domain.Exercise
import com.example.workouttimer.domain.Workout
import com.example.workouttimer.domain.WorkoutState
class WorkoutViewModel {
private val repository = MockWorkoutRepository()
val workouts: List<Workout> = repository.getWorkouts()
var currentWorkout: Workout? = null
private set
var currentExerciseIndex = 0
private set
var workoutState = WorkoutState.READY
private set
fun selectWorkout(workout: Workout) {
currentWorkout = workout
currentExerciseIndex = 0
workoutState = WorkoutState.READY
}
fun startWorkout() {
workoutState = WorkoutState.RUNNING
}
fun pauseWorkout() {
workoutState = WorkoutState.PAUSED
}
fun resumeWorkout() {
workoutState = WorkoutState.RUNNING
}
fun finishWorkout() {
workoutState = WorkoutState.FINISHED
}
fun nextExercise() {
val workout = currentWorkout ?: return
if (currentExerciseIndex < workout.exercises.lastIndex) {
currentExerciseIndex++
} else {
finishWorkout()
}
}
fun getCurrentExercise(): Exercise? {
val workout = currentWorkout ?: return null
return workout.exercises[currentExerciseIndex]
}
}
@@ -0,0 +1,170 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
@@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

+7
View File
@@ -0,0 +1,7 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.WorkoutTimer" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
</resources>
+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
+3
View File
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">Workout Timer</string>
</resources>
+9
View File
@@ -0,0 +1,9 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.WorkoutTimer" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your light theme here. -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
</style>
<style name="Theme.WorkoutTimer" parent="Base.Theme.WorkoutTimer" />
</resources>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?><!--
Sample backup rules file; uncomment and customize as necessary.
See https://developer.android.com/guide/topics/data/autobackup
for details.
Note: This file is ignored for devices older than API 31
See https://developer.android.com/about/versions/12/backup-restore
-->
<full-backup-content>
<!--
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
-->
</full-backup-content>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?><!--
Sample data extraction rules file; uncomment and customize as necessary.
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
for details.
-->
<data-extraction-rules>
<cloud-backup>
<!-- TODO: Use <include> and <exclude> to control what is backed up.
<include .../>
<exclude .../>
-->
</cloud-backup>
<!--
<device-transfer>
<include .../>
<exclude .../>
</device-transfer>
-->
</data-extraction-rules>
@@ -0,0 +1,17 @@
package com.example.workouttimer
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}