Skip to content

Commit

Permalink
Merge pull request #267 from rpandey1234/login
Browse files Browse the repository at this point in the history
Login fix
  • Loading branch information
elihart committed May 28, 2013
2 parents 54e9a81 + 533d42e commit 01aedbd
Show file tree
Hide file tree
Showing 9 changed files with 264 additions and 146 deletions.
13 changes: 10 additions & 3 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.additt.maple_android"
android:versionCode="8"
android:versionName="1.8" >
android:versionCode="9"
android:versionName="1.9" >

<uses-permission android:name="android.permission.CAMERA" />

<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down Expand Up @@ -45,6 +47,7 @@
android:label="@string/title_activity_login" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Expand Down Expand Up @@ -86,6 +89,10 @@
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/title_activity_full_image" >
</activity>
<activity
android:name="com.additt.maple_android.MainActivity"
android:label="@string/title_activity_main" >
</activity>
</application>

</manifest>
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Nudge Android
Additt Android
----

Ben Rudpolph
Rahul Pandey
Eli Hart
Created by: Ben Rudpolph, Rahul Pandey, Eli Hart

Contact info: [email protected]

Additt is crowd-sourced advertising that you'll love. We make it easy, fun, and addicting for you to create ads for companies and brands. Our app seamlessly connects to our website where you can browse other published ads, see different campaigns, and vote on ads. High quality ads get exciting rewards from Additt or the sponsoring organization!
Log in with Facebook to enjoy the full experience. Check out the full platform at additt.co!

Download the Android app on the [Play store](https://play.google.com/store/apps/details?id=com.additt.maple_android)
39 changes: 15 additions & 24 deletions res/layout/activity_login.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
<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=".LoginActivity"
android:background="#191919" >
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ImageView
android:id="@+id/additt_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/additt_logo"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="62dp" />

<Button
android:id="@+id/loginB"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@layout/button_sign_in"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"/>

</RelativeLayout>
<fragment android:name="com.additt.maple_android.SelectionFragment"
android:id="@+id/selectionFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<fragment android:name="com.additt.maple_android.SplashFragment"
android:id="@+id/splashFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
16 changes: 16 additions & 0 deletions res/layout/selection.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_gravity="center"
android:textColor="#333"
android:textSize="18sp"
android:text="Welcome, you are now logged in." />

</LinearLayout>
38 changes: 38 additions & 0 deletions res/layout/splash.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<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:orientation="vertical"
tools:context=".LoginActivity"
android:background="#191919" >

<ImageView
android:id="@+id/additt_logo"
android:layout_width="wrap_content"
android:contentDescription="Additt logo"
android:layout_height="wrap_content"
android:src="@drawable/additt_logo"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20dp" />

<TextView
android:id="@+id/profile_name"
android:layout_width="174dp"
android:layout_height="wrap_content"
android:layout_marginTop="35dp"
android:lines="2"
android:textSize="17sp"
android:textColor="#FFFFFF"
android:text="To get started, log in using Facebook"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"/>

<com.facebook.widget.LoginButton
android:id="@+id/login_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp"
android:layout_marginBottom="30dp" />

</LinearLayout>
1 change: 1 addition & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@
<string name="title_activity_full_image">FullImageActivity</string>
<string name="dummy_button">Dummy Button</string>
<string name="dummy_content">DUMMY\nCONTENT</string>
<string name="title_activity_main">MainActivity</string>

</resources>
Loading

0 comments on commit 01aedbd

Please sign in to comment.