Skip to content

Commit

Permalink
Merge pull request #51 from MC-Timetracker/master
Browse files Browse the repository at this point in the history
Merge statistics and ui improvements
  • Loading branch information
sleidig committed Dec 1, 2014
2 parents 4ccb60b + bc17bdd commit 0a21a78
Show file tree
Hide file tree
Showing 46 changed files with 1,526 additions and 442 deletions.
6 changes: 5 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="lib" path="libs/achartengine-1.1.0.jar"/>
<classpathentry kind="lib" path="libs/achartengine-1.1.0.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/gullal/workspace/timetracker/libs/achartengine-1.1.0-javadocs.zip!/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="libs/achartengine-1.1.0-javadocs.zip"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
11 changes: 9 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<application
android:name=".ApplicationHelper"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:icon="@drawable/ic_launchertimeturner"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
Expand Down Expand Up @@ -47,7 +47,7 @@
android:label="@string/title_activity_list_recordings" >
</activity>
<activity
android:name=".Statistics"
android:name=".OverallStats"
android:label="@string/title_activity_statistics" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
Expand All @@ -70,12 +70,19 @@
android:label="@string/title_activity_edit_recording" >
</activity>

<activity
android:name=".TaskWiseStats"
android:label="@string/title_activity_task_wise_stats" >
</activity>


<receiver android:name=".BootReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" >
</action>
</intent-filter>
</receiver>

</application>

</manifest>
Binary file added ic_launchertimeturner-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=Google Inc.:Google APIs:19
target=android-19
android.library.reference.1=../appcompat_v7
android.library.reference.2=../../Downloads/adt-bundle-linux-x86-20140702/sdk/extras/android/support/v7/appcompat
37 changes: 37 additions & 0 deletions res/drawable-hdpi/greenstartbutton.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" >
<shape>
<solid
android:color="#70c656" />
<stroke
android:width="1dp"
android:color="#53933f" />
<corners
android:radius="3dp" />
<padding
android:left="10dp"
android:top="10dp"
android:right="10dp"
android:bottom="10dp" />
</shape>
</item>
<item>
<shape>
<gradient
android:startColor="#70c656"
android:endColor="#53933f"
android:angle="270" />
<stroke
android:width="1dp"
android:color="#53933f" />
<corners
android:radius="4dp" />
<padding
android:left="10dp"
android:top="10dp"
android:right="10dp"
android:bottom="10dp" />
</shape>
</item>
</selector>
Binary file added res/drawable-hdpi/ic_launchertimeturner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_time_range.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions res/drawable-hdpi/orangebutton.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" >
<shape>
<solid
android:color="#f3ae1b" />
<stroke
android:width="1dp"
android:color="#bb6008" />
<corners
android:radius="3dp" />
<padding
android:left="10dp"
android:top="10dp"
android:right="10dp"
android:bottom="10dp" />
</shape>
</item>
<item>
<shape>
<gradient
android:startColor="#f3ae1b"
android:endColor="#bb6008"
android:angle="270" />
<stroke
android:width="1dp"
android:color="#bb6008" />
<corners
android:radius="4dp" />
<padding
android:left="10dp"
android:top="10dp"
android:right="10dp"
android:bottom="10dp" />
</shape>
</item>
</selector>
37 changes: 37 additions & 0 deletions res/drawable-hdpi/redpausebutton.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" >
<shape>
<solid
android:color="#ef4444" />
<stroke
android:width="1dp"
android:color="#992f2f" />
<corners
android:radius="3dp" />
<padding
android:left="10dp"
android:top="10dp"
android:right="10dp"
android:bottom="10dp" />
</shape>
</item>
<item>
<shape>
<gradient
android:startColor="#ef4444"
android:endColor="#992f2f"
android:angle="270" />
<stroke
android:width="1dp"
android:color="#992f2f" />
<corners
android:radius="3dp" />
<padding
android:left="10dp"
android:top="10dp"
android:right="10dp"
android:bottom="10dp" />
</shape>
</item>
</selector>
11 changes: 0 additions & 11 deletions res/drawable-hdpi/roundedbutton.xml

This file was deleted.

Binary file added res/drawable-mdpi/ic_action_search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_launchertimeturner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_time_range.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_launchertimeturner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_time_range.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_launchertimeturner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_time_range.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions res/layout/activity_edit_recording.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="0dp"
android:layout_marginTop="250dp"
android:layout_marginTop="300dp"
android:layout_weight="1"
android:onClick="onSave"
android:text="@string/btnSave"
android:background="@drawable/orangebutton"
android:width="160dp" />

