I’m having a problem with the rounded corners background shape in the emulator and I really can’t figure it out.
The shape code is as follows:
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="50dip" />
<stroke
android:width="1dip"
android:color="#ccffffff" />
<solid
android:color="#cc111111" />
<padding
android:left="3dip" android:top="3dip"
android:right="3dip" android:bottom="3dip" />
</shape>
used in the following relative layout:
<RelativeLayout
android:id="@+id/loginboxlayout"
android:layout_width="190dp"
android:layout_height="240dp"
android:layout_centerInParent="true"
android:background="@drawable/rounded"
android:padding="0dp" >
(...)
</RelativeLayout>
On the graphical layout, in eclipse, it displays correctly, but on the emulator it doesn’t: screenshots.
I’m using android 4.0.
Thanks in advance.
put shape file in
res>layoutfolder and then