resolvi o problema... acredito que vc esteja utilizando o android studio né?
Em terça-feira, 12 de abril de 2016 12:56:50 UTC-3, gorio escreveu:
-- O preview está com um bug e não exibe o canto arredondado, mas se vc rodar o app no dispositivo/emulador o canto selecionado ficará aparecerá arrendodado.
Digite o código aqui...
no diretório drawable:
No botão:
resultado:
no diretório drawable:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@android:color/holo_blue_dark" />
<corners
android:bottomLeftRadius="10dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="0dp"
android:topRightRadius="0dp" />
</shape>
<Button
android:id="@+id/btnEscrever"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/edtTxtMsg"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="@string/string_gravar"
android:background="@drawable/teste"
/>
resultado:
Em terça-feira, 12 de abril de 2016 12:56:50 UTC-3, gorio escreveu:
Após criar um layout de botão com apenas um canto arredondado estou recebendo a mensagem de falha de renderização acusando Path.isConvexEste é o layout<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android ">
<item>
<shape android:shape="rectangle">
<solid android:color="#9DACC1" />
<corners android:topLeftRadius="0dp" />
<corners android:topRightRadius="0dp" />
<corners android:bottomRightRadius="0dp" />
<corners android:bottomLeftRadius="10dp" />
<padding
android:bottom="4dp"
android:left="4dp"
android:right="4dp"
android:top="4dp" />
</shape>
</item>
</layer-list>
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/d/optout.







0 comentários:
Postar um comentário