Skip to content

Commit

Permalink
First push to github. Lots of things to do more
Browse files Browse the repository at this point in the history
  • Loading branch information
aliHafizji committed Nov 14, 2012
0 parents commit 853fd4e
Show file tree
Hide file tree
Showing 92 changed files with 2,225 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .classpath
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="lib" path="libs/jettison-1.2.jar"/>
<classpathentry kind="lib" path="libs/oauth2-client.jar"/>
<classpathentry kind="lib" path="libs/oauth2-common-0.1.jar"/>
<classpathentry kind="lib" path="libs/slf4j-api-1.6.1.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Cheddar</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
54 changes: 54 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,54 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.creativeperson.cheddar"
android:versionCode="1"
android:versionName="1.0" >

<uses-permission android:name="android.permission.ACCOUNT_MANAGER" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<uses-sdk
android:minSdkVersion="13"
android:targetSdkVersion="16" />

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.cheddar"
android:hardwareAccelerated="true" >
<activity
android:name=".LoginActivity"
android:label="@string/title_login_activity"
android:noHistory="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="accessresponse"
android:scheme="cheddar" />
</intent-filter>
</activity>
<activity
android:name=".ListActivity"
android:label="@string/title_listitem_list"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".TasksActivity"
android:windowSoftInputMode="stateHidden" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".ListActivity" />
</activity>
<service android:name=".services.CheddarListService"></service>
<service android:name=".services.CheddarTasksService"></service>
<provider
android:name=".data.CheddarContentProvider"
android:authorities="com.creativeperson.cheddar.providers.todoContentProvider"
android:exported="false" />
</application>
</manifest>
Binary file added ic_launcher-web.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added libs/android-support-v4.jar
Binary file not shown.
Binary file added libs/jettison-1.2.jar
Binary file not shown.
Binary file added libs/oauth2-client.jar
Binary file not shown.
Binary file added libs/oauth2-common-0.1.jar
Binary file not shown.
Binary file added libs/slf4j-api-1.6.1.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions proguard-project.txt
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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 *;
#}
17 changes: 17 additions & 0 deletions project.properties
@@ -0,0 +1,17 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-16
android.library.reference.1=../../../OpenSourceProjects/Android-PullToRefresh/library
android.library.reference.2=../../../OpenSourceProjects/Android-PullToRefresh/extras/PullToRefreshListFragment
android.library.reference.3=../../../OpenSourceProjects/drag-sort-listview
Binary file added res/drawable-hdpi/ab_bottom_solid_cheddar.9.png
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/ab_solid_cheddar.9.png
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/ab_stacked_solid_cheddar.9.png
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/ab_transparent_cheddar.9.png
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_dialog_alert_holo_light.png
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_launcher.png
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_menu_archive.png
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_menu_refresh.png
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/list_focused_cheddar.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/textfield_default_holo_light.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/textfield_focused_holo_light.9.png
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-ldpi/ic_launcher.png
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-ldpi/ic_menu_archive.png
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-ldpi/ic_menu_refresh.png
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/ab_bottom_solid_cheddar.9.png
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/ab_solid_cheddar.9.png
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/ab_stacked_solid_cheddar.9.png
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/ab_transparent_cheddar.9.png
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_dialog_alert_holo_light.png
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_launcher.png
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_menu_archive.png
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_menu_refresh.png
Binary file added res/drawable-mdpi/list_focused_cheddar.9.png
Binary file added res/drawable-mdpi/textfield_default_holo_light.9.png
Binary file added res/drawable-mdpi/textfield_focused_holo_light.9.png
Binary file added res/drawable-xhdpi/ab_bottom_solid_cheddar.9.png
Binary file added res/drawable-xhdpi/ab_solid_cheddar.9.png
Binary file added res/drawable-xhdpi/ab_stacked_solid_cheddar.9.png
Binary file added res/drawable-xhdpi/ab_transparent_cheddar.9.png
Binary file added res/drawable-xhdpi/ic_dialog_alert_holo_light.png
Binary file added res/drawable-xhdpi/ic_launcher.png
Binary file added res/drawable-xhdpi/ic_menu_archive.png
Binary file added res/drawable-xhdpi/ic_menu_refresh.png
Binary file added res/drawable-xhdpi/list_focused_cheddar.9.png
Binary file added res/drawable/drag.9.png
5 changes: 5 additions & 0 deletions res/drawable/pressed_background_cheddar.xml
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>

<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="@color/pressed_cheddar" />
</shape>
9 changes: 9 additions & 0 deletions res/drawable/selectable_background_cheddar.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" android:exitFadeDuration="@android:integer/config_mediumAnimTime">

<item android:drawable="@drawable/list_focused_cheddar" android:state_focused="true" android:state_pressed="false"/>
<item android:drawable="@drawable/pressed_background_cheddar" android:state_pressed="true"/>
<item android:drawable="@drawable/pressed_background_cheddar" android:state_activated="true"/>
<item android:drawable="@android:color/transparent"/>

