2015-10-19 16 views

回答

0

這並不複雜,只需使用一些圖像軟件(Photoshop,gimp,paint.net等)創建一個如下所示的矩形:

enter image description here

只是將屏幕的其餘部分設置爲與白色部分相同的顏色。

3

在裏面使用線性佈局和imageView。 參考http://developer.android.com/reference/android/widget/LinearLayout.html

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" android:layout_width="match_parent" 
    android:layout_height="match_parent"> 
<ImageView 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="@drawable/YourImage"> 

</LinearLayout> 
相關問題