上週,我開始開發Android應用程序,幾乎完成了編碼的一部分,但佈局設計的應用程序是太混亂了...... 以下是設計什麼,我想, Android的視圖佈局設計幫助
任何人都請給我編碼部分來創建設計/佈局。此前提前致謝...
上週,我開始開發Android應用程序,幾乎完成了編碼的一部分,但佈局設計的應用程序是太混亂了...... 以下是設計什麼,我想, Android的視圖佈局設計幫助
任何人都請給我編碼部分來創建設計/佈局。此前提前致謝...
對代碼看看。它會產生完全相同的結果,你想要的。 多諾忘記投票答案。
<?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>
感謝 迪帕克
這對您有幫助 - http://developer.android.com/resources/articles/layout-tricks-efficiency.html。
而且瞭解的ListView(http://developer.android.com/resources/tutorials/views/hello-listview.html)
您應該檢查,創建自定義列表視圖,所有的事情,你需要能輕鬆實現。
入住這裏, http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/
日Thnx很多迪帕克:-) – 2011-05-25 06:27:56
廁所。感謝您的接受。我很高興能夠在一定程度上解決您的問題。對於進一步的問題,你可以聯繫我。 – 2011-05-25 06:36:48
和疑問,當我把兩個狀態飼料的第二飼料隱藏在右手邊。我需要它成爲第一個飼料的缺點。你能給至少兩個狀態飼料的佈局,請??? ??? – 2011-05-25 17:25:28