Permalink
Browse files

Add more widgets and menus.

  • Loading branch information...
1 parent 6a00ea5 commit ead244d8dc1f8941f0a7f176ce3601a649e53b54 @sanrodari committed Oct 19, 2012
View
@@ -47,6 +47,60 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
+ <activity
+ android:name=".TogglesButtonExamples"
+ android:label="@string/title_activity_toggles_button_examples" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".SpinnerExample"
+ android:label="@string/title_activity_spinner_example" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".PickersExamples"
+ android:label="@string/title_activity_pickers_examples" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".OptionMenuExample"
+ android:label="@string/title_activity_option_menu_example" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".SubmenuAndGroupsExamples"
+ android:label="@string/title_activity_submenu_and_groups_examples" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".ContextualMenuExample"
+ android:label="@string/title_activity_contextual_menu_example" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
</application>
</manifest>
View
@@ -47,6 +47,60 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
+ <activity
+ android:name=".TogglesButtonExamples"
+ android:label="@string/title_activity_toggles_button_examples" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".SpinnerExample"
+ android:label="@string/title_activity_spinner_example" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".PickersExamples"
+ android:label="@string/title_activity_pickers_examples" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".OptionMenuExample"
+ android:label="@string/title_activity_option_menu_example" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".SubmenuAndGroupsExamples"
+ android:label="@string/title_activity_submenu_and_groups_examples" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name=".ContextualMenuExample"
+ android:label="@string/title_activity_contextual_menu_example" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
</application>
</manifest>
View
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,3 @@
+# cache for current jar dependecy. DO NOT EDIT.
+# format is <lastModified> <length> <SHA-1> <path>
+# Encoding is UTF-8
View
Binary file not shown.
@@ -0,0 +1,14 @@
+<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" >
+
+ <ListView
+ android:id="@+id/listView"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true" >
+ </ListView>
+
+</RelativeLayout>
@@ -0,0 +1,14 @@
+<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" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:text="@string/click_menu"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
+
+</RelativeLayout>
@@ -0,0 +1,24 @@
+<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" >
+
+ <Button
+ android:id="@+id/button1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:onClick="showTimePicker"
+ android:text="@string/show_time_picker" />
+
+ <Button
+ android:id="@+id/button2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@+id/button1"
+ android:layout_below="@+id/button1"
+ android:onClick="showDatePicker"
+ android:text="@string/show_date_picker" />
+
+</RelativeLayout>
@@ -10,7 +10,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:text="Sexo"
+ android:text="@string/sex"
android:textAppearance="?android:attr/textAppearanceLarge" />
<RadioGroup
@@ -0,0 +1,13 @@
+<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" >
+
+ <Spinner
+ android:id="@+id/spinner"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true" />
+
+</RelativeLayout>
@@ -0,0 +1,14 @@
+<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" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:text="@string/click_menu"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
+
+</RelativeLayout>
@@ -0,0 +1,42 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/LinearLayout1"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/textView1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:text="@string/with_oncheckedchanged"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
+
+ <ToggleButton
+ android:id="@+id/toggleButton1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:textOff="@string/vibration_off"
+ android:textOn="@string/vibration_on" />
+
+ <TextView
+ android:id="@+id/textView2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_marginTop="40dp"
+ android:text="@string/with_onclick_attribute"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
+
+ <ToggleButton
+ android:id="@+id/toggleButton2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:onClick="onToggleClicked"
+ android:textOff="@string/vibration_off"
+ android:textOn="@string/vibration_on" />
+
+</LinearLayout>
@@ -1,5 +0,0 @@
-<menu xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:id="@+id/menu_settings"
- android:title="@string/menu_settings"
- android:orderInCategory="100" />
-</menu>
@@ -1,5 +0,0 @@
-<menu xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:id="@+id/menu_settings"
- android:title="@string/menu_settings"
- android:orderInCategory="100" />
-</menu>
@@ -0,0 +1,11 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:id="@+id/actionSearch"
+ android:title="@string/search"
+ android:icon="@drawable/ic_action_search" />
+
+ <item android:id="@+id/actionEcho"
+ android:title="@string/echo"
+ android:icon="@drawable/ic_launcher" />
+
+</menu>
@@ -1,5 +0,0 @@
-<menu xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:id="@+id/menu_settings"
- android:title="@string/menu_settings"
- android:orderInCategory="100" />
-</menu>
@@ -0,0 +1,35 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:id="@+id/action1"
+ android:title="@string/an_action"
+ android:icon="@drawable/ic_launcher" />
+
+ <item android:id="@+id/actionButtons"
+ android:title="@string/title_activity_button_examples"
+ android:icon="@drawable/ic_launcher" />
+
+ <item android:id="@+id/actionCheckboxes"
+ android:title="@string/title_activity_checkboxes_example"
+ android:icon="@drawable/ic_launcher" />
+
+ <item android:id="@+id/actionEditTexts"
+ android:title="@string/title_activity_edit_texts_examples"
+ android:icon="@drawable/ic_launcher" />
+
+ <item android:id="@+id/actionPickersExamples"
+ android:title="@string/title_activity_pickers_examples"
+ android:icon="@drawable/ic_launcher" />
+
+ <item android:id="@+id/actionRadioButtonsExamples"
+ android:title="@string/title_activity_radio_buttons_example"
+ android:icon="@drawable/ic_launcher" />
+
+ <item android:id="@+id/actionSpinnerExample"
+ android:title="@string/title_activity_spinner_example"
+ android:icon="@drawable/ic_launcher" />
+
+ <item android:id="@+id/actionTogglesButtonExamples"
+ android:title="@string/title_activity_toggles_button_examples"
+ android:icon="@drawable/ic_launcher" />
+
+</menu>
@@ -1,5 +0,0 @@
-<menu xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:id="@+id/menu_settings"
- android:title="@string/menu_settings"
- android:orderInCategory="100" />
-</menu>
@@ -0,0 +1,48 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <item
+ android:id="@+id/actions"
+ android:title="actions">
+ <item
+ android:id="@+id/action1"
+ android:icon="@drawable/ic_launcher"
+ android:title="@string/an_action"/>
+ <item
+ android:id="@+id/action2"
+ android:icon="@drawable/ic_launcher"
+ android:title="@string/an_action"/>
+ </item>
+ <item
+ android:id="@+id/navegations"
+ android:title="navegations">
+ <item
+ android:id="@+id/actionButtons"
+ android:icon="@drawable/ic_launcher"
+ android:title="@string/title_activity_button_examples"/>
+ <item
+ android:id="@+id/actionCheckboxes"
+ android:icon="@drawable/ic_launcher"
+ android:title="@string/title_activity_checkboxes_example"/>
+ <item
+ android:id="@+id/actionEditTexts"
+ android:icon="@drawable/ic_launcher"
+ android:title="@string/title_activity_edit_texts_examples"/>
+ <item
+ android:id="@+id/actionPickersExamples"
+ android:icon="@drawable/ic_launcher"
+ android:title="@string/title_activity_pickers_examples"/>
+ <item
+ android:id="@+id/actionRadioButtonsExamples"
+ android:icon="@drawable/ic_launcher"
+ android:title="@string/title_activity_radio_buttons_example"/>
+ <item
+ android:id="@+id/actionSpinnerExample"
+ android:icon="@drawable/ic_launcher"
+ android:title="@string/title_activity_spinner_example"/>
+ <item
+ android:id="@+id/actionTogglesButtonExamples"
+ android:icon="@drawable/ic_launcher"
+ android:title="@string/title_activity_toggles_button_examples"/>
+ </item>
+
+</menu>
Oops, something went wrong.

0 comments on commit ead244d

Please sign in to comment.