<Button
Expand All @@ -123,9 +124,10 @@
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="0dp"
android:layout_marginTop="250dp"
android:layout_marginTop="300dp"
android:layout_weight="1"
android:text="@string/btnCancel"
android:background="@drawable/orangebutton"
android:width="170dp"
android:onClick="onCancel" />
</TableRow>
Expand Down
6 changes: 3 additions & 3 deletions res/layout/activity_edit_task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/roundedbutton"
android:background="@drawable/orangebutton"
android:text="@string/btnEdit"
android:width="160dp" />

Expand All @@ -118,7 +118,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/roundedbutton"
android:background="@drawable/orangebutton"
android:text="@string/btnUpdate"
android:width="160dp" />

Expand All @@ -128,7 +128,7 @@
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_weight="1"
android:background="@drawable/roundedbutton"
android:background="@drawable/orangebutton"
android:text="@string/btnCancel"
android:width="170dp" />
</TableRow>
Expand Down
4 changes: 3 additions & 1 deletion res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:onClick="Start"
android:background="@drawable/greenstartbutton"
android:text="@string/btnStart" />

<iiitd.mc.timetracker.view.TaskAutoCompleteTextView
Expand All @@ -50,8 +51,9 @@
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:textSize="20sp"
android:textAllCaps="true"
android:textStyle="bold"
android:layout_below="@+id/root_layout"
android:background="@color/AppOrange"
android:text="@string/recentTv"/>

<ListView
Expand Down
16 changes: 8 additions & 8 deletions res/layout/activity_new_task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<iiitd.mc.timetracker.view.TaskAutoCompleteTextView
android:id="@+id/taskSelectionBox"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:ems="10"
android:gravity="top|left"
android:inputType="textAutoComplete|textAutoCorrect"/>
Expand All @@ -42,7 +42,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/row1"
android:layout_marginTop="40dp" >
android:layout_marginTop="30dp" >

<TextView
android:id="@+id/tasknametextview"
Expand All @@ -63,7 +63,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/row2"
android:layout_marginTop="60dp" >
android:layout_marginTop="50dp" >

<TextView
android:id="@+id/description"
Expand All @@ -86,7 +86,7 @@
android:ems="10"
android:inputType="textMultiLine"
android:maxLines="10"
android:scrollbars="vertical" />
android:scrollbars="vertical"/>
</TableRow>

<TableRow
Expand All @@ -99,9 +99,9 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="0dp"
android:layout_marginTop="100dp"
android:layout_marginTop="70dp"
android:layout_weight="1"
android:background="@drawable/roundedbutton"
android:background="@drawable/orangebutton"
android:text="@string/btnDone"
android:width="160dp" />

Expand All @@ -111,9 +111,9 @@
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="0dp"
android:layout_marginTop="100dp"
android:layout_marginTop="70dp"
android:layout_weight="1"
android:background="@drawable/roundedbutton"
android:background="@drawable/orangebutton"
android:text="@string/btnClear"
android:width="170dp" />
</TableRow>
Expand Down
52 changes: 52 additions & 0 deletions res/layout/activity_overall_statistics.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:fillViewport="true">



<LinearLayout

android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="vertical"
android:weightSum="1"
android:layout_gravity="top"
android:background="@android:color/transparent">

<TextView
android:id="@+id/timeRangeTv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textSize="20sp"/>

<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_gravity="center"
android:background="@android:color/darker_gray"/>

<LinearLayout

android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="350dp"
android:paddingLeft="10sp"
android:paddingRight="10sp"
android:id="@+id/chart"
android:layout_gravity="center_horizontal"
android:background="@android:color/transparent">

<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:id="@+id/no_data1"/>

</LinearLayout>

</LinearLayout>
</ScrollView>
7 changes: 6 additions & 1 deletion res/layout/activity_running.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
android:layout_height="wrap_content"
android:onClick="Pause"
android:padding="10dp"
android:layout_marginRight="20dp"
android:text="@string/btnPause"
android:background="@drawable/orangebutton"
android:visibility="visible" />

<Button
Expand All @@ -56,7 +58,9 @@
android:layout_height="wrap_content"
android:onClick="Resume"
android:padding="10dp"
android:layout_marginRight="20dp"
android:text="@string/btnResume"
android:background="@drawable/greenstartbutton"
android:visibility="gone" />

<Button
Expand All @@ -65,7 +69,8 @@
android:layout_height="wrap_content"
android:padding="10dp"
android:onClick="Stop"
android:text="@string/btnStop" />
android:text="@string/btnStop"
android:background="@drawable/redpausebutton" />
</LinearLayout>

</LinearLayout>
Expand Down
Loading

0 comments on commit 0a21a78

Please sign in to comment.