アットウィキロゴ

KS > Android > 03_main

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:orientation="vertical" >

   <TextView
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:text="@string/tv_title"
       android:textSize="24.0sp" />

   <LinearLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:orientation="horizontal" >

       <TextView
           android:layout_width="70dp"
           android:layout_height="wrap_content"
           android:text="@string/tv_name" />

       <EditText
           android:layout_width="200dp"
           android:layout_height="wrap_content"
           android:inputType="text" />
   </LinearLayout>

   <LinearLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:orientation="horizontal" >

       <TextView
           android:layout_width="70dp"
           android:layout_height="wrap_content"
           android:text="@string/tv_address" />

       <EditText
           android:layout_width="200dp"
           android:layout_height="wrap_content"
           android:inputType="text" />
   </LinearLayout>

   <LinearLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:orientation="horizontal" >

       <TextView
           android:layout_width="70dp"
           android:layout_height="wrap_content"
           android:text="@string/tv_birthday" />

       <Spinner
           android:layout_width="85dp"
           android:layout_height="wrap_content"
           android:entries="@array/month" />

       <TextView
           android:layout_width="20dp"
           android:layout_height="wrap_content"
           android:text="@string/tv_month" />

       <Spinner
           android:layout_width="85dp"
           android:layout_height="wrap_content"
           android:entries="@array/day" />

       <TextView
           android:layout_width="20dp"
           android:layout_height="wrap_content"
           android:text="@string/tv_day" />
   </LinearLayout>

   <LinearLayout
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_marginTop="10dp"
       android:orientation="horizontal" >

       <TextView
           android:layout_width="70dp"
           android:layout_height="wrap_content"
           android:text="@string/tv_sex" />
       
       <RadioGroup 
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="horizontal">
           <RadioButton 
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:text="@string/tv_man"/>
            <RadioButton 
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:text="@string/tv_woman"/>
       </RadioGroup>
   </LinearLayout>

   <LinearLayout 
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_marginLeft="45dp"
       android:layout_marginRight="45dp"
       android:paddingLeft="5dp"
       android:paddingRight="5dp"
       android:orientation="horizontal"
       android:background="#003399">
       
       <TextView 
           android:layout_width="150dp"
           android:layout_height="wrap_content"
           android:text="@string/tv_item"
           android:textColor="#FFFFFF" />
       <TextView 
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="@string/tv_number"
           android:textColor="#FFFFFF" />
   </LinearLayout>
   
    <LinearLayout 
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_marginLeft="50dp"
       android:layout_marginRight="50dp"
       android:orientation="horizontal">
        
        <CheckBox 
            android:layout_width="160dp"
            android:layout_height="wrap_content"
            android:text="@string/apple"/>
        <EditText 
            android:layout_width="50dp"
            android:layout_height="wrap_content"
            android:inputType="number"/>
    </LinearLayout>
    
    <LinearLayout 
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_marginLeft="50dp"
       android:layout_marginRight="50dp"
       android:orientation="horizontal">
        
        <CheckBox 
            android:layout_width="160dp"
            android:layout_height="wrap_content"
            android:text="@string/orange"/>
        <EditText 
            android:layout_width="50dp"
            android:layout_height="wrap_content"
            android:inputType="number"/>
    </LinearLayout>
    
     <LinearLayout 
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_marginLeft="50dp"
       android:layout_marginRight="50dp"
       android:orientation="horizontal">
        
        <CheckBox 
            android:layout_width="160dp"
            android:layout_height="wrap_content"
            android:text="@string/peach"/>
        <EditText 
            android:layout_width="50dp"
            android:layout_height="wrap_content"
            android:inputType="number"/>
    </LinearLayout>
    
     <Button 
         android:layout_width="180dp"
         android:layout_height="wrap_content"
         android:layout_gravity="center_horizontal"
         android:text="@string/send"/>
   
</LinearLayout>
最終更新:2013年07月25日 21:24