action_bar_home.xml revision c8b0b005cb616deb9646f2c2b995890fa9530f94
1f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu<?xml version="1.0" encoding="utf-8"?>
2f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu<!-- Copyright (C) 2010 The Android Open Source Project
3f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu
4f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu     Licensed under the Apache License, Version 2.0 (the "License");
5f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu     you may not use this file except in compliance with the License.
6f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu     You may obtain a copy of the License at
7f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu
8f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu          http://www.apache.org/licenses/LICENSE-2.0
9f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu
10f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu     Unless required by applicable law or agreed to in writing, software
11f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu     distributed under the License is distributed on an "AS IS" BASIS,
12f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu     See the License for the specific language governing permissions and
14f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu     limitations under the License.
15f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu-->
16f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu
17f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu<view xmlns:android="http://schemas.android.com/apk/res/android"
18f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu      class="com.android.internal.widget.ActionBarView$HomeView"
19f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu      android:layout_width="wrap_content"
20f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu      android:layout_height="match_parent"
21f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu      android:background="?android:attr/selectableItemBackground" >
22f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu    <ImageView android:id="@android:id/up"
23f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu               android:src="?android:attr/homeAsUpIndicator"
24f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu               android:layout_gravity="center_vertical|left"
25f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu               android:visibility="gone"
26f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu               android:layout_width="wrap_content"
27f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu               android:layout_height="wrap_content"
28f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu               android:layout_marginRight="-8dip" />
29f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu    <ImageView android:id="@android:id/home"
30f2001df508fda599a18b3586d2775e970a3db13aChia-I Wu               android:layout_width="wrap_content"
31adbff7e977c7c768e752a24fb643d68bdf961bfeBrian Paul               android:layout_height="wrap_content"
32adbff7e977c7c768e752a24fb643d68bdf961bfeBrian Paul               android:layout_marginRight="8dip"
33adbff7e977c7c768e752a24fb643d68bdf961bfeBrian Paul               android:layout_marginTop="@android:dimen/action_bar_icon_vertical_padding"
34adbff7e977c7c768e752a24fb643d68bdf961bfeBrian Paul               android:layout_marginBottom="@android:dimen/action_bar_icon_vertical_padding"
3594cb321b5d246185abf71d89968d472a626f1a23Chia-I Wu               android:layout_gravity="center"
3694cb321b5d246185abf71d89968d472a626f1a23Chia-I Wu               android:adjustViewBounds="true"
3794cb321b5d246185abf71d89968d472a626f1a23Chia-I Wu               android:scaleType="fitCenter" />
386c7e0b95a4a16d268aa3ca74c5c8407779533314Chia-I Wu</view>
396c7e0b95a4a16d268aa3ca74c5c8407779533314Chia-I Wu