1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright 2011, The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 <com.android.browser.AutologinBar 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:background="#FBF0A0" 22 android:gravity="center_vertical" 23 android:visibility="gone"> 24 <TextView 25 android:text="@string/autologin_bar_text" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:textColor="@android:color/primary_text_light" 29 android:paddingLeft="15dip" 30 android:paddingRight="15dip" 31 android:textAppearance="?android:attr/textAppearanceMedium"/> 32 <Spinner 33 android:id="@+id/autologin_account" 34 android:layout_height="wrap_content" 35 android:layout_width="wrap_content" 36 style="@android:style/Widget.Holo.Light.Spinner" /> 37 <Button 38 android:id="@+id/autologin_login" 39 android:text="@string/autologin_bar_login_text" 40 style="@android:style/Widget.Holo.Light.Button" 41 android:layout_marginRight="15dip" 42 android:layout_height="wrap_content" 43 android:layout_width="wrap_content" /> 44 <ProgressBar 45 android:id="@+id/autologin_progress" 46 android:indeterminateOnly="true" 47 android:layout_height="wrap_content" 48 android:layout_width="wrap_content" 49 android:visibility="gone" /> 50 <TextView 51 android:id="@+id/autologin_error" 52 android:layout_height="wrap_content" 53 android:layout_width="wrap_content" 54 android:textColor="#dd6826" 55 android:text="@string/autologin_bar_error" 56 android:textAppearance="?android:attr/textAppearanceMedium" 57 android:visibility="gone" /> 58 <View 59 android:layout_width="2dip" 60 android:layout_height="match_parent" 61 android:layout_weight="1"/> 62 <ImageButton 63 android:id="@+id/autologin_close" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:paddingRight="15dip" 67 android:background="@null" 68 android:src="@*android:drawable/btn_close"/> 69 </com.android.browser.AutologinBar> 70