Permalink
Browse files

Initial commit.

  • Loading branch information...
0 parents commit 5fcee7205bfa8665d842e3a9e878104399d8f171 @paddyforan paddyforan committed Dec 19, 2012
Showing with 859 additions and 0 deletions.
  1. +43 −0 .gitignore
  2. +41 −0 AndroidManifest.xml
  3. BIN ic_launcher-web.png
  4. BIN libs/android-support-v4.jar
  5. +20 −0 proguard-project.txt
  6. +15 −0 project.properties
  7. +35 −0 res/anim/slide_in_right.xml
  8. +35 −0 res/anim/slide_out_left.xml
  9. +9 −0 res/color/foreground_selector.xml
  10. +8 −0 res/color/selector_google_account.xml
  11. BIN res/drawable-hdpi/chevron_right.png
  12. BIN res/drawable-hdpi/ic_action_search.png
  13. BIN res/drawable-hdpi/ic_launcher.png
  14. BIN res/drawable-ldpi/ic_launcher.png
  15. BIN res/drawable-mdpi/ic_action_search.png
  16. BIN res/drawable-mdpi/ic_launcher.png
  17. BIN res/drawable-xhdpi/chevron_right.png
  18. BIN res/drawable-xhdpi/ic_action_search.png
  19. BIN res/drawable-xhdpi/ic_launcher.png
  20. +11 −0 res/drawable/action_bar_gradient.xml
  21. BIN res/drawable/chevron_right.png
  22. +16 −0 res/drawable/foreground.xml
  23. +20 −0 res/drawable/foreground_highlight.xml
  24. +53 −0 res/layout-land/activity_login.xml
  25. +21 −0 res/layout/action_bar_no_icon.xml
  26. +49 −0 res/layout/activity_login.xml
  27. +38 −0 res/layout/activity_register.xml
  28. +44 −0 res/layout/fragment_google_account.xml
  29. +24 −0 res/layout/listitem_google_account.xml
  30. +6 −0 res/menu/activity_login.xml
  31. +5 −0 res/values-land/strings.xml
  32. +7 −0 res/values-large/dimens.xml
  33. +10 −0 res/values/colors.xml
  34. +11 −0 res/values/dimens.xml
  35. +18 −0 res/values/strings.xml
  36. +62 −0 res/values/styles.xml
  37. +203 −0 src/org/twocloud/android/GoogleAccountFragment.java
  38. +35 −0 src/org/twocloud/android/LoginActivity.java
  39. +20 −0 src/org/twocloud/android/RegisterActivity.java
