2017-09-17 57 views

回答

0

使用线性布局,垂直方向和线性布局内(垂直),包括与水平方向的线性布局

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

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

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" /> 
    <!-- 
     online icon 
     call icon 
    --> 

</LinearLayout> 

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

    <!-- 
    Gratuity icon 

    --> 


</LinearLayout> 

+0

是它是一张卡布局还是网格布局? –

+0

这是线性布局 – Idee