Problem mit Selector :/

  • Hey Leute,
    Ich weiss nicht mehr weiter :(
    Sobald ich die App starte, stürtzt sie zwar nivht ab, aber ich bekomm nur Blackscreen.
    selector.xml:

    Java
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
    <Item android:drawable="@drawable/button_pressed"
    android:state_pressed="true"/>
    <Item android:drawable="@drawable/button_focused"
    android:state_focused="true"/>
    <Item android:drawable="@drawable/button_normal"/>
    </selector>


    button.xml (Layout der Activity)

    Java
    <Linearlayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <Button android:id="@+id/btn_play"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/selector"/>
    </Linearlayout>


    Ich bitte um möglichst schnelle Hilfe, da meine App (und der Auftrag) davon abhängen!
    Mfg

  • Aeh das ist keine App, das sind nur 2 XML Dateien. Das dürfte für jeden relativ schwierig werden, Dir hier eine vernüftige Antwort zu geben.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!