0
我正在使用兩個imageviews與圈png格式爲每一個,現在我的手機(S6邊緣)的兩個圖像完美地,一個在另一個內部, 這裏是我的xml:cricle使用imageview的
<RelativeLayout
android:id="@+id/spinner"
android:layout_width="wrap_content"
android:layout_centerInParent="true"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/outter"
android:layout_height="405dp"
android:layout_width="405dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" />
<ImageView
android:id="@+id/inner"
android:layout_height="200dp"
android:layout_width="200dp"
android:src="@drawable/arrowbb"
android:layout_centerInParent="true"
android:layout_centerVertical="true" />
</RelativeLayout>
現在,如果我在星系s2敵人上運行應用程序,例如,我得到兩個幾乎相互覆蓋的圓圈,而不是它在s6邊緣的方式,儘管我使用dp設置每個圖像的寬度和高度,如圖所示在xml中。
請注意,這裏我在imageview中使用的兩個圓形圖像是32位,並且我使用photoshop來調整它的大小。
我需要兩個圓形在任何android手機上是相同的形狀,如何呢? 感謝幫助:)
您的回覆確認日Thnx,虐待試試吧:) –
它的工作多數民衆贊成答案:d,非常感謝的人),答案接受 –
高興聽到這個:) –