0
A
回答
0
在主佈局內部創建三個佈局實現了設計。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".SplashActivity" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_weight="4"
android:background="@drawable/woodentile" >
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0sp"
android:layout_weight="1"
android:background="@drawable/woodenshadowtile" >
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0sp"
android:layout_weight="1"
android:background="@drawable/papertile" >
</LinearLayout>
</LinearLayout>
您需要繪製文件夾中的三個位圖文件。我將以woodentile.xml爲例。
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:dither="true"
android:src="@drawable/inno_luck_wood_pattern_background"
android:tileMode="repeat" >
</bitmap>
就是這樣。這樣做會產生我想創建的那種設計。
0
創建繪製文件夾中的XML,並使用下面的代碼
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/YOUR_IMAGE
android:antialias="true"
android:dither="false"
android:filter="false"
android:gravity="fill"
android:tileMode="repeat" />
然後設置該文件到您的背景。 :)
相關問題
- 1. 佈局與2種類型的瓷磚
- 2. 來自屏幕位置的XNA瓷磚
- 3. 如何使用Unity 3.5x在Android中調整多種屏幕類型的屏幕?
- 4. Struts的:如何獲得瓷磚的種類屬性
- 5. android多種屏幕尺寸
- 6. Mapbox Android SDK第三方矢量瓷磚
- 7. 支持多種屏幕的Android設計
- 8. 三種袋子球類型
- 9. 選擇正確的活瓷磚類型
- 10. 一種類型與多種類型
- 11. 以下屏幕的Android多種屏幕尺寸支持
- 12. MapView的瓷磚的Android
- 13. 使一種類型成爲一種類型或另一種類型
- 14. 使用drawRect的Android瓷磚
- 15. Android瓷磚位圖
- 16. Struts 1.3與瓷磚,重新加載4個瓷磚中的一個瓷磚
- 17. 這種類型的屏幕布局如何實現?
- 18. 從一種類型到另一種類型的列表清單
- 19. 將一種類型的對象分配給另一種類型
- 20. Windows Phone中不同的大型瓷磚和中等瓷磚
- 21. 網站的Windows 8風格啓動屏幕瓷磚
- 22. HTML5/JavaScript沒有在屏幕的最右側繪製瓷磚
- 23. 渲染在屏幕上看到的瓷磚
- 24. 如何繪製在屏幕上可見的瓷磚(精靈)
- 25. 的OpenLayers,層數:瓷磚與瓷磚單
- 26. 瓷磚遊戲上的重複瓷磚
- 27. 支持多種屏幕尺寸Android
- 28. Android和支持多種屏幕布局
- 29. Android,您開發哪種屏幕尺寸?
- 30. 僅支持一種佈局,支持Android中的多種屏幕尺寸
是的,但你必須做出佈局。 – DaxeshKhatri
答案是:**是的,你可以**。儘管我只能看到兩塊「瓷磚」(木頭和混凝土)。其餘的是圖標或背景。 –
有一個影子落在木瓦上。無論如何,如果您能指出我可以在哪裏閱讀關於如何操作的教程,我將非常感激。 –