Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 23 files changed
  • 0 comments
  • 1 contributor
Jul 23, 2012
McMav UpCheck for Hunter
added Third activity page.
Changed Launcher Icon
Used List Inflater;
NEED TO TAKE INFO FROM ACTIVITY 2 TO POPULATE NEW LIST
0abdda6
Jul 28, 2012
McMav Saturday July 28 db8f96c
11  AndroidManifest.xml
@@ -10,7 +10,8 @@
10 10
     <application
11 11
         android:icon="@drawable/ic_launcher"
12 12
         android:label="@string/app_name"
13  
-        android:theme="@style/AppTheme" >
  13
+    	android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">  
  14
+        
14 15
         <activity
15 16
             android:name=".Main"
16 17
             android:label="@string/title_activity_main" >
@@ -21,13 +22,13 @@
21 22
             </intent-filter>
22 23
         </activity>
23 24
         
24  
-        <activity android:name=".Button1Click">
  25
+        <activity android:name=".WhatToBudget">
25 26
             
26 27
         </activity>
27 28
         
28  
-        <activity android:name=".Button2Click">
29  
-            
30  
-        </activity>
  29
+        <activity android:name=".SetAmounts"/>
  30
+        
  31
+    
31 32
         
32 33
     </application>
33 34
 
2  gen/com/example/testactivities/BuildConfig.java
@@ -2,5 +2,5 @@
2 2
 package com.example.testactivities;
3 3
 
4 4
 public final class BuildConfig {
5  
-    public final static boolean DEBUG = true;
  5
+	public final static boolean DEBUG = true;
6 6
 }
55  gen/com/example/testactivities/R.java
@@ -8,12 +8,15 @@
8 8
 package com.example.testactivities;
9 9
 
10 10
 public final class R {
  11
+    public static final class array {
  12
+        public static final int checkbox_item_text=0x7f040000;
  13
+    }
11 14
     public static final class attr {
12 15
     }
13 16
     public static final class dimen {
14  
-        public static final int padding_large=0x7f040002;
15  
-        public static final int padding_medium=0x7f040001;
16  
-        public static final int padding_small=0x7f040000;
  17
+        public static final int padding_large=0x7f050002;
  18
+        public static final int padding_medium=0x7f050001;
  19
+        public static final int padding_small=0x7f050000;
17 20
     }
18 21
     public static final class drawable {
19 22
         public static final int good_job=0x7f020000;
@@ -21,28 +24,44 @@
21 24
         public static final int ic_launcher=0x7f020002;
22 25
     }
23 26
     public static final class id {
24  
-        public static final int button1=0x7f080002;
25  
-        public static final int button2=0x7f080003;
26  
-        public static final int imageView1=0x7f080001;
27  
-        public static final int menu_settings=0x7f080004;
28  
-        public static final int textView1=0x7f080000;
  27
+        public static final int GoToSetAmounts=0x7f090008;
  28
+        public static final int budgetFor=0x7f090009;
  29
+        public static final int checkActivities=0x7f09000d;
  30
+        public static final int checkAlcohol=0x7f09000e;
  31
+        public static final int checkBox1=0x7f090000;
  32
+        public static final int checkFood=0x7f09000b;
  33
+        public static final int checkFuel=0x7f09000a;
  34
+        public static final int checkLodging=0x7f09000c;
  35
+        public static final int destinationGo=0x7f090002;
  36
+        public static final int editDestination=0x7f090003;
  37
+        public static final int listView1=0x7f090005;
  38
+        public static final int menu_settings=0x7f09000f;
  39
+        public static final int textView1=0x7f090004;
  40
+        public static final int textView2=0x7f090006;
  41
+        public static final int text_wheretogo=0x7f090001;
  42
+        public static final int whatToShowList=0x7f090007;
29 43
     }
30 44
     public static final class layout {
31  
-        public static final int activity2_1layout=0x7f030000;
32  
-        public static final int button2screen=0x7f030001;
33  
-        public static final int main_layout=0x7f030002;
  45
+        public static final int budget_select_list_layout=0x7f030000;
  46
+        public static final int main_layout=0x7f030001;
  47
+        public static final int preferences_layout=0x7f030002;
  48
+        public static final int set_amounts_layout=0x7f030003;
  49
+        public static final int whattobudget=0x7f030004;
  50
+        public static final int whattobudget_without_list=0x7f030005;
34 51
     }
35 52
     public static final class menu {
36  
-        public static final int main_layout=0x7f070000;
  53
+        public static final int main_layout=0x7f080000;
37 54
     }
38 55
     public static final class string {
39  
-        public static final int app_name=0x7f050000;
40  
-        public static final int button=0x7f050004;
41  
-        public static final int hello_world=0x7f050001;
42  
-        public static final int menu_settings=0x7f050002;
43  
-        public static final int title_activity_main=0x7f050003;
  56
+        public static final int Go=0x7f060006;
  57
+        public static final int Wheredoyouwanttogo=0x7f060005;
  58
+        public static final int app_name=0x7f060000;
  59
+        public static final int button=0x7f060004;
  60
+        public static final int hello_world=0x7f060001;
  61
+        public static final int menu_settings=0x7f060002;
  62
+        public static final int title_activity_main=0x7f060003;
44 63
     }
45 64
     public static final class style {
46  
-        public static final int AppTheme=0x7f060000;
  65
+        public static final int AppTheme=0x7f070000;
47 66
     }
48 67
 }
