2011-05-25 115 views
1

上週,我開始開發Android應用程序,幾乎完成了編碼的一部分,但佈局設計的應用程序是太混亂了...... 以下是設計什麼,我想, enter image description hereAndroid的視圖佈局設計幫助

任何人都請給我編碼部分來創建設計/佈局。此前提前致謝...

回答

1

對代碼看看。它會產生完全相同的結果,你想要的。 多諾忘記投票答案。

看看here also

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:orientation="horizontal" 
    android:background="#ffffff"> 
    <ImageView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:background="@drawable/a_thumb" /> 
    <LinearLayout 


     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:orientation="vertical"> 


     <TextView 

      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:textSize="20sp" 
      android:text="name" 
      android:textColor="#000000" 
      android:layout_marginBottom="5dip" /> 
     <TextView 

      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 

      android:text="data" 
      android:textColor="#000000" /> 
     <TextView 

      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 

      android:text="Time-Like-Comment" 
      android:textColor="#000000" 
      android:typeface="sans" 
      android:textSize="12sp" 
      android:layout_marginTop="5dip" /> 
    </LinearLayout> 
</LinearLayout> 

感謝 迪帕克

+0

日Thnx很多迪帕克:-) – 2011-05-25 06:27:56

+0

廁所。感謝您的接受。我很高興能夠在一定程度上解決您的問題。對於進一步的問題,你可以聯繫我。 – 2011-05-25 06:36:48

+0

和疑問,當我把兩個狀態飼料的第二飼料隱藏在右手邊。我需要它成爲第一個飼料的缺點。你能給至少兩個狀態飼料的佈局,請??? ??? – 2011-05-25 17:25:28