| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2010 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:id="@+id/navigation_bar" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <ToggleButton |
| android:id="@+id/nav_contacts" |
| android:layout_height="match_parent" |
| android:layout_width="wrap_content" |
| android:textOn="@string/contactsList" |
| android:textOff="@string/contactsList" |
| android:layout_alignParentLeft="true" |
| android:layout_alignParentTop="true" |
| android:layout_alignParentBottom="true" |
| android:background="@drawable/btn_nav_bar" |
| android:paddingLeft="15dip" |
| android:paddingRight="15dip" |
| /> |
| <ToggleButton |
| android:id="@+id/nav_favorites" |
| android:layout_height="match_parent" |
| android:layout_width="wrap_content" |
| android:textOn="@string/strequentList" |
| android:textOff="@string/strequentList" |
| android:layout_toRightOf="@id/nav_contacts" |
| android:layout_alignParentTop="true" |
| android:layout_alignParentBottom="true" |
| android:background="@drawable/btn_nav_bar" |
| android:paddingLeft="15dip" |
| android:paddingRight="15dip" |
| /> |
| <ToggleButton |
| android:id="@+id/nav_search" |
| android:layout_height="match_parent" |
| android:layout_width="wrap_content" |
| android:textOff="@string/menu_search" |
| android:textOn="@string/menu_search" |
| android:layout_toRightOf="@id/nav_favorites" |
| android:layout_alignParentTop="true" |
| android:layout_alignParentBottom="true" |
| android:background="@drawable/btn_nav_bar" |
| android:paddingLeft="15dip" |
| android:paddingRight="15dip" |
| /> |
| <view |
| class="com.android.contacts.widget.SearchEditText" |
| android:id="@+id/search_src_text" |
| android:layout_height="wrap_content" |
| android:layout_width="320dip" |
| android:layout_marginLeft="4dip" |
| android:layout_marginBottom="0dip" |
| android:layout_toRightOf="@id/nav_favorites" |
| android:singleLine="true" |
| android:ellipsize="end" |
| android:inputType="textNoSuggestions" |
| android:imeOptions="flagNoExtractUi" |
| android:hint="@string/search_bar_hint" |
| android:drawableRight="@drawable/magnifying_glass" |
| android:freezesText="true" |
| android:visibility="gone" |
| /> |
| <ImageView |
| android:id="@+id/nav_cancel_search" |
| android:layout_height="wrap_content" |
| android:layout_width="wrap_content" |
| android:src="@android:drawable/ic_menu_close_clear_cancel" |
| android:layout_toRightOf="@id/search_src_text" |
| android:layout_centerVertical="true" |
| android:visibility="gone"/> |
| |
| </RelativeLayout> |