BIN  res/drawable-hdpi/ic_launcher.png
BIN  res/drawable-ldpi/ic_launcher.png
BIN  res/drawable-mdpi/ic_launcher.png
BIN  res/drawable-xhdpi/ic_launcher.png
13  res/layout/activity2_1layout.xml
... ...
@@ -1,13 +0,0 @@
1  
-<?xml version="1.0" encoding="utf-8"?>
2  
-<LinearLayout android:layout_width="match_parent"
3  
-    android:layout_height="match_parent"
4  
-    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android">
5  
-
6  
-    <TextView
7  
-        android:id="@+id/textView1"
8  
-        android:layout_width="wrap_content"
9  
-        android:layout_height="wrap_content"
10  
-        android:text="Large Text"
11  
-        android:textAppearance="?android:attr/textAppearanceLarge" />
12  
-
13  
-</LinearLayout>
18  res/layout/budget_select_list_layout.xml
... ...
@@ -0,0 +1,18 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3
+    android:layout_width="match_parent"
  4
+    android:layout_height="match_parent"
  5
+    android:orientation="horizontal" >
  6
+




  7
+<CheckBox
  8
+    android:id="@+id/checkBox1"
  9
+    android:layout_width="wrap_content"
  10
+    android:layout_height="60dp"
  11
+    android:layout_marginLeft="15dp"
  12
+    android:layout_marginTop="5dp"
  13
+    android:text="CheckBox"
  14
+    android:textColor="#ffffff"
  15
+    android:textColorHint="#ffffff"
  16
+    android:textSize="20dp" />
  17
+
  18
+</LinearLayout>
21  res/layout/button2screen.xml
... ...
@@ -1,21 +0,0 @@
1  
-<?xml version="1.0" encoding="utf-8"?>
2  
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3  
-    android:layout_width="match_parent"
4  
-    android:layout_height="match_parent"
5  
-    android:orientation="vertical" >
6  
-
7  
-    <TextView
8  
-        android:id="@+id/textView1"
9  
-        android:layout_width="wrap_content"
10  
-        android:layout_height="wrap_content"
11  
-        android:text="Button 2 Screen!!"
12  
-        android:textAppearance="?android:attr/textAppearanceLarge" />
13  
-
14  
-    <ImageView
15  
-        android:id="@+id/imageView1"
16  
-        android:layout_width="match_parent"
17  
-        android:layout_height="wrap_content"
18  
-        android:layout_weight="0.38"
19  
-        android:src="@drawable/good_job" />
20  
-
21  
-</LinearLayout>
40  res/layout/main_layout.xml
... ...
@@ -1,32 +1,34 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
1 2
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2  
-    xmlns:tools="http://schemas.android.com/tools"
3  
-    android:layout_width="match_parent"
4  
-    android:layout_height="match_parent" >
  3
+	xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
  4
+	android:layout_height="match_parent">
5 5
 
6 6
     <TextView
7  
-        android:id="@+id/textView1"
  7
+        android:id="@+id/text_wheretogo"
8 8
         android:layout_width="wrap_content"
9 9
         android:layout_height="wrap_content"
  10
+        android:layout_alignParentTop="true"
10 11
         android:layout_centerHorizontal="true"
11  
-        android:layout_centerVertical="true"
  12
+        android:layout_marginTop="134dp"
12 13
         android:padding="@dimen/padding_medium"
13  
-        android:text="@string/hello_world"
14  
-        tools:context=".Main" />
  14
+        android:text="@string/Wheredoyouwanttogo"
  15
