Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added initial widgets to layout

  • Loading branch information...
commit 3de3cdd39201fb66ab9007122e673c56f0514e4f 1 parent 6c5c051
Mike Wolfson authored
1  bootcamp
@@ -1 +0,0 @@
-Subproject commit 7655dc175dce8aa95e65e2f943953148f2159f6d
View
2  project.properties
@@ -11,4 +11,4 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
-target=Google Inc.:Google APIs:16
+target=Google Inc.:Google APIs:15
View
34 res/layout/activity_main.xml
@@ -1,14 +1,36 @@
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<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"
- tools:context=".MainActivity" >
+ tools:context=".MainActivity"
+ android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- android:text="@string/hello_world" />
+ android:text="@string/expense_tracker_application" />
-</RelativeLayout>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/item_name" />
+
+ <EditText
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"/>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/item_amount" />
+
+ <EditText
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/enter" />
+
+</LinearLayout>
View
6 res/values/strings.xml
@@ -4,5 +4,11 @@
<string name="app_name">AnDevCon Bootcamp App </string>
<string name="hello_world">Hello world!</string>
<string name="menu_settings">Settings</string>
+ <string name="expense_tracker_application">Expense Tracker Application</string>
+ <string name="item_name">Item Name:</string>
+ <string name="expense_description_hint">Expense Description</string>
+ <string name="item_amount">Item Amount:</string>
+ <string name="expense_amount_hint">Expense Amount</string>
+ <string name="enter">Enter</string>
</resources>
Please sign in to comment.
Something went wrong with that request. Please try again.