96 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			XML
		
	
	
	
			
		
		
	
	
			96 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			XML
		
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|     xmlns:app="http://schemas.android.com/apk/res-auto"
 | |
|     xmlns:tools="http://schemas.android.com/tools"
 | |
|     android:layout_width="match_parent"
 | |
|     android:layout_height="match_parent"
 | |
|     tools:context=".Main2Activity">
 | |
| 
 | |
| 
 | |
|     <LinearLayout
 | |
| 
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:orientation="vertical"
 | |
| 
 | |
|         >
 | |
|     <android.support.design.widget.AppBarLayout
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:theme="@style/ToolBarTheme.AppBarOverlay">
 | |
|         <!--android:layout_height="?attr/actionBarSize"-->
 | |
|         <android.support.v7.widget.Toolbar
 | |
|             android:id="@+id/toolbar"
 | |
|             style="@style/Toolbar"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="@dimen/toolbarHeight"
 | |
|             android:background="?attr/colorPrimary"
 | |
|             app:popupTheme="@style/ToolBarTheme.PopupOverlay"  >
 | |
|             <TextView
 | |
|                 android:id="@+id/toolbarTitle"
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:layout_gravity="left"
 | |
| 
 | |
|                 android:gravity="center"
 | |
|                 android:text="我是标题"
 | |
|                 android:textSize="18sp"
 | |
|                 android:layout_weight="1"
 | |
|                 android:visibility="visible"
 | |
|                 android:textColor="@color/white"
 | |
| 
 | |
|                 />
 | |
|            <!-- <android.support.v7.widget.AppCompatSpinner
 | |
|                 android:id="@+id/sexSelect"
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:minWidth="50dp"
 | |
|                 style="@style/common_spinner"
 | |
|                 app:theme="@style/common_spinner"
 | |
|                 android:popupTheme="@style/common_spinner"
 | |
|                 android:entries="@array/sex"
 | |
|                 android:layout_gravity="left|center_vertical"
 | |
|                 android:layout_weight="0"
 | |
|                 android:visibility="gone"
 | |
|                 />-->
 | |
|             <RadioGroup
 | |
|                 android:id="@+id/rgSex"
 | |
| 
 | |
|                 style="@style/radioGroup"
 | |
|                 android:layout_gravity="center_horizontal"
 | |
|                 >
 | |
|                 <RadioButton
 | |
|                     android:id="@+id/radioButtonBoy"
 | |
|                     android:text="男生"
 | |
|                     style="@style/radioButton"
 | |
|                     android:checked="true"
 | |
|                     />
 | |
|                 <RadioButton
 | |
|                     android:id="@+id/radioButtonGirl"
 | |
|                     android:text="女生"
 | |
|                     style="@style/radioButton"
 | |
| 
 | |
|                       />
 | |
|             </RadioGroup>
 | |
| 
 | |
| 
 | |
| 
 | |
|         </android.support.v7.widget.Toolbar>
 | |
|     </android.support.design.widget.AppBarLayout>
 | |
| 
 | |
|         <include layout="@layout/realcontent" />
 | |
| 
 | |
| 
 | |
| 
 | |
|     </LinearLayout>
 | |
|     <android.support.design.widget.FloatingActionButton
 | |
|         android:id="@+id/fab"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_gravity="bottom|start"
 | |
|         android:layout_margin="@dimen/fab_margin"
 | |
|         android:visibility="gone"
 | |
|         app:srcCompat="@android:drawable/ic_dialog_email" />
 | |
| 
 | |
| 
 | |
| </android.support.design.widget.CoordinatorLayout> |