+        android:textSize="25dp"
  16
+        tools:context=".Main" /><Button android:id="@+id/destinationGo" 
  17
+        android:layout_width="100dp" 
  18
+        android:layout_height="wrap_content" 
  19
+        android:layout_alignParentBottom="true" 
  20
+        android:layout_centerHorizontal="true" 
  21
+        android:layout_marginBottom="84dp" 
  22
+        android:text="@string/Go" />
15 23
 
16  
-    <Button
17  
-        android:id="@+id/button1"
  24
+    <EditText
  25
+        android:id="@+id/editDestination"
18 26
         android:layout_width="wrap_content"
19 27
         android:layout_height="wrap_content"
20  
-        android:layout_above="@+id/textView1"
  28
+        android:layout_below="@+id/text_wheretogo"
21 29
         android:layout_centerHorizontal="true"
22  
-        android:text="button" />
23  
-
24  
-    <Button
25  
-        android:id="@+id/button2"
26  
-        android:layout_width="wrap_content"
27  
-        android:layout_height="wrap_content"
28  
-        android:layout_alignLeft="@+id/button1"
29  
-        android:layout_below="@+id/textView1"
30  
-        android:text="Button" />
  30
+        android:layout_marginTop="19dp"
  31
+        android:ems="10"
  32
+        android:inputType="text" />
31 33
 
32 34
 </RelativeLayout>
7  res/layout/preferences_layout.xml
... ...
@@ -0,0 +1,7 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3
+    android:layout_width="match_parent"
  4
+    android:layout_height="match_parent" >
  5
+    
  6
+
  7
+</TableLayout>
44  res/layout/set_amounts_layout.xml
... ...
@@ -0,0 +1,44 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<TableLayout android:layout_width="match_parent"
  3
+    android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android">
  4
+

  5
+    <RelativeLayout
  6
+        android:layout_width="wrap_content"
  7
+        android:layout_height="wrap_content" >
  8
+
  9
+        <TextView
  10
+            android:id="@+id/textView1"
  11
+            android:layout_width="wrap_content"
  12
+            android:layout_height="wrap_content"
  13
+            android:layout_alignParentTop="true"
  14
+            android:layout_centerHorizontal="true"
  15
+            android:text="Large Text"
  16
+            android:textAppearance="?android:attr/textAppearanceLarge"
  17
+            android:textSize="25dp" />
  18
+
  19
+    </RelativeLayout>
  20
+

  21
+    <ListView
  22
+        android:id="@+id/listView1"
  23
+        android:layout_width="match_parent"
  24
+        android:layout_height="362dp" >
  25
+
  26
+    </ListView>
  27
+

  28
+    <RelativeLayout
  29
+        android:layout_width="wrap_content"
  30
+        android:layout_height="wrap_content" >
  31
+
  32
+        <TextView
  33
+            android:id="@+id/textView2"
  34
+            android:layout_width="wrap_content"
  35
+            android:layout_height="wrap_content"
  36
+            android:layout_alignParentLeft="true"
  37
+            android:layout_alignParentTop="true"
  38
+            android:layout_marginLeft="88dp"
  39
+            android:text="Medium Text"
  40
+            android:textAppearance="?android:attr/textAppearanceMedium" />
  41
+
  42
+    </RelativeLayout>
  43
+
  44
+</TableLayout>
30  res/layout/whattobudget.xml
... ...
@@ -0,0 +1,30 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3
+    android:layout_width="match_parent"
  4
+    android:layout_height="match_parent"
  5
+    android:orientation="vertical" >
  6
+
  7
+    <TextView
  8
+        android:id="@+id/textView1"
  9
+        android:layout_width="wrap_content"
  10
+        android:layout_height="wrap_content"
  11
+        android:text="What items do you want to Budget?"
  12
+        android:textAppearance="?android:attr/textAppearanceLarge"
  13
+        android:typeface="sans" />
  14
+
  15
+    <ListView
  16
+        android:id="@+id/whatToShowList"
  17
+        android:layout_width="wrap_content"
  18
+        android:layout_height="411dp"
  19
+        android:layout_gravity="center_vertical"
  20
+        android:layout_weight="0.37"
  21
+        android:textColor="#ffffff" >
  22
+    </ListView>
  23
+
  24
+    <Button
  25
+        android:id="@+id/GoToSetAmounts"
  26
+        android:layout_width="wrap_content"
  27
+        android:layout_height="wrap_content"
  28
+        android:text="Next" />
  29
+
  30