</selector>
11 changes: 11 additions & 0 deletions res/drawable/selectable_background_edit_text.xml
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/textfield_default_holo_light" />
<item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/textfield_disabled_holo_light" />
<item android:state_enabled="true" android:state_focused="true" android:drawable="@drawable/textfield_activated_holo_light" />
<item android:state_enabled="true" android:state_activated="true" android:drawable="@drawable/textfield_focused_holo_light" />
<item android:state_enabled="true" android:drawable="@drawable/textfield_default_holo_light" />
<item android:state_focused="true" android:drawable="@drawable/textfield_disabled_focused_holo_light" />
<item android:drawable="@drawable/textfield_disabled_holo_light" />
</selector>
25 changes: 25 additions & 0 deletions res/layout/activity_listitem_twopane.xml
@@ -0,0 +1,25 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@color/cheddar_orange"
android:orientation="horizontal"
android:showDividers="middle"
tools:context=".ListItemListActivity" >

<fragment
android:id="@+id/listitem_list"
android:name="com.creativeperson.cheddar.fragments.ListsListFragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_weight="1" />

<FrameLayout
android:id="@+id/listitem_detail_container"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3" />

</LinearLayout>
9 changes: 9 additions & 0 deletions res/layout/activity_lists.xml
@@ -0,0 +1,9 @@
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:name="com.creativeperson.cheddar.fragments.ListsListFragment"
android:id="@+id/listitem_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
tools:context=".ListItemListActivity" />
29 changes: 29 additions & 0 deletions res/layout/activity_login.xml
@@ -0,0 +1,29 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="vertical" >

<TextView
android:id="@+id/login_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dip"
android:paddingRight="5dip"
android:gravity="center"
android:text="@string/login_text"
android:textColor="#ff888888"
android:textSize="16sp" />

<Button
android:id="@+id/login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dip"
android:text="@string/login"
tools:context=".LoginActivity" />

</LinearLayout>
6 changes: 6 additions & 0 deletions res/layout/activity_taskslist.xml
@@ -0,0 +1,6 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/listitem_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ListItemDetailActivity" />
69 changes: 69 additions & 0 deletions res/layout/custom_alert_dialog_content_view.xml
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/parentPanel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dip"
android:layout_marginRight="8dip"
android:orientation="vertical" >

<LinearLayout
android:id="@+id/topPanel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<LinearLayout
android:id="@+id/title_template"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dip"
android:layout_marginRight="16dip"
android:gravity="center_vertical|left"
android:minHeight="64dip"
android:orientation="horizontal" >

<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/icon"
android:paddingRight="4dip"
android:src="@null" />

<com.android.internal.widget.DialogTitle
android:id="@+id/customAlertTitle"
android:textSize="20sp"
android:textColor="#000"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:singleLine="true" />
</LinearLayout>

<View
android:id="@+id/titleDivider"
android:layout_width="match_parent"
android:layout_height="2dip"
android:background="@color/cheddar_orange" />
</LinearLayout>

<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false" >

<TextView
android:id="@+id/message"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="8dip"
android:paddingLeft="16dip"
android:paddingRight="16dip"
android:paddingTop="8dip" />
</ScrollView>

</LinearLayout>
8 changes: 8 additions & 0 deletions res/layout/empty_text_view.xml
@@ -0,0 +1,8 @@
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/no_data"
android:textSize="20dip" />
32 changes: 32 additions & 0 deletions res/layout/fragment_drag_and_drop_list_with_edit_text.xml
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".TasksListFragment">

<EditText
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="7dip"
android:imeOptions="actionDone"
android:inputType="textCapSentences"
android:textSize="18dip" />

<com.mobeta.android.dslv.DragSortListView
xmlns:dslv="http://schemas.android.com/apk/res/com.creativeperson.cheddar"
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/edit_text"
android:layout_margin="5dip"
dslv:collapsed_height="1dp"
dslv:drag_enabled="true"
dslv:drag_scroll_start="0.33"
dslv:drag_start_mode="onDown"
dslv:slide_shuffle_speed="0.3"
dslv:drag_handle_id="@id/drag_handle" />

<include layout="@layout/empty_text_view" />
</RelativeLayout>
24 changes: 24 additions & 0 deletions res/layout/fragment_pull_to_refresh_with_edit_text.xml
@@ -0,0 +1,24 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".TasksListFragment" >

<EditText
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="7dip"
android:inputType="textCapSentences"
android:textSize="18dip"
android:imeOptions="actionDone" />

<com.handmark.pulltorefresh.library.PullToRefreshListView
android:id="@+id/pulltorefresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/edit_text" />

<include
layout="@layout/empty_text_view" />
</RelativeLayout>
8 changes: 8 additions & 0 deletions res/layout/fragment_task_list_item.xml
@@ -0,0 +1,8 @@
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
style="?android:attr/textAppearanceLarge"
android:id="@+id/listitem_detail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp"
tools:context=".TasksListFragment" />

0 comments on commit 853fd4e

Please sign in to comment.