Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Reskin and Added Features #46

Open
wants to merge 96 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
7d6f9ca
Updated to remove warnings.
TheNathanGift Aug 13, 2018
aad9a47
basic audio cues
Squomp Aug 13, 2018
9611a69
CircularProgressBar and WorkoutCountdownFragment.java updated to make…
TheNathanGift Aug 14, 2018
a3d3182
model classes for stats
Squomp Aug 14, 2018
b37838d
test branch
Squomp Aug 15, 2018
87d7c25
Pause and PLay now works. There is a minor issue with playing when pa…
JorgePCS Aug 15, 2018
c8542d7
layout for logging info added, rep exercise stats saved in app
Squomp Aug 15, 2018
d4f857d
Lower bar on the countdown timer now has an animation when tapped tha…
nparsons58 Aug 16, 2018
1cc9bd1
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
nparsons58 Aug 16, 2018
420d83a
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
JorgePCS Aug 16, 2018
251da08
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
JorgePCS Aug 16, 2018
4c5d2a4
Fixed Jorge's messup with the countdown timer not initializing proper…
TheNathanGift Aug 16, 2018
15b0905
Added exercise descriptions when expanding bottom bar. Text only upda…
nparsons58 Aug 16, 2018
4b9a428
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
nparsons58 Aug 16, 2018
ff1ff86
something
Squomp Aug 20, 2018
3378a03
Refactored WorkoutCountdownFragment.java to only use one setupCountDo…
TheNathanGift Aug 20, 2018
f6773e7
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 20, 2018
da5fce3
adding maven repo in order to get pause and play button
JorgePCS Aug 20, 2018
86350fb
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
JorgePCS Aug 20, 2018
145f1d8
layouts done for workout log
Squomp Aug 20, 2018
2c6a9f7
Merge branch 'workout-log'
Squomp Aug 20, 2018
e5ac277
umm
TheNathanGift Aug 20, 2018
6fc17c8
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 20, 2018
2b3c85a
hopefully fixed
Squomp Aug 20, 2018
048411c
working on fix
Squomp Aug 20, 2018
46737bd
Changed play button to animate
JorgePCS Aug 20, 2018
9f42a95
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
JorgePCS Aug 20, 2018
49ef28a
builds
Squomp Aug 20, 2018
021ea52
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
Squomp Aug 20, 2018
c24d5c2
I don't even know
TheNathanGift Aug 20, 2018
5bd0130
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 20, 2018
8bb2d59
Fixed the merge conflicts with WorkoutCountdownFragment.java, there a…
TheNathanGift Aug 21, 2018
d5f70af
fixed empty string in rep box
Squomp Aug 21, 2018
74062cb
doesnt break on empty input for reps completed
Squomp Aug 21, 2018
6cec967
pulls stats into layout
Squomp Aug 21, 2018
119fb82
Updated the main menu through WorkoutListActivity.java to add additio…
TheNathanGift Aug 21, 2018
d787082
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 21, 2018
cab12e4
starting workout complete functionality
Squomp Aug 22, 2018
f7aaa14
fields on workout finished should get populate
Squomp Aug 22, 2018
d6899e5
Changed text margin and size for text inside the lower bar on the cou…
nparsons58 Aug 22, 2018
cfbc962
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
nparsons58 Aug 22, 2018
55871f8
Workout descriptions are now shown on the main menu when an exercise …
TheNathanGift Aug 22, 2018
c7cb066
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 22, 2018
7a53867
Pausing and playing during sound now fully works
JorgePCS Aug 22, 2018
996c573
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
JorgePCS Aug 22, 2018
8388f09
Changed countdown attribute so it is always above lower bar. Animatio…
nparsons58 Aug 22, 2018
f1e2efe
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
nparsons58 Aug 22, 2018
6669697
AllExerciseStatsFragment.java added and WorkoutCompleteActivity.java …
TheNathanGift Aug 23, 2018
8d4fa35
save stats
Squomp Aug 23, 2018
3926824
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
Squomp Aug 23, 2018
8f4113a
Some Java documentation has been finished on the WorkoutCountdownFrag…
JorgePCS Aug 23, 2018
97f8629
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
JorgePCS Aug 23, 2018
cec2f84
get stats from sharedPreferences
Squomp Aug 23, 2018
7396ae4
Updated the exercise colors.xml
TheNathanGift Aug 23, 2018
c835287
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 23, 2018
0d1c01c
Circular progress bar and workout countdown fragment visual overhaul.…
TheNathanGift Aug 23, 2018
b217684
working on passing array
Squomp Aug 23, 2018
470b0d2
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
Squomp Aug 23, 2018
9f509d6
Added an animation when clicking a workout int the main menu.
nparsons58 Aug 24, 2018
da6a9a4
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
nparsons58 Aug 24, 2018
25a19fd
Youtube video now shows up when the description is hit. When play but…
JorgePCS Aug 24, 2018
bcff4ef
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
JorgePCS Aug 24, 2018
29ef333
Visual changes to fragment_workout_countdown.xml
TheNathanGift Aug 24, 2018
3a3b092
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 24, 2018
eb2d9e5
data transfered between activities
Squomp Aug 24, 2018
cdf0714
No longer crashes when you click the same list item twice. Checks for…
JorgePCS Aug 24, 2018
c0387fc
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
JorgePCS Aug 24, 2018
7a28abd
Centered the YouTube thumbnail on the main menu.
TheNathanGift Aug 24, 2018
0ba9f4d
Visual changes to fragment_workout_countdown.xml almost completed, so…
TheNathanGift Aug 24, 2018
6b622c2
Visual changes to workout_countdown_info_container. Centering text, p…
TheNathanGift Aug 25, 2018
5564ed3
Stats container during a workout visually overhauled, still needs som…
TheNathanGift Aug 25, 2018
3c21899
stats done
Squomp Aug 26, 2018
5580ddb
The stats (average, best, last) now appear on the exercise phase for …
JorgePCS Aug 27, 2018
c614d6a
Fixed colors on the last few items in the stats container
TheNathanGift Aug 27, 2018
3f5bdd0
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 27, 2018
2f95f92
Fixed the layout on exercise changes to hide the name of the exercise.
TheNathanGift Aug 27, 2018
6b16ae4
Refactored WorkoutCountdownFragment.java to initialize all views in t…
TheNathanGift Aug 27, 2018
e34225c
Visual overhaul to activity_workout_complete.xml. Added a few resourc…
TheNathanGift Aug 27, 2018
e36bf32
Visual updates to pause and play buttons, text box added on workoutco…
TheNathanGift Aug 27, 2018
3dbb791
Percentage changes. No decimal and percent sign to the right.
JorgePCS Aug 27, 2018
375c022
Updated the sound effects and strings.xml to more fitting text. Added…
TheNathanGift Aug 27, 2018
6e30308
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 27, 2018
af3a1e1
success rate for time exercise no longer shows deciamals
Squomp Aug 27, 2018
fc0b5bf
comment workout complete activity
Squomp Aug 27, 2018
c982529
Bottom bar on WorkoutCountdownFragment is now locked on "Get Ready" a…
nparsons58 Aug 27, 2018
b0e8d19
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
nparsons58 Aug 27, 2018
ed6bc1e
Put time amounts back to their proper values.
nparsons58 Aug 27, 2018
e6380da
Resume button implemented but super broken.
TheNathanGift Aug 27, 2018
8035415
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
TheNathanGift Aug 27, 2018
bc45d7c
Added a bracket
TheNathanGift Aug 27, 2018
93d2b5c
Pause and resume functionality is fully functioning. Slight refactori…
TheNathanGift Aug 28, 2018
f824fd2
Cleaned up some code.
nparsons58 Aug 28, 2018
7a9cff5
Code refactoring of setupCountDownTimer
JorgePCS Aug 28, 2018
07a1273
Merge branch 'master' of https://github.com/Giftasaurus/seven_minute_…
JorgePCS Aug 28, 2018
03dbda1
Updated times back to 30 seconds and 10 seconds.
TheNathanGift Aug 28, 2018
b8a6bed
success rate now integer
Squomp Aug 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'io.fabric'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.michaelcarrano.seven_min_workout"
minSdkVersion 16
Expand All @@ -23,18 +23,20 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
implementation fileTree(dir: 'libs', include: ['*.jar'])

compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:design:25.0.1'

compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
implementation 'com.android.support:appcompat-v7:25.0.1'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support libraries should be the same version and these are not the latest stable version.

implementation 'com.android.support:design:25.3.1'
implementation 'com.github.ohoussein.playpauseview:playpauseview:1.0.2'
implementation 'com.google.code.gson:gson:2.8.2'
implementation('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
transitive = true;
}

// Testing Dependencies
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
//implementation 'com.android.support:support-v4:25.4.0'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
testImplementation 'junit:junit:4.12'
}
23 changes: 16 additions & 7 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,38 @@
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity android:name="com.michaelcarrano.seven_min_workout.WorkoutListActivity">
<activity
android:name=".WorkoutListActivity"
android:screenOrientation="portrait">
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason you are restricting the activity to only be portrait?


<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.michaelcarrano.seven_min_workout.WorkoutDetailActivity"
android:parentActivityName=".WorkoutListActivity">
android:name=".WorkoutDetailActivity"
android:parentActivityName=".WorkoutListActivity"
android:screenOrientation="portrait">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".WorkoutListActivity" />
</activity>
<activity
android:name="com.michaelcarrano.seven_min_workout.WorkoutCountdownActivity"

android:name=".WorkoutCountdownActivity"
android:parentActivityName=".WorkoutListActivity"
android:screenOrientation="portrait">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".WorkoutListActivity" />
</activity>