+</TableLayout>
45  res/layout/whattobudget_without_list.xml
... ...
@@ -0,0 +1,45 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3
+    android:layout_width="match_parent"
  4
+    android:layout_height="match_parent" >
  5
+



  6
+    <TextView
  7
+        android:id="@+id/budgetFor"
  8
+        android:layout_width="wrap_content"
  9
+        android:layout_height="wrap_content"
  10
+        android:gravity="center"
  11
+        android:text="What would you like to budget for?"
  12
+        android:textAppearance="?android:attr/textAppearanceLarge" />
  13
+



  14
+    <CheckBox
  15
+        android:id="@+id/checkFuel"
  16
+        android:layout_width="wrap_content"
  17
+        android:layout_height="wrap_content"
  18
+        android:checked="true"
  19
+        android:text="Fuel" />
  20
+    
  21
+     <CheckBox
  22
+        android:id="@+id/checkFood"
  23
+        android:layout_width="wrap_content"
  24
+        android:layout_height="wrap_content"
  25
+        android:text="Food" />
  26
+     
  27
+      <CheckBox
  28
+        android:id="@+id/checkLodging"
  29
+        android:layout_width="wrap_content"
  30
+        android:layout_height="wrap_content"
  31
+        android:text="Lodging" />
  32
+      
  33
+       <CheckBox
  34
+        android:id="@+id/checkActivities"
  35
+        android:layout_width="wrap_content"
  36
+        android:layout_height="wrap_content"
  37
+        android:text="Activities" />
  38
+       
  39
+        <CheckBox
  40
+        android:id="@+id/checkAlcohol"
  41
+        android:layout_width="wrap_content"
  42
+        android:layout_height="wrap_content"
  43
+        android:text="Alcohol" />
  44
+
  45
+</TableLayout>
14  res/values/bugeted_items.xml
... ...
@@ -0,0 +1,14 @@
  1
+<?xml version="1.0" encoding="utf-8"?>
  2
+<resources>
  3
+   
  4
+    <string-array name = "checkbox_item_text">
  5
+        <item name = "Fuel">Fuel</item>
  6
+        <item name = "Food">Food</item>
  7
+        <item name = "Lodging">Lodging</item>
  8
+        <item name = "Activities">Activities</item>
  9
+        <item name = "Alcohol">Alcohol</item>
  10
+        <item name = "Other">Other/Additional</item>   
  11
+    </string-array>
  12
+       
  13
+    
  14
+</resources>
4  res/values/strings.xml
... ...
@@ -1,9 +1,11 @@
1 1
 <resources>
2 2
 
3  
-    <string name="app_name">TestActivities</string>
  3
+    <string name="app_name">TravelCost</string>
4 4
     <string name="hello_world">Hello world!</string>
5 5
     <string name="menu_settings">Settings</string>
6 6
     <string name="title_activity_main">Activity Test</string>
7 7
     <string name="button">Button</string>
  8
+    <string name="Wheredoyouwanttogo">Where do you want to go?</string>
  9
+    <string name="Go">Go</string>
8 10
 
9 11
 </resources>
2  res/values/styles.xml
... ...
@@ -1,5 +1,5 @@
1 1
 <resources>
2 2
 
3  
-    <style name="AppTheme" parent="android:Theme.Light" />
  3
+    <style name="AppTheme" parent="@android:style/Theme.Light.NoTitleBar.Fullscreen" />
4 4
 
5 5
 </resources>
24  src/com/example/testactivities/Button2Click.java
... ...
@@ -1,24 +0,0 @@
1  
-package com.example.testactivities;
2  
-
3  
-import android.app.Activity;
4  
-import android.os.Bundle;
5  
-import android.widget.ImageView;
6  
-
7  
-public class Button2Click extends Activity {
8  
-	
9  
-	@Override
10  
-	protected void onCreate(Bundle savedInstanceState) {
11  
-		// TODO Auto-generated method stub
12  
-		super.onCreate(savedInstanceState);
13  
-		setContentView(R.layout.button2screen);
14  
-		
15  
-		ImageView goodjob = (ImageView) findViewById(R.id.imageView1);
16  
-		goodjob.setImageResource(R.drawable.good_job);
17  
-		
18  
-		
19  
-		
20  
-	}
21  
-	
22  
-	
23  
-
24  
-}
41  src/com/example/testactivities/Main.java
@@ -3,42 +3,37 @@
3 3
 import android.os.Bundle;
4 4
 import android.app.Activity;