@@ -0,0 +1,43 @@
+# built application files
+*.apk
+*.ap_
+
+# files for the dex VM
+*.dex
+
+# Java class files
+*.class
+
+# generated files
+bin/
+gen/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+*.pydevproject
+.project
+.metadata
+bin/**
+tmp/**
+tmp/**/*
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="org.twocloud.android"
+ android:versionCode="1"
+ android:versionName="1.0" >
+
+ <uses-sdk
+ android:minSdkVersion="8"
+ android:targetSdkVersion="17" />
+
+ <uses-permission android:name="android.permission.GET_ACCOUNTS" />
+ <uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.USE_CREDENTIALS" />
+
+ <application
+ android:icon="@drawable/ic_launcher"
+ android:label="@string/app_name"
+ android:theme="@style/Theme.Twocloud" >
+ <activity
+ android:name="org.twocloud.android.LoginActivity"
+ android:label="@string/title_activity_login"
+ android:taskAffinity="@string/setup_taskAffinity" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name="org.twocloud.android.GoogleAccountFragment"
+ android:label="@string/title_activity_google_account_fragment" >
+ </activity>
+ <activity
+ android:name="org.twocloud.android.RegisterActivity"
+ android:finishOnTaskLaunch="true"
+ android:label="@string/title_activity_register"
+ android:taskAffinity="@string/setup_taskAffinity" >
+ </activity>
+ </application>
+
+</manifest>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
@@ -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 *;
+#}
@@ -0,0 +1,15 @@
+# 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-15
+android.library.reference.1=../ActionBarSherlock
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* //device/apps/common/res/anim/slide_in_right.xml
+**
+** Copyright 2007, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+<set xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <translate
+ android:duration="@android:integer/config_mediumAnimTime"
+ android:fillBefore="true"
+ android:fromXDelta="100%p"
+ android:toXDelta="0" />
+
+ <alpha
+ android:duration="@android:integer/config_mediumAnimTime"
+ android:fillBefore="true"
+ android:fromAlpha="0.0"
+ android:toAlpha="1.0" />
+
+</set>
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* //device/apps/common/res/anim/slide_out_left.xml
+**
+** Copyright 2007, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+<set xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <translate
+ android:duration="@android:integer/config_mediumAnimTime"
+ android:fillBefore="true"
+ android:fromXDelta="0"
+ android:toXDelta="-100%p" />
+
+ <alpha
+ android:duration="@android:integer/config_mediumAnimTime"
+ android:fillBefore="true"
+ android:fromAlpha="1.0"
+ android:toAlpha="0.01" />
+
+</set>
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:drawable="@drawable/foreground_highlight" android:state_enabled="true" android:state_pressed="true"/>
+ <item android:drawable="@drawable/foreground_highlight" android:state_enabled="true" android:state_focused="true"/>
+ <item android:drawable="@drawable/foreground_highlight" android:state_enabled="true" android:state_selected="true"/>
+ <item android:drawable="@drawable/foreground"/>
+
+</selector>
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:drawable="@color/android:transparent" android:state_enabled="true" android:state_pressed="true"/>
+ <item android:drawable="@color/android:transparent" android:state_enabled="true" android:state_focused="true"/>
+ <item android:drawable="@color/android:transparent"/>
+
+</selector>
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.
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.
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.
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle" >
+
+ <gradient
+ android:angle="90"
+ android:endColor="@color/action_bar_grad_end"
+ android:startColor="@color/action_bar_grad_start"
+ android:type="linear" />
+
+</shape>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <solid android:color="@color/layout_fg" />
+
+ <stroke
+ android:width="1dp"
+ android:color="@color/layout_fg_border" />
+
+ <padding
+ android:bottom="1dp"
+ android:left="1dp"
+ android:right="1dp"
+ android:top="1dp" />
+
+</shape>
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <gradient
+ android:angle="90"
+ android:endColor="@color/action_bar_grad_end"
+ android:startColor="@color/action_bar_grad_start"
+ android:type="linear" />
+
+ <stroke
+ android:width="1dp"
+ android:color="@color/layout_fg_border" />
+
+ <padding
+ android:bottom="1dp"
+ android:left="1dp"
+ android:right="1dp"
+ android:top="1dp" />
+
+</shape>
@@ -0,0 +1,53 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:background="@color/layout_bg"
+ android:baselineAligned="false"
+ android:orientation="horizontal" >
+
+ <RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/welcome_message"
+ android:layout_width="0dp"
+ android:layout_height="fill_parent"
+ android:layout_margin="@dimen/padding_medium"
+ android:layout_weight="1"
+ android:background="@drawable/foreground" >
+
+ <TextView
+ android:id="@+id/welcome_textview"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:gravity="center"
+ android:padding="@dimen/padding_medium"
+ android:text="@string/welcome"
+ android:textSize="@dimen/text_large"
+ tools:context=".LoginActivity" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/welcome_textview"
+ android:layout_centerHorizontal="true"
+ android:gravity="center"
+ android:padding="@dimen/padding_medium"
+ android:text="@string/setup_account_instructions"
+ android:textSize="@dimen/text_medium"
+ tools:context=".LoginActivity" />
+ </RelativeLayout>
+
+ <fragment
+ android:id="@+id/google_account_fragment"
+ android:name="org.twocloud.android.GoogleAccountFragment"
+ android:layout_width="0dp"
+ android:layout_height="fill_parent"
+ android:layout_marginBottom="@dimen/padding_medium"
+ android:layout_marginRight="@dimen/padding_medium"
+ android:layout_marginTop="@dimen/padding_medium"
+ android:layout_weight="1"
+ tools:layout="@layout/fragment_google_account" />
+
+</LinearLayout>
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@android:color/transparent" >
+
+ <TextView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="@dimen/padding_medium"
+ android:background="@android:color/transparent"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/app_name"
+ android:textColor="@color/action_bar_text"
+ android:textSize="@dimen/text_action_bar" >
+ </TextView>
+
+</RelativeLayout>
Oops, something went wrong.

0 comments on commit 5fcee72

Please sign in to comment.