res/layout/settings.xml
changeset 5 accfe4a4010f
equal deleted inserted replaced
4:c36eb0599813 5:accfe4a4010f
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       
     3               android:orientation="vertical"
       
     4               android:layout_width="fill_parent"
       
     5               android:layout_height="fill_parent"
       
     6         >
       
     7     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       
     8                   android:orientation="horizontal"
       
     9                   android:layout_width="fill_parent"
       
    10                   android:layout_height="wrap_content"
       
    11             >
       
    12         <TextView
       
    13                 android:layout_width="wrap_content"
       
    14                 android:layout_height="wrap_content"
       
    15                 android:text="Host/Port:"
       
    16                 android:minWidth="70dp"
       
    17                 />
       
    18                 
       
    19         <EditText android:id="@+id/host"
       
    20                   android:layout_width="wrap_content"
       
    21                   android:layout_height="wrap_content"
       
    22                   android:singleLine="true"
       
    23                   android:textSize="16sp"
       
    24                   android:autoText="false"
       
    25                   android:capitalize="none"
       
    26                   android:minWidth="150dp"
       
    27                   android:scrollHorizontally="true"/>
       
    28         <EditText android:id="@+id/port"
       
    29                   android:layout_width="wrap_content"
       
    30                   android:layout_height="wrap_content"
       
    31                   android:singleLine="true"
       
    32                   android:textSize="16sp"
       
    33                   android:autoText="false"
       
    34                   android:minWidth="80dp"
       
    35                   android:capitalize="none"
       
    36                   android:scrollHorizontally="true"/>
       
    37     </LinearLayout>
       
    38 
       
    39     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       
    40                   android:orientation="horizontal"
       
    41                   android:layout_width="fill_parent"
       
    42                   android:layout_height="wrap_content"
       
    43             >
       
    44         <TextView
       
    45                 android:layout_width="wrap_content"
       
    46                 android:layout_height="wrap_content"
       
    47                 android:text="Userid:"
       
    48                 android:minWidth="70dp"
       
    49                 />
       
    50         <EditText android:id="@+id/userid"
       
    51                   android:layout_width="wrap_content"
       
    52                   android:layout_height="wrap_content"
       
    53                   android:singleLine="true"
       
    54                   android:textSize="16sp"
       
    55                   android:autoText="false"
       
    56                   android:minWidth="250dp"
       
    57                   android:capitalize="none"
       
    58                   android:scrollHorizontally="true"/>
       
    59     </LinearLayout>
       
    60     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       
    61                   android:orientation="horizontal"
       
    62                   android:layout_width="fill_parent"
       
    63                   android:layout_height="wrap_content"
       
    64             >
       
    65         <TextView
       
    66                 android:layout_width="wrap_content"
       
    67                 android:layout_height="wrap_content"
       
    68                 android:text="Password:"
       
    69                 android:minWidth="70dp"
       
    70                 />
       
    71         <EditText android:id="@+id/password"
       
    72                   android:layout_width="wrap_content"
       
    73                   android:layout_height="wrap_content"
       
    74                   android:singleLine="true"
       
    75                   android:password="true"
       
    76                   android:textSize="16sp"
       
    77                   android:autoText="false"
       
    78                   android:minWidth="250dp"
       
    79                   android:capitalize="none"
       
    80                   android:scrollHorizontally="true"/>
       
    81     </LinearLayout>
       
    82 
       
    83     <Button android:id="@+id/ok"
       
    84             android:layout_width="fill_parent"
       
    85             android:layout_height="fill_parent"
       
    86             android:text="OK">
       
    87         <requestFocus/>
       
    88     </Button>
       
    89 </LinearLayout>
       
    90