Amigos, consegui com essa solução:
Ao invés de setar o android:background use o android:style.--Em 28 de fevereiro de 2013 17:12, Francis Mariano <francismariano@gmail.com> escreveu:
Pessoal, boa-tarde.Estou tentando criar um LinearLayout com borda, tentei seguir o exemplo de http://stackoverflow.com/a/8203840/2031219 só q ao executar o exemplo toda a área do linear layout fica preenchido, não apenas a borda, o que estou fazendo de errado??? Obrigado desde já.Exemplo do linkXml
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:width="5dip" android:color="@android:color/white" /> </shape>
Definição do layout
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/border" android:padding="10dip" >
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--Analista-Programador
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.