Grenze für das layout

Ich versuche, einen Rahmen um mein layout wie dieses

Grenze für das layout

Aber was ich versuche, nur das layout ändern Farbe.
Keine Grenze.

Mein code ist

<?xml version="1.0" encoding="UTF-8"?> 
<shape xmlns:android="http://schemas.android.com/apk/res/android"
> 

<stroke android:width="1dp"

        android:color="#eedfcc"
        android:background="#000080"/>

<corners android:bottomRightRadius="20dp"
         android:bottomLeftRadius="20dp" 
         android:topLeftRadius="10dp"
         android:topRightRadius="8dp"/> 
</shape>

Warum es nicht funktioniert?

Sie nicht definieren Sie Ihre Form, die Art, wie das <Form xmlns:android="schemas.android.com/apk/res/android" android:shape="rectangle" >
eigentlich ist es nicht vollständig Rechteck

InformationsquelleAutor MBMJ | 2012-07-03

Schreibe einen Kommentar