diff options
Diffstat (limited to 'espresso/espresso-sample/src/main/res/layout')
18 files changed, 0 insertions, 1146 deletions
diff --git a/espresso/espresso-sample/src/main/res/layout/actionbar_activity.xml b/espresso/espresso-sample/src/main/res/layout/actionbar_activity.xml deleted file mode 100644 index 41fa6fa..0000000 --- a/espresso/espresso-sample/src/main/res/layout/actionbar_activity.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:orientation="vertical" - android:padding="20dip" > - - <Button - android:id="@+id/show_contextual_action_bar" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:text="@string/text_show" /> - - <Button - android:id="@+id/hide_contextual_action_bar" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:text="@string/text_hide" /> - - <TextView - android:id="@+id/text_action_bar_result" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:layout_marginTop="20dp" - android:text="@string/text_empty" - android:textAppearance="?android:attr/textAppearanceSmall" /> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/delegating_edit_text.xml b/espresso/espresso-sample/src/main/res/layout/delegating_edit_text.xml deleted file mode 100644 index 8d4cb33..0000000 --- a/espresso/espresso-sample/src/main/res/layout/delegating_edit_text.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<merge xmlns:android="http://schemas.android.com/apk/res/android" > - - <EditText - android:id="@+id/delegate_edit_text" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:inputType="text" - android:singleLine="true" /> - - <TextView - android:id="@+id/edit_text_message" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:singleLine="false" - android:visibility="gone" /> - -</merge> diff --git a/espresso/espresso-sample/src/main/res/layout/display_activity.xml b/espresso/espresso-sample/src/main/res/layout/display_activity.xml deleted file mode 100644 index 5781524..0000000 --- a/espresso/espresso-sample/src/main/res/layout/display_activity.xml +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<!-- XML for screen for displaying data received from another activity. --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentRight="true" - android:layout_alignParentTop="true" - android:orientation="vertical" > - - <TextView - android:id="@+id/display_title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/display_title" - android:textAppearance="?android:attr/textAppearanceMedium" /> - - <TextView - android:id="@+id/display_data" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/display_data" - android:textAppearance="?android:attr/textAppearanceSmall" /> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/drawer_activity.xml b/espresso/espresso-sample/src/main/res/layout/drawer_activity.xml deleted file mode 100644 index ea5532d..0000000 --- a/espresso/espresso-sample/src/main/res/layout/drawer_activity.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<android.support.v4.widget.DrawerLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/drawer_layout" - android:layout_width="fill_parent" - android:layout_height="fill_parent" > - - <!-- The main content view --> - <FrameLayout - android:layout_width="match_parent" - android:layout_height="match_parent" > - <TextView - android:id="@+id/drawer_text_view" - android:layout_width="wrap_content" - android:layout_height="wrap_content" /> - </FrameLayout> - - <ListView - android:id="@+id/drawer_list" - android:layout_width="240dp" - android:layout_height="match_parent" - android:layout_gravity="start" - android:choiceMode="singleChoice" - android:divider="@android:color/transparent" - android:dividerHeight="0dp" - android:background="#111" /> - -</android.support.v4.widget.DrawerLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/drawer_row.xml b/espresso/espresso-sample/src/main/res/layout/drawer_row.xml deleted file mode 100644 index f56a688..0000000 --- a/espresso/espresso-sample/src/main/res/layout/drawer_row.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_gravity="fill_horizontal|center_vertical" - android:gravity="fill_horizontal" - android:minHeight="70dip" - android:orientation="horizontal" > - - <TextView android:id="@+id/drawer_row_name" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_alignParentLeft="true" - android:gravity="left|center_vertical"/> -</RelativeLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/fragment_stack.xml b/espresso/espresso-sample/src/main/res/layout/fragment_stack.xml deleted file mode 100644 index 0861f87..0000000 --- a/espresso/espresso-sample/src/main/res/layout/fragment_stack.xml +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:gravity="center_horizontal" - android:orientation="vertical" - android:padding="4dip" > - - <FrameLayout - android:id="@+id/simple_fragment" - android:layout_width="match_parent" - android:layout_height="0px" - android:layout_weight="1" > - </FrameLayout> - - <Button - android:id="@+id/new_fragment" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="0" - android:text="Create New Fragment" > - - <requestFocus /> - </Button> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/gesture_activity.xml b/espresso/espresso-sample/src/main/res/layout/gesture_activity.xml deleted file mode 100644 index d2bf3f7..0000000 --- a/espresso/espresso-sample/src/main/res/layout/gesture_activity.xml +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<!-- XML for screen providing ability to test different clicks and gestures. --> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:fillViewport="true" - android:orientation="vertical" > - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" > - - <TextView - android:id="@+id/text_click" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" - android:gravity="center" - android:text="@string/text_click" - android:textAppearance="?android:attr/textAppearanceMedium" - android:visibility="gone" /> - - <TextView - android:id="@+id/text_long_click" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" - android:gravity="center" - android:text="@string/text_long_click" - android:textAppearance="?android:attr/textAppearanceMedium" - android:visibility="gone" /> - - <TextView - android:id="@+id/text_swipe" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" - android:gravity="center" - android:text="@string/text_swipe" - android:textAppearance="?android:attr/textAppearanceMedium" - android:visibility="gone" /> - - <TextView - android:id="@+id/text_double_click" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" - android:gravity="center" - android:text="@string/text_double_click" - android:textAppearance="?android:attr/textAppearanceMedium" - android:visibility="gone" /> - </LinearLayout> - - <View - android:id="@+id/gesture_area" - android:layout_width="fill_parent" - android:layout_height="0dp" - android:layout_weight="1" - android:clickable="true" - android:gravity="top" - android:onClick="areaClicked" /> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/list_activity.xml b/espresso/espresso-sample/src/main/res/layout/list_activity.xml deleted file mode 100644 index 20dfc5c..0000000 --- a/espresso/espresso-sample/src/main/res/layout/list_activity.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<!-- XML for a screen with a list view. --> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical" - android:paddingBottom="48dp" - android:paddingTop="48dp" > - - <LinearLayout - android:layout_width="fill_parent" - android:layout_height="24dp" > - - <TextView - android:id="@+id/selection_row" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/row_label" /> - - <TextView - android:id="@+id/selection_row_value" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginLeft="12dp" /> - </LinearLayout> - - <LinearLayout - android:layout_width="fill_parent" - android:layout_height="24dp" > - - <TextView - android:id="@+id/selection_column" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/column_label" /> - - <TextView - android:id="@+id/selection_column_value" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginLeft="12dp" /> - </LinearLayout> - - <ListView - android:id="@+id/list" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/list_item.xml b/espresso/espresso-sample/src/main/res/layout/list_item.xml deleted file mode 100644 index d1cf1d9..0000000 --- a/espresso/espresso-sample/src/main/res/layout/list_item.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="fill_parent" > - - <TextView - android:id="@+id/item_content" - android:layout_width="wrap_content" - android:layout_height="wrap_content" /> - - <TextView - android:id="@+id/item_size" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginLeft="50dp" /> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/menu_activity.xml b/espresso/espresso-sample/src/main/res/layout/menu_activity.xml deleted file mode 100644 index f47e76b..0000000 --- a/espresso/espresso-sample/src/main/res/layout/menu_activity.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:orientation="vertical" - android:padding="20dip" > - - <LinearLayout - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:gravity="center_horizontal" - android:orientation="horizontal" > - - <Button - android:id="@+id/popup_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginRight="10dp" - android:onClick="showPopup" - android:text="Click here for popup menu!" /> - </LinearLayout> - - <LinearLayout - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:gravity="center_horizontal" - android:orientation="horizontal" > - - <TextView - android:id="@+id/text_context_menu" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="long-click here for context menu!" - android:textAppearance="?android:attr/textAppearanceMedium" /> - </LinearLayout> - - <TextView - android:id="@+id/text_menu_result" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:layout_marginTop="20dp" - android:gravity="center" - android:text="@string/text_empty" - android:textAppearance="?android:attr/textAppearanceSmall" /> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/pager_activity.xml b/espresso/espresso-sample/src/main/res/layout/pager_activity.xml deleted file mode 100644 index 015b2fb..0000000 --- a/espresso/espresso-sample/src/main/res/layout/pager_activity.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/pager_layout" - android:layout_width="fill_parent" - android:layout_height="fill_parent" > - -</android.support.v4.view.ViewPager> diff --git a/espresso/espresso-sample/src/main/res/layout/pager_view.xml b/espresso/espresso-sample/src/main/res/layout/pager_view.xml deleted file mode 100644 index 0e8a802..0000000 --- a/espresso/espresso-sample/src/main/res/layout/pager_view.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="fill_parent" > - - <TextView - android:id="@+id/pager_content" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:gravity="center" /> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/popup_window.xml b/espresso/espresso-sample/src/main/res/layout/popup_window.xml deleted file mode 100644 index f596ecb..0000000 --- a/espresso/espresso-sample/src/main/res/layout/popup_window.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<!-- XML for screen providing ability to enter text and send some intents. --> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:orientation="vertical" > - - <TextView - android:id="@+id/popup_title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/popup_title" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/popup_window_text" /> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/scroll_activity.xml b/espresso/espresso-sample/src/main/res/layout/scroll_activity.xml deleted file mode 100644 index ecfee52..0000000 --- a/espresso/espresso-sample/src/main/res/layout/scroll_activity.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<!-- XML for screen that holds various scroll views. --> - -<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:fillViewport="true" - android:orientation="vertical" > - - <LinearLayout - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:orientation="vertical" > - - <TextView - android:id="@+id/top_left" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="top_left" /> - - <ScrollView - android:layout_width="fill_parent" - android:layout_height="50dp" - android:layout_marginTop="10dp" - android:background="#FFDDDDDD" - android:fillViewport="true" - android:orientation="vertical" > - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:orientation="vertical" > - - <TextView - android:id="@+id/double_scroll" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="200dp" - android:text="double_scroll" - android:textColor="#000000" /> - </LinearLayout> - </ScrollView> - - <!-- Keep this on bottom to test scrolling to views that are not showing. --> - <!-- Huge top margin to guarantee this being out of view on large screen layout. --> - - <HorizontalScrollView - android:layout_width="fill_parent" - android:layout_height="50dp" - android:layout_marginTop="3000dp" - android:background="#FFDDDDDD" > - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:orientation="horizontal" > - - <TextView - android:id="@+id/bottom_left" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="bottom_left" - android:textColor="#000000" /> - - <TextView - android:id="@+id/bottom_right" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginLeft="3000dp" - android:text="bottom_right" - android:textColor="#000000" /> - </LinearLayout> - </HorizontalScrollView> - </LinearLayout> - -</ScrollView> diff --git a/espresso/espresso-sample/src/main/res/layout/send_activity.xml b/espresso/espresso-sample/src/main/res/layout/send_activity.xml deleted file mode 100644 index 2e67143..0000000 --- a/espresso/espresso-sample/src/main/res/layout/send_activity.xml +++ /dev/null @@ -1,313 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<!-- - XML for screen providing ability to enter text, send some intents, - switch to gesture activity and test scroll down action. ---> - -<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:fillViewport="true" - android:orientation="vertical" > - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:orientation="vertical" > - - <TextView - android:id="@+id/send_title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:clickable="true" - android:onClick="sendData" - android:text="@string/send_title" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <EditText - android:id="@+id/send_data_edit_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:ems="10" - android:hint="@string/send_hint" /> - - <Button - android:id="@+id/send_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="sendData" - android:text="@string/button_send" /> - - <EditText - android:id="@+id/enter_data_edit_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:ems="10" - android:hint="@string/enter_hint" /> - - <TextView - android:id="@+id/enter_data_response_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <TextView - android:id="@+id/call" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/send_intent_to_call" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <EditText - android:id="@+id/send_data_to_call_edit_text" - android:layout_width="229dp" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:ems="10" - android:hint="@string/send_hint_for_call" /> - - <Button - android:id="@+id/send_to_call_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="sendDataToCall" - android:text="@string/button_call" /> - - <TextView - android:id="@+id/send_data_message" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/send_message" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <EditText - android:id="@+id/send_data_to_message_edit_text" - android:layout_width="290dp" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:ems="10" - android:hint="@string/send_hint" - android:text="@string/send_data_to_message_edit_text" /> - - <Button - android:id="@+id/send_message_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="sendMessage" - android:text="@string/button_to_message" /> - - <TextView - android:id="@+id/goto_browser" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/send_intent_to_browser" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <EditText - android:id="@+id/send_data_to_browser_edit_text" - android:layout_width="290dp" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:ems="10" - android:hint="@string/send_hint" /> - - <Button - android:id="@+id/send_to_browser_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="sendDataToBrowser" - android:text="@string/button_to_browser" /> - - <TextView - android:id="@+id/pick_contact_title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/pick_title" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <Button - android:id="@+id/pick_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="pickContact" - android:text="@string/button_pick" /> - - <TextView - android:id="@+id/phone_number" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" /> - - <TextView - android:id="@+id/market" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/send_intent_to_market" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <EditText - android:id="@+id/send_to_market_data" - android:layout_width="229dp" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:ems="10" - android:hint="@string/send_hint_to_market" /> - - <Button - android:id="@+id/send_to_market_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="clickToMarket" - android:text="@string/button_market" /> - - <EditText - android:id="@+id/search_box" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:ems="10" - android:hint="search box" - android:imeOptions="actionSearch" - android:inputType="text" /> - - <TextView - android:id="@+id/search_result" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:visibility="invisible" /> - - <TextView - android:id="@+id/weird_text_title" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="Delegating Edit Text" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <com.google.android.apps.common.testing.ui.testapp.DelegatingEditText - android:id="@+id/delegating_edit_text" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" /> - - <TextView - android:id="@+id/gesture_title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:text="@string/gesture_title" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <Button - android:id="@+id/go_to_gesture_activity" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="clickToGesture" - android:text="@string/button_gesture" /> - - <Button - android:id="@+id/scroll_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="clickToScroll" - android:text="@string/launch_scroll_activity" /> - - <Button - android:id="@+id/list_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="clickToList" - android:text="@string/launch_list_activity" /> - - <Button - android:id="@+id/make_alert_dialog" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="showDialog" - android:text="@string/make_alert_dialog_button" /> - - <Button - android:id="@+id/make_popup_menu_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="showPopupMenu" - android:text="@string/make_popup_menu_button" /> - - <Button - android:id="@+id/make_popup_view_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:onClick="showPopupView" - android:text="@string/make_popup_view_button" /> - - <AutoCompleteTextView - android:id="@+id/auto_complete_text_view" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="10dp" - android:completionThreshold="1" - android:hint="@string/pick_water" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - - <!-- Keep this on bottom to test scrolling to views that are not showing. --> - <!-- Huge top margin to guarantee this being out of view on large screen layout. --> - - <Button - android:id="@+id/bottom_send_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="1000dp" - android:onClick="sendData" - android:text="@string/button_send_bottom" /> - - <TextView - android:id="@+id/bottom_send_text_view" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="1000dp" - android:clickable="true" - android:onClick="sendData" - android:text="@string/send_title" /> - </LinearLayout> - -</ScrollView> diff --git a/espresso/espresso-sample/src/main/res/layout/simple_activity.xml b/espresso/espresso-sample/src/main/res/layout/simple_activity.xml deleted file mode 100644 index 31aa760..0000000 --- a/espresso/espresso-sample/src/main/res/layout/simple_activity.xml +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<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" - android:orientation="vertical" > - - <Spinner - android:id="@+id/spinner_simple" - android:layout_width="fill_parent" - android:layout_height="wrap_content" /> - - <TextView - android:id="@+id/spinnertext_simple" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:text="" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <View - android:layout_width="1dp" - android:layout_height="30dp" /> - - <Button - android:id="@+id/button_simple" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:onClick="simpleButtonClicked" - android:text="@string/button_simple" /> - - <TextView - android:id="@+id/text_simple" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:text="@string/text_simple" - android:textAppearance="?android:attr/textAppearanceLarge" /> - - <View - android:layout_width="1dp" - android:layout_height="30dp" /> - - <EditText - android:id="@+id/sendtext_simple" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:ems="10" - android:hint="@string/send_hint" /> - - <Button - android:id="@+id/send_simple" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:onClick="sendButtonClicked" - android:text="@string/button_send" /> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/swipe_activity.xml b/espresso/espresso-sample/src/main/res/layout/swipe_activity.xml deleted file mode 100644 index e7bfa76..0000000 --- a/espresso/espresso-sample/src/main/res/layout/swipe_activity.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<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" - android:orientation="vertical" > - - <!-- With update to rev 19, swipe does not consistently work on small pagers - b/12113054 opened to investigate why this regressed .--> - <android.support.v4.view.ViewPager - android:id="@+id/small_pager" - android:layout_width="120dp" - android:layout_height="48dp" /> - - <RelativeLayout - android:layout_width="fill_parent" - android:layout_height="200dp"> - <android.support.v4.view.ViewPager - android:id="@+id/overlapped_pager" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:layout_alignParentTop="true" - android:layout_alignParentLeft="true"/> - <TextView - android:layout_width="50dp" - android:layout_height="fill_parent" - android:background="#CCCCCC" - android:layout_alignParentTop="true" - android:layout_alignParentLeft="true"/> - </RelativeLayout> - - <TextView - android:id="@+id/text_simple" - android:text="@string/text_simple" - android:layout_width="fill_parent" - android:layout_height="wrap_content"/> - -</LinearLayout> diff --git a/espresso/espresso-sample/src/main/res/layout/sync_activity.xml b/espresso/espresso-sample/src/main/res/layout/sync_activity.xml deleted file mode 100644 index 5642eee..0000000 --- a/espresso/espresso-sample/src/main/res/layout/sync_activity.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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. - --> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical" > - - <Button - android:id="@+id/request_button" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:onClick="onRequestButtonClick" - android:text="@string/request_hello_world" /> - - <TextView - android:id="@+id/status_text" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center" - android:textAppearance="?android:attr/textAppearanceMedium" /> - -</LinearLayout> - |