diff options
Diffstat (limited to 'Android/06-Notifications/Notifications/res/layout')
4 files changed, 79 insertions, 0 deletions
diff --git a/Android/06-Notifications/Notifications/res/layout/activity_main.xml b/Android/06-Notifications/Notifications/res/layout/activity_main.xml new file mode 100644 index 0000000..a9ee9c5 --- /dev/null +++ b/Android/06-Notifications/Notifications/res/layout/activity_main.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/fragment_container" + android:layout_width="match_parent" + android:layout_height="match_parent" />
\ No newline at end of file diff --git a/Android/06-Notifications/Notifications/res/layout/activity_test_front_end.xml b/Android/06-Notifications/Notifications/res/layout/activity_test_front_end.xml new file mode 100644 index 0000000..4a3a506 --- /dev/null +++ b/Android/06-Notifications/Notifications/res/layout/activity_test_front_end.xml @@ -0,0 +1,38 @@ +<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" + android:paddingBottom="@dimen/activity_vertical_margin" + android:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + tools:context=".TestFrontEndActivity" > + + <Button + android:id="@+id/start_main_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignLeft="@+id/age_tweets_button" + android:layout_alignParentBottom="true" + android:layout_marginBottom="133dp" + android:text="@string/start_main_activity" /> + + <Button + android:id="@+id/age_tweets_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_above="@+id/start_main_button" + android:layout_centerHorizontal="true" + android:layout_marginBottom="40dp" + android:text="@string/make_tweets_old" /> + + <Button + android:id="@+id/rejuv_tweets_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_above="@+id/age_tweets_button" + android:layout_alignLeft="@+id/age_tweets_button" + android:layout_marginBottom="37dp" + android:text="@string/make_tweets_new" /> + +</RelativeLayout> diff --git a/Android/06-Notifications/Notifications/res/layout/custom_notification.xml b/Android/06-Notifications/Notifications/res/layout/custom_notification.xml new file mode 100644 index 0000000..13ae38a --- /dev/null +++ b/Android/06-Notifications/Notifications/res/layout/custom_notification.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/toast_layout_root" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#7777" + android:padding="3dp"> + + <ImageView android:id="@+id/image" + android:layout_width="44dp" + android:layout_height="44dp" + android:layout_marginRight="10dp" + android:contentDescription="alert" + android:src="@android:drawable/ic_dialog_info" /> + + <TextView + android:id="@+id/text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="#FFF" + android:textSize="24sp" /> + +</LinearLayout> diff --git a/Android/06-Notifications/Notifications/res/layout/feed.xml b/Android/06-Notifications/Notifications/res/layout/feed.xml new file mode 100644 index 0000000..642633a --- /dev/null +++ b/Android/06-Notifications/Notifications/res/layout/feed.xml @@ -0,0 +1,13 @@ +<ScrollView 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=".FeedFragment" > + + <TextView + android:id="@+id/feed_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/greeting" /> + +</ScrollView>
\ No newline at end of file |