5 5
 import android.content.Intent;
  6
+import android.util.Log;
6 7
 import android.view.View;
7 8
 import android.view.View.OnClickListener;
8 9
 import android.widget.Button;
  10
+import android.widget.EditText;
9 11
 
10 12
 public class Main extends Activity {
11 13
 
12  
-    @Override
13  
-    public void onCreate(Bundle savedInstanceState) {
14  
-        super.onCreate(savedInstanceState);
15  
-        setContentView(R.layout.main_layout);
16  
-             
17  
-        Button b = (Button) findViewById(R.id.button1);
18  
-        b.setOnClickListener(new OnClickListener() {
19  
-			
20  
-			public void onClick(View v) {
21  
-				// TODO Auto-generated method stub
22  
-				
23  
-			startActivity(new Intent(Main.this, Button1Click.class));
  14
+	@Override
  15
+	public void onCreate(Bundle savedInstanceState) {
  16
+		super.onCreate(savedInstanceState);
24 17
 		
25  
-			}
26  
-
  18
+		setContentView(R.layout.main_layout);
27 19
 		
28 20
 		
29  
-        });
30  
-        Button c = (Button) findViewById(R.id.button2);
31  
-        c.setOnClickListener(new OnClickListener() {
  21
+		EditText destination = (EditText) findViewById(R.id.editDestination);
  22
+		destination.getEditableText().toString();
  23
+				
  24
+		Button go = (Button) findViewById(R.id.destinationGo);
  25
+		go.setOnClickListener(new OnClickListener() {
32 26
 			
33 27
 			public void onClick(View v) {
34  
-				// TODO Auto-generated method stub
35  
-				startActivity(new Intent(Main.this, Button2Click.class));
36 28
 				
  29
+				startActivity(new Intent(Main.this, WhatToBudget.class));
37 30
 				
38 31
 			}
39 32
 		});
40  
-        
41  
-    
  33
+		
  34
+		
  35
+		
  36
+		
42 37
 
43  
-    
44  
-}}
  38
+	}
  39
+}
10  src/com/example/testactivities/Button1Click.java → src/com/example/testactivities/SetAmounts.java
@@ -2,19 +2,19 @@
2 2
 
3 3
 import android.app.Activity;
4 4
 import android.os.Bundle;
  5
+import android.widget.TextView;
5 6
 
6  
-public class Button1Click extends Activity {
  7
+public class SetAmounts extends Activity {
7 8
 	
8 9
 	@Override
9 10
 	protected void onCreate(Bundle savedInstanceState) {
10 11
 		// TODO Auto-generated method stub
11 12
 		super.onCreate(savedInstanceState);
  13
+		setContentView(R.layout.set_amounts_layout);
12 14
 		
13  
-		setContentView(R.layout.activity2_1layout);
14  
-		
  15
+		TextView title = (TextView) findViewById(R.id.textView1);
  16
+		title.setText("Set Amounts");
15 17
 		
16 18
 	}
17  
-		
18  
-	
19 19
 
20 20
 }
7  src/com/example/testactivities/SetPreferences.java
... ...
@@ -0,0 +1,7 @@
  1
+package com.example.testactivities;
  2
+
  3
+import android.app.Activity;
  4
+
  5
+public class SetPreferences extends Activity {
  6
+
  7
+}
164  src/com/example/testactivities/WhatToBudget.java
... ...
@@ -0,0 +1,164 @@
  1
+package com.example.testactivities;
  2
+
  3
+import java.util.List;
  4
+
  5
+import android.app.Activity;
  6
+import android.app.ListActivity;
  7
+import android.content.Context;
  8
+import android.content.Intent;
  9
+import android.os.Bundle;
  10
+import android.util.Log;
  11
+import android.view.LayoutInflater;
  12
+import android.view.View;
  13
+import android.view.View.OnClickListener;
  14
+import android.view.ViewGroup;
  15
+import android.widget.AdapterView;
  16
+import android.widget.AdapterView.OnItemClickListener;
  17
+import android.widget.ArrayAdapter;
  18
+import android.widget.Button;
  19
+import android.widget.CheckBox;
  20
+import android.widget.ImageView;
  21
+import android.widget.ListView;
  22
+
  23
+public class WhatToBudget extends Activity{
  24
+	
  25
+	
  26
+	@Override
  27
+	protected void onCreate(Bundle savedInstanceState) {
  28
+		// TODO Auto-generated method stub
  29
+		super.onCreate(savedInstanceState);
  30
+		setContentView(R.layout.whattobudget);
  31
+		
  32
+
  33
+// START OF LIST VIEW
  34
+		ListView list = (ListView) findViewById(R.id.whatToShowList);		
  35
+		list.setAdapter(new SelectAdapter(this, 
  36
+				android.R.layout.simple_list_item_1,R.id.checkBox1,
  37
+				getResources().getStringArray(R.array.checkbox_item_text)));
  38
+		
  39
+
  40
+		
  41
+		
  42
+		// Go TO NEXT PAGE BUTTON
  43
+		Button goToNext = (Button) findViewById(R.id.GoToSetAmounts);
  44
+		goToNext.setOnClickListener(new OnClickListener() {
  45
+			
  46
+			public void onClick(View v) {
  47
+				startActivity(new Intent(WhatToBudget.this, SetAmounts.class));
  48
+				
  49
+			}
  50
+
  51
+
  52
+// THIS IS WHERE THE EVIL LIST ADAPTER STARTS.
  53
+				
  54
+				class SelectAdapter extends ArrayAdapter<String> {
  55
+			
  56
+					public SelectAdapter(Context context, int resource,
  57
+							int textViewResourceId, String[] strings) {
  58
+						super(context, resource, textViewResourceId, strings);
  59
+						
  60
+	
  61
+						OnItemClickListener checkClickListener = new OnItemClickListener() {
  62
+			
  63
+							public void onItemClick(AdapterView<?> arg0, View arg1,
  64
+									int arg2, long arg3) {
  65
+												
  66
+								
  67
+								
  68
+								
  69
+								// TODO Auto-generated method stub
  70
+								
  71
+							}
  72
+						};
  73
+					
  74
+						// TODO Auto-generated constructor stub
  75
+					}
  76
+			//	AND THIS IS WHERE IT GET S REALLY WIERD. 
  77
+					@Override
  78
+					public View getView(int position, View convertView, ViewGroup parent) {
  79
+						LayoutInflater Inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  80
+						
  81
+						View row = Inflater.inflate(R.layout.budget_select_list_layout, 
  82
+								//Why is root = parent?
  83
+								parent, 
  84
+								// What does this mean exactly?
  85
+								false);
  86
+						
  87
+						
  88
+						String[] items = getResources().getStringArray(R.array.checkbox_item_text);
  89
+						
  90
+			//			Button onOff = (Button) row.findViewById(R.id.toggleListButtonOnOff);
  91
+						CheckBox checkable = (CheckBox) row.findViewById(R.id.checkBox1);
  92
+						
  93
+						checkable.setText(items[position]);
  94
+						
  95
+						/**	
  96
+						 
  97
+						OnItemClickListener checkClickListener = new OnItemClickListener() {
  98
+			
  99
+						public void onItemClick(AdapterView<?> arg0, View arg1,
  100
+									int arg2, long arg3) {
  101
+								checkClickListener(SelectAdapter<> parent, View view,);
  102
+								
  103
+								
  104
+								
  105
+								// TODO Auto-generated method stub
  106
+								
  107
+							}
  108
+						
  109
+						}; 
  110
+						
  111
+						*/
  112
+						return row;
  113
+							
  114
+				
  115
+					
  116
+				}
  117
+			
  118
+			
  119
+			}
  120
+		}); 	
  121
+		
  122
+		
  123
+		
  124
+	}	
  125
+	
  126
+	@Override
  127
+	protected void onRestart() {
  128
+		// TODO Auto-generated method stub
  129
+		super.onRestart();
  130
+	}
  131
+	
  132
+	@Override
  133
+	protected void onStart() {
  134
+		// TODO Auto-generated method stub
  135
+		super.onStart();
  136
+	}
  137
+	
  138
+		@Override
  139
+		protected void onResume() {
  140
+			// TODO Auto-generated method stub
  141
+			super.onResume();
  142
+		}
  143
+		
  144
+		@Override
  145
+		protected void onPause() {
  146
+			// TODO Auto-generated method stub
  147
+			super.onPause();
  148
+		}
  149
+		
  150
+	@Override
  151
+	protected void onStop() {
  152
+		// TODO Auto-generated method stub
  153
+		super.onStop();
  154
+	}
  155
+	
  156
+	@Override
  157
+	protected void onDestroy() {
  158
+		// TODO Auto-generated method stub
  159
+		super.onDestroy();
  160
+	}
  161
+	
  162
+	
  163
+
  164
+}

No commit comments for this range

Something went wrong with that request. Please try again.