PageRenderTime 22ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Sky/res/layout/configure.xml

http://android-sky.googlecode.com/
XML | 140 lines | 101 code | 22 blank | 17 comment | 0 complexity | 794f11925abe282c92d5f88ae9c64c36 MD5 | raw file
  1<?xml version="1.0" encoding="utf-8"?>
  2<!-- Copyright (C) 2009 Jeff Sharkey, http://jsharkey.org/
  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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
 18    android:layout_width="fill_parent"
 19    android:layout_height="fill_parent"
 20    android:fillViewport="true">
 21
 22    <LinearLayout
 23        android:layout_width="fill_parent"
 24        android:layout_height="fill_parent"
 25        android:orientation="vertical">
 26
 27        <TextView
 28            android:layout_width="fill_parent" 
 29            android:layout_height="wrap_content"
 30            android:padding="10dip"
 31            android:text="@string/conf_descrip"
 32            android:textAppearance="?android:attr/textAppearanceSmall" />
 33
 34        <RadioGroup
 35            android:id="@+id/conf_location" 
 36            android:layout_width="fill_parent" 
 37            android:layout_height="wrap_content"
 38            android:paddingLeft="20dip"
 39            android:paddingRight="20dip"
 40            android:orientation="vertical">
 41
 42            <RadioButton
 43                android:id="@+id/conf_current" 
 44                android:layout_width="fill_parent" 
 45                android:layout_height="wrap_content"
 46                android:checked="true"
 47                android:text="@string/conf_current"
 48                android:textAppearance="?android:attr/textAppearanceMedium" />
 49
 50            <RadioButton
 51                android:id="@+id/conf_manual" 
 52                android:layout_width="fill_parent" 
 53                android:layout_height="wrap_content"
 54                android:text="@string/conf_manual"
 55                android:textAppearance="?android:attr/textAppearanceMedium" />
 56
 57        </RadioGroup>
 58
 59        <!-- 
 60        TODO: insert geolocation status message?
 61         -->
 62
 63        <TextView
 64            android:layout_width="fill_parent" 
 65            android:layout_height="wrap_content"
 66            android:padding="10dip"
 67            android:text="@string/conf_near"
 68            android:textAppearance="?android:attr/textAppearanceSmall" />
 69
 70        <EditText
 71            android:id="@+id/conf_title"
 72            android:layout_width="fill_parent" 
 73            android:layout_height="wrap_content"
 74            android:layout_marginLeft="20dip"
 75            android:layout_marginRight="20dip"
 76            android:freezesText="true" />
 77
 78        <TextView
 79            android:layout_width="fill_parent" 
 80            android:layout_height="wrap_content"
 81            android:padding="10dip"
 82            android:text="@string/conf_units"
 83            android:textAppearance="?android:attr/textAppearanceSmall" />
 84
 85        <RadioGroup
 86            android:id="@+id/conf_units" 
 87            android:layout_width="fill_parent" 
 88            android:layout_height="wrap_content"
 89            android:paddingLeft="20dip"
 90            android:paddingRight="20dip"
 91            android:paddingBottom="20dip"
 92            android:orientation="vertical">
 93
 94            <RadioButton
 95                android:id="@+id/conf_units_f" 
 96                android:layout_width="fill_parent" 
 97                android:layout_height="wrap_content"
 98                android:checked="true"
 99                android:text="@string/conf_units_f"
100                android:textAppearance="?android:attr/textAppearanceMedium" />
101
102            <RadioButton
103                android:id="@+id/conf_units_c" 
104                android:layout_width="fill_parent" 
105                android:layout_height="wrap_content"
106                android:text="@string/conf_units_c"
107                android:textAppearance="?android:attr/textAppearanceMedium" />
108
109        </RadioGroup>
110
111        <View
112            android:layout_width="fill_parent"
113            android:layout_height="0dip"
114            android:layout_weight="1" />
115
116        <LinearLayout
117            android:layout_width="fill_parent"
118            android:layout_height="wrap_content"
119            android:orientation="horizontal"
120            style="@android:style/ButtonBar">
121
122            <Button
123                android:id="@+id/conf_map"
124                android:layout_width="0dip"
125                android:layout_height="wrap_content"
126                android:layout_weight="1"
127                android:text="@string/conf_map" />
128
129            <Button
130                android:id="@+id/conf_save"
131                android:layout_width="0dip"
132                android:layout_height="wrap_content"
133                android:layout_weight="1"
134                android:text="@string/conf_save" />
135
136        </LinearLayout>
137
138    </LinearLayout>
139
140</ScrollView>