Implemented Activity-based list (reuses AppDemos project)
/trunk/res/layout/main.xml |
---|
4,9 → 4,17 |
android:layout_width="fill_parent" |
android:layout_height="fill_parent" |
> |
<TextView |
android:layout_width="fill_parent" |
android:layout_height="wrap_content" |
android:text="@string/hello" |
/> |
<TextView |
android:layout_width="fill_parent" |
android:layout_height="wrap_content" |
android:text="@string/title" |
/> |
<ListView android:id="@id/android:list" |
android:background="#00FF00" |
android:layout_weight="1" |
android:drawSelectorOnTop="false" |
/> |
</LinearLayout> |
/trunk/res/layout/frm_temperatures.xml |
---|
0,0 → 1,34 |
<?xml version="1.0" encoding="utf-8"?> |
<LinearLayout |
xmlns:android="http://schemas.android.com/apk/res/android" |
android:orientation="vertical" |
android:layout_width="wrap_content" |
android:layout_height="wrap_content"> |
<TextView |
android:layout_width="fill_parent" |
android:layout_height="wrap_content" |
android:text="@string/prompt02" |
/> |
<EditText android:id="@+id/et_temperatur" |
android:layout_width="fill_parent" |
android:layout_height="wrap_content" |
android:inputType="numberDecimal" /> |
<Spinner android:id="@+id/sp_s_tunit" |
android:layout_width="fill_parent" |
android:layout_height="wrap_content" |
android:drawSelectorOnTop="true" |
android:entries="@array/tem_display" |
android:entryValues="@array/tem_values" /> |
<Spinner android:id="@+id/sp_t_tunit" |
android:layout_width="fill_parent" |
android:layout_height="wrap_content" |
android:drawSelectorOnTop="true" |
android:entries="@array/tem_display" |
android:entryValues="@array/tem_values" /> |
</LinearLayout> |
Property changes: |
Added: svn:mime-type |
## -0,0 +1 ## |
+text/plain |
\ No newline at end of property |
Index: custom_dialog_activity.xml |
=================================================================== |
--- custom_dialog_activity.xml (nonexistent) |
+++ custom_dialog_activity.xml (revision 5) |
@@ -0,0 +1,24 @@ |
+<?xml version="1.0" encoding="utf-8"?> |
+<!-- Copyright (C) 2008 The Android Open Source Project |
+ |
+ Licensed under the Apache License, Version 2.0 (the "License"); |
+ you may not use this file except in compliance with the License. |
+ You may obtain a copy of the License at |
+ |
+ http://www.apache.org/licenses/LICENSE-2.0 |
+ |
+ Unless required by applicable law or agreed to in writing, software |
+ distributed under the License is distributed on an "AS IS" BASIS, |
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
+ See the License for the specific language governing permissions and |
+ limitations under the License. |
+--> |
+ |
+<!-- Demonstrates an activity with a custom dialog theme. |
+ See corresponding Java code com.android.sdk.app.CustomDialogActivity.java. --> |
+ |
+<!-- This screen consists of a single text field that displays some text. --> |
+<TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/text" |
+ android:layout_width="match_parent" android:layout_height="match_parent" |
+ android:gravity="center_vertical|center_horizontal" |
+ android:text="@string/custom_dialog_activity_text"/> |
/custom_dialog_activity.xml |
---|
Property changes: |
Added: svn:mime-type |
## -0,0 +1 ## |
+text/plain |
\ No newline at end of property |
Index: hello_world.xml |
=================================================================== |
--- hello_world.xml (nonexistent) |
+++ hello_world.xml (revision 5) |
@@ -0,0 +1,25 @@ |
+<?xml version="1.0" encoding="utf-8"?> |
+<!-- Copyright (C) 2007 The Android Open Source Project |
+ |
+ Licensed under the Apache License, Version 2.0 (the "License"); |
+ you may not use this file except in compliance with the License. |
+ You may obtain a copy of the License at |
+ |
+ http://www.apache.org/licenses/LICENSE-2.0 |
+ |
+ Unless required by applicable law or agreed to in writing, software |
+ distributed under the License is distributed on an "AS IS" BASIS, |
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
+ See the License for the specific language governing permissions and |
+ limitations under the License. |
+--> |
+ |
+<!-- Demonstrates basic application screen. |
+ See corresponding Java code com.android.sdk.app.HelloWorld.java. --> |
+ |
+<!-- This screen consists of a single text field that |
+ displays our "Hello, World!" text. --> |
+<TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/text" |
+ android:layout_width="match_parent" android:layout_height="match_parent" |
+ android:gravity="center_vertical|center_horizontal" |
+ android:text="@string/hello_world"/> |
/hello_world.xml |
---|
Property changes: |
Added: svn:mime-type |
## -0,0 +1 ## |
+text/plain |
\ No newline at end of property |
Index: dialog_activity.xml |
=================================================================== |
--- dialog_activity.xml (nonexistent) |
+++ dialog_activity.xml (revision 5) |
@@ -0,0 +1,24 @@ |
+<?xml version="1.0" encoding="utf-8"?> |
+<!-- Copyright (C) 2008 The Android Open Source Project |
+ |
+ Licensed under the Apache License, Version 2.0 (the "License"); |
+ you may not use this file except in compliance with the License. |
+ You may obtain a copy of the License at |
+ |
+ http://www.apache.org/licenses/LICENSE-2.0 |
+ |
+ Unless required by applicable law or agreed to in writing, software |
+ distributed under the License is distributed on an "AS IS" BASIS, |
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
+ See the License for the specific language governing permissions and |
+ limitations under the License. |
+--> |
+ |
+<!-- Demonstrates an activity with a dialog theme. |
+ See corresponding Java code com.android.sdk.app.DialogActivity.java. --> |
+ |
+<!-- This screen consists of a single text field that displays some text. --> |
+<TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/text" |
+ android:layout_width="match_parent" android:layout_height="match_parent" |
+ android:gravity="center_vertical|center_horizontal" |
+ android:text="@string/dialog_activity_text"/> |
/dialog_activity.xml |
---|
Property changes: |
Added: svn:mime-type |
## -0,0 +1 ## |
+text/plain |
\ No newline at end of property |
Index: frm_laengen.xml |
=================================================================== |
--- frm_laengen.xml (nonexistent) |
+++ frm_laengen.xml (revision 5) |
@@ -0,0 +1,33 @@ |
+<?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" |
+ > |
+ |
+ <TextView |
+ android:layout_width="fill_parent" |
+ android:layout_height="wrap_content" |
+ android:text="@string/prompt03" |
+ /> |
+ |
+ <EditText android:id="@+id/et_maass" |
+ android:layout_width="fill_parent" |
+ android:layout_height="wrap_content" |
+ android:inputType="numberDecimal" /> |
+ |
+ <Spinner android:id="@+id/sp_s_maass" |
+ android:layout_width="fill_parent" |
+ android:layout_height="wrap_content" |
+ android:drawSelectorOnTop="true" |
+ android:entries="@array/mas_display" |
+ android:entryValues="@array/mas_values" /> |
+ |
+ <Spinner android:id="@+id/sp_t_maass" |
+ android:layout_width="fill_parent" |
+ android:layout_height="wrap_content" |
+ android:drawSelectorOnTop="true" |
+ android:entries="@array/mas_display" |
+ android:entryValues="@array/mas_values" /> |
+ |
+</LinearLayout> |
/frm_laengen.xml |
---|
Property changes: |
Added: svn:mime-type |
## -0,0 +1 ## |
+text/plain |
\ No newline at end of property |
Index: frm_currency.xml |
=================================================================== |
--- frm_currency.xml (nonexistent) |
+++ frm_currency.xml (revision 5) |
@@ -0,0 +1,33 @@ |
+<?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" |
+ > |
+ |
+<TextView |
+ android:layout_width="fill_parent" |
+ android:layout_height="wrap_content" |
+ android:text="@string/prompt01" |
+ /> |
+ |
+<EditText android:id="@+id/et_amount" |
+ android:layout_width="fill_parent" |
+ android:layout_height="wrap_content" |
+ android:inputType="numberDecimal" /> |
+ |
+<Spinner android:id="@+id/sp_s_currencies" |
+ android:layout_width="fill_parent" |
+ android:layout_height="wrap_content" |
+ android:drawSelectorOnTop="true" |
+ android:entries="@array/cur_display" |
+ android:entryValues="@array/cur_values" /> |
+ |
+<Spinner android:id="@+id/sp_t_currencies" |
+ android:layout_width="fill_parent" |
+ android:layout_height="wrap_content" |
+ android:drawSelectorOnTop="true" |
+ android:entries="@array/cur_display" |
+ android:entryValues="@array/cur_values" /> |
+ |
+</LinearLayout> |
/frm_currency.xml |
---|
Property changes: |
Added: svn:mime-type |
## -0,0 +1 ## |
+text/plain |
\ No newline at end of property |