erinjaka Posted April 22, 2011 Share Posted April 22, 2011 Bonjour à tous! Est-il possible de supprimer les bordure d'un EditText ou de changer sa couleur pour qu'il ne s'affiche pas en rose lorsqu'il a le focus? Merci de votre aide! Link to comment Share on other sites More sharing options...
nahzhir Posted April 26, 2011 Share Posted April 26, 2011 oui c'est possible avec un selector state list en tant que Background: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" android:constantSize=["true" | "false"] android:dither=["true" | "false"] android:variablePadding=["true" | "false"] > <item android:drawable="@[package:]drawable/drawable_resource" android:state_pressed=["true" | "false"] android:state_focused=["true" | "false"] android:state_selected=["true" | "false"] android:state_checkable=["true" | "false"] android:state_checked=["true" | "false"] android:state_enabled=["true" | "false"] android:state_window_focused=["true" | "false"] /> </selector> et en plus c'est très bien expliquer dans la doc : http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.