-6
A
回答
-1
customization.Thanks這種設計包括垂直線性佈局的水平線性佈局。您可以爲背景和字體添加顏色。但要獲得該屏幕,您應該添加許多屬性。 無論如何,我建議你不要試圖複製。
+1
你是認真的嗎?告訴他不要試圖複製?這是一個荒謬的答案。 –
+0
我認爲他應該嘗試一下,他對此有所瞭解 –
+1
你有沒有聽過「模仿是最誠摯的奉承形式」的引用 - Charles Colton? –
0
你可以像這樣 像下面
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="@drawable/custom_button"
android:drawableLeft="@drawable/ic_calender"
android:text="button 1" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="@drawable/custom_button"
android:drawableLeft="@drawable/ic_calender"
android:text="button 1" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="@drawable/custom_button"
android:drawableLeft="@drawable/ic_calender"
android:text="button 1" />
</LinearLayout>
</LinearLayout>
現在建立在資源這個可繪製custom_button /繪製目錄中創建佈局創建這種類型的設計
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<stroke android:width="2dp" android:color="@color/colorPrimary" />
<corners android:radius="50dp" />
<solid android:color="@color/colorPrimary" />
</shape>
</item>
相關問題
- 1. 如何在我的應用程序中使用此JSON文本?
- 2. 如何在我的應用程序中使用此URL(與PORT)?
- 3. 如何在MVC設計的應用程序中使用SQLAlchemy?
- 4. 如何在我的IOS7應用程序中保留IOS6設計
- 5. 在我的應用程序中使用cancan和設計
- 6. 如何在我的iOS應用程序中構建'如何使用此應用程序'教程?
- 7. 我們如何在WinRT應用程序中設置計時器?
- 8. 如何將此設計轉換爲應用程序
- 9. Android的MVP設計:如何採用我的應用程序?
- 10. 我將如何在android應用程序中創建此應用程序?
- 11. 我如何設置iPhoneGame應用程序中的計時器?
- 12. 在我的應用程序使用Facebook彈出式設計
- 13. 使用Netty的應用程序設計
- 14. 使用XML的應用程序設計
- 15. 使用DDD的應用程序設計
- 16. 我如何設計我的Java應用程序(eclipse)
- 17. 如何使用Spring + iBatis解決我應用程序中的設計問題
- 18. 如何計算我的應用程序中的在線用戶?
- 19. 如何設計在應用程序中購買閱讀器應用程序?
- 20. 如何設計洪流應用程序?
- 21. 如何設計Java應用程序?
- 22. 我如何在我的應用程序中實現雲計算?
- 23. 我應該如何重構此設計
- 24. 我如何在我的Swing應用程序中設計User Preferences模塊?
- 25. 我應該如何設計這個應用程序?
- 26. 使用CMS設計Web應用程序
- 27. 用戶如何在應用程序中更改stimul設計?
- 28. 如何在.NET應用程序中使用此Web服務?
- 29. 如何設置我的應用程序?
- 30. 如何使用類似QuartzComposer的GUI設計應用程序
一個簡單的圖像按鈕可以使它完成。 –
我會建議在'ScrollView'裏面使用'GridView' –
對我來說就像是一個FlowLayout。 –