Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] LinearAndroid com borda

Amigos, consegui com essa solução:


<?xml version="1.0" encoding="UTF-8"?> 
    <solid android:color="#ffffff"/>    
    <stroke android:width="2dp"
            android:color="#000000"/>
    <padding android:left="5dp"
             android:top="5dp"
             android:right="5dp"
             android:bottom="5dp"/> 
    <corners android:bottomRightRadius="30dp"
             android:bottomLeftRadius="30dp" 
             android:topLeftRadius="30dp"
             android:topRightRadius="30dp"/> 
</shape>

Em 28 de fevereiro de 2013 19:19, Felipe Aron <felipearon@gmail.com> escreveu:
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 link

Xml 

<?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.
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário