Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
722 additions
and
50 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,127 @@ | ||
<?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" | ||
android:background="@android:color/white" | ||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
> | ||
<TextView | ||
android:id="@+id/title" | ||
<LinearLayout | ||
android:orientation="vertical" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:textColor="@android:color/black" | ||
android:textSize="20dip" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginBottom="10dip" | ||
android:text="C2DeMo" | ||
/> | ||
|
||
<Button | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/registerButton" | ||
android:text="Register" | ||
/> | ||
android:layout_height="fill_parent" | ||
android:background="@android:color/white" | ||
> | ||
<TextView | ||
android:id="@+id/title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="@android:color/black" | ||
android:textSize="20dip" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_margin="10dip" | ||
android:text="Test C2DM Notifications" | ||
/> | ||
<LinearLayout android:id="@+id/authSection" | ||
android:orientation="vertical" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="10dip" | ||
android:padding="5dip" | ||
android:background="#DDD"> | ||
|
||
<TextView | ||
android:id="@+id/authTitle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="@android:color/black" | ||
android:textSize="15dip" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_margin="10dip" | ||
android:text="@string/auth_title" | ||
android:singleLine="true" | ||
/> | ||
|
||
<EditText android:id="@+id/senderEmail" | ||
android:layout_height="wrap_content" | ||
android:layout_width="fill_parent" | ||
android:hint="Google Account Email" | ||
android:singleLine="true" | ||
android:inputType="textEmailAddress" | ||
android:text="c2dm@pivot13.com" | ||
/> | ||
|
||
<EditText android:id="@+id/senderPassword" | ||
android:layout_height="wrap_content" | ||
android:layout_width="fill_parent" | ||
android:hint="Google Account Password" | ||
android:password="true" | ||
android:text="c2dmpushforandroid" | ||
/> | ||
|
||
<Button | ||
android:id="@+id/authWithGoogleButton" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Authenticate with Google" | ||
/> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:orientation="vertical" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="10dip" | ||
android:padding="5dip" | ||
android:background="#DDD"> | ||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="@android:color/black" | ||
android:textSize="15dip" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_margin="10dip" | ||
android:text="@string/register_title" | ||
android:singleLine="true" | ||
/> | ||
|
||
<Button | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/registerButton" | ||
android:text="Register This Device" | ||
/> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:orientation="vertical" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="10dip" | ||
android:padding="5dip" | ||
android:background="#DDD"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="@android:color/black" | ||
android:textSize="15dip" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_margin="10dip" | ||
android:text="@string/send_title" | ||
android:singleLine="true" | ||
/> | ||
<EditText android:id="@+id/notificationText" | ||
android:layout_height="wrap_content" | ||
android:layout_width="fill_parent" | ||
android:hint="Notification Text" | ||
android:singleLine="true" | ||
/> | ||
<Button | ||
android:id="@+id/sendNotification" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Send Notification" | ||
/> | ||
|
||
</LinearLayout> | ||
</LinearLayout> | ||
</LinearLayout> | ||
</ScrollView> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">C2DeMo</string> | ||
<string name="register_button">"Register This Device"</string> | ||
<string name="auth_title"><b>Register to Send</b> C2DM Notifications</string> | ||
<string name="register_title"><b>Register to Receive</b> C2DM Notifications</string> | ||
<string name="send_title">Send Yourself a Notification</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.