Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 <GridLayout
     18         xmlns:android="http://schemas.android.com/apk/res/android"
     19 
     20         android:layout_width="match_parent"
     21         android:layout_height="match_parent"
     22 
     23         android:orientation="horizontal"
     24         android:columnCount="2"
     25         >
     26 
     27     <TextView
     28             android:text="Name:"
     29             />
     30 
     31     <EditText
     32             android:text="fill"
     33             android:width="200dip"
     34             android:height="100dip"
     35             android:layout_marginLeft="50dip"
     36             android:layout_gravity="fill_horizontal"
     37             />
     38 
     39     <TextView
     40             />
     41 
     42 <!--
     43     <TextView
     44             android:layout_row_weight="1"
     45             android:layout_column_weight="1"
     46             />
     47 -->
     48 
     49     <EditText
     50             android:text="left"
     51             />
     52 
     53     <EditText/>
     54 
     55     <EditText
     56             android:text="right"
     57             android:layout_gravity="right"
     58             />
     59 
     60     <EditText
     61             android:layout_margin="50dip"
     62             android:textSize="100dip"
     63             />
     64 
     65     <Button
     66             android:text="center"
     67             android:layout_gravity="center_horizontal"
     68             />
     69 
     70     <EditText
     71             android:layout_height="fill_parent"
     72             />
     73 
     74 </GridLayout>
     75