2016-09-15 13 views

答えて

2

このよう

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

     <View 
      android:layout_width="0dp" 
      android:layout_height="1dp" 
android:background="#000000" 
      android:layout_weight="1"/> 

     <TextView 
      android:id="@+id/order" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:text="ODER" 
      android:textColor="#ffffff" 
      android:textSize="14sp" /> 

     <View 
      android:layout_width="0dp" 
      android:layout_height="1dp" 
android:background="#000000" 
      android:layout_weight="1"/> 

    </LinearLayout> 
を試してみてください
関連する問題