diff options
Diffstat (limited to 'res/layout/search_bar.xml')
-rw-r--r-- | res/layout/search_bar.xml | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/res/layout/search_bar.xml b/res/layout/search_bar.xml new file mode 100644 index 00000000..fe5647e4 --- /dev/null +++ b/res/layout/search_bar.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* apps/common/res/layout/SearchBar.xml +** +** Copyright 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. +*/ +--> + <!-- Outer layout defines the entire search bar at the top of the screen --> + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/search_bar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingLeft="15dip" + android:paddingRight="15dip" + android:paddingTop="10dip" + android:paddingBottom="20dip" + android:baselineAligned="false" + android:background="@android:drawable/alert_dark_frame" > + + <!-- TextView or ImageView at top shows searched application --> + <!-- Code will display one-or-the-other (or neither) --> + <FrameLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="3dip"> + + <TextView + android:id="@+id/search_badge_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" /> + </FrameLayout> + + <!-- Inner layout contains the button(s) and EditText --> + <LinearLayout + android:id="@+id/search_edit_frame" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:gravity="center_vertical" + android:baselineAligned="false" > + + <EditText + android:id="@+id/search_src_text" + android:layout_height="wrap_content" + android:layout_width="0dip" + android:layout_weight="1.0" + android:paddingLeft="6dip" + android:paddingRight="6dip" + android:singleLine="true" + android:textSize="14sp" /> + + <Button + android:id="@+id/search_go_btn" + android:text="@android:string/search_go" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </LinearLayout> + + </LinearLayout> |