PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/WebVox/res/layout/browser_add_bookmark.xml

http://eyes-free.googlecode.com/
XML | 106 lines | 80 code | 12 blank | 14 comment | 0 complexity | 3e823f4ecab3b5e4bf64849704c71127 MD5 | raw file
  1<?xml version="1.0" encoding="utf-8"?>
  2<!-- Copyright (C) 2007 The Android Open Source Project
  3
  4     Licensed under the Apache License, Version 2.0 (the "License");
  5     you may not use this file except in compliance with the License.
  6     You may obtain a copy of the License at
  7  
  8          http://www.apache.org/licenses/LICENSE-2.0
  9  
 10     Unless required by applicable law or agreed to in writing, software
 11     distributed under the License is distributed on an "AS IS" BASIS,
 12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13     See the License for the specific language governing permissions and
 14     limitations under the License.
 15-->
 16
 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 18    android:layout_width="fill_parent"
 19    android:layout_height="wrap_content"
 20    android:orientation="vertical"
 21    >
 22
 23    <ImageView android:id="@+id/titleDivider"
 24        android:layout_width="fill_parent"
 25        android:layout_height="1dip"
 26        android:scaleType="fitXY"
 27        android:gravity="fill_horizontal"
 28        android:src="@drawable/dialog_divider_horizontal_light"
 29        android:layout_marginLeft="10dip"
 30        android:layout_marginRight="10dip"/>
 31
 32    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 33        android:layout_width="fill_parent"
 34        android:layout_height="wrap_content"
 35        android:layout_weight="1"
 36        android:orientation="vertical"
 37        android:paddingTop="5dip"
 38        android:paddingBottom="13dip"
 39        android:paddingLeft="20dip"
 40        android:paddingRight="20dip" >
 41    
 42        <TextView 
 43            android:id="@+id/titleText"
 44            android:layout_height="wrap_content"
 45            android:layout_width="wrap_content"
 46            android:text="@string/name"
 47            android:gravity="left"
 48            android:textAppearance="?android:attr/textAppearanceMedium" />
 49                
 50        <EditText
 51            android:id="@+id/title"
 52            android:layout_height="wrap_content"
 53            android:layout_width="250dip"
 54            android:gravity="fill_horizontal"
 55            android:inputType="textCapSentences"
 56            android:selectAllOnFocus="true"
 57            android:textAppearance="?android:attr/textAppearanceMedium" />
 58                
 59
 60    
 61        <TextView
 62            android:id="@+id/addressText"
 63            android:layout_height="wrap_content"
 64            android:layout_width="wrap_content"
 65            android:text="@string/location"
 66            android:gravity="left"
 67            android:textAppearance="?android:attr/textAppearanceMedium" />
 68                
 69        <EditText
 70            android:id="@+id/address"
 71            android:layout_height="wrap_content"
 72            android:layout_width="250dip"
 73            android:hint="@string/http"
 74            android:gravity="fill_horizontal"
 75            android:inputType="textUri"
 76            android:selectAllOnFocus="true"
 77            android:textAppearance="?android:attr/textAppearanceMedium" />
 78    </LinearLayout>
 79        
 80    <LinearLayout 
 81        android:layout_width="fill_parent"
 82        android:layout_height="wrap_content"
 83        android:background="#c6c3c6"
 84        android:minHeight="54dip"
 85        android:orientation="horizontal"
 86        android:paddingTop="4dip"
 87        android:paddingLeft="2dip"
 88        android:paddingRight="2dip" >
 89        <Button android:id="@+id/OK" 
 90            android:text="@string/save"
 91            android:layout_width="0dip"
 92            android:layout_gravity="left"
 93            android:layout_weight="1"
 94            android:maxLines="2"
 95            android:layout_height="wrap_content" />
 96        <Button android:id="@+id/cancel" 
 97            android:text="@string/do_not_save"
 98            android:layout_width="0dip"
 99            android:layout_gravity="right"
100            android:layout_weight="1"
101            android:maxLines="2"
102            android:layout_height="wrap_content" />
103    </LinearLayout>
104
105</LinearLayout>
106