<activity
android:name="com.michaelcarrano.seven_min_workout.AboutActivity"
android:name=".AboutActivity"
android:label="@string/menu_about_app"
android:parentActivityName=".WorkoutListActivity">
android:parentActivityName=".WorkoutListActivity"
android:screenOrientation="portrait">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".WorkoutListActivity" />
Expand All @@ -45,6 +50,10 @@
<meta-data
android:name="io.fabric.ApiKey"
android:value="3fb5327e30111ad3ebb87c0769045f97c142cf2c" />

<activity
android:name=".WorkoutCompleteActivity"
android:screenOrientation="portrait"></activity>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be be changed to self-closing /> instead of </activity>

</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.michaelcarrano.seven_min_workout;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class AllExerciseStatsFragment extends Fragment {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_all_exercise_stats, container, false);
return rootView;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void onCreate() {
final int[] darkColors = resources.getIntArray(R.array.darkColors);
final int[] lightColors = resources.getIntArray(R.array.lightColors);

if (WorkoutContent.WORKOUTS.isEmpty()) {
if (WorkoutContent.MENU_ITEMS.isEmpty()) {
for (int i = 0; i < workoutNames.length; i++) {
WorkoutContent.addWorkout(
new WorkoutContent.Workout(
Expand All @@ -39,7 +39,6 @@ public void onCreate() {
)
);
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

/**
* Created by michaelcarrano on 10/1/16.
Expand Down Expand Up @@ -94,4 +95,40 @@ public FloatingActionButton setShowFab(boolean show) {
return fab;
}

@NonNull
public Button addResumeFab() {
Button button = (Button) findViewById(R.id.fabResume);

if (button == null) {
getLayoutInflater().inflate(R.layout.fab_resume, getCoordinatorLayout());
button = (Button) findViewById(R.id.fabResume);
}

setShowResumeFab(true);

return button;
}

@Nullable
public Button setShowResumeFab(boolean show) {
Button fab = (Button) findViewById(R.id.fabResume);

if (fab == null || fab.getVisibility() == View.VISIBLE && show || fab.getVisibility() == View.GONE && !show) {
return fab;
}

fab.clearAnimation();

CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) fab.getLayoutParams();
if (show) {
// params.setBehavior(new FloatingActionButtonBehavior(this));
fab.setVisibility(View.VISIBLE);
} else {
params.setBehavior(null);
fab.setVisibility(View.GONE);
}

return fab;
}

}
Loading