[英]Custom shaped button in android
我想像这样创建一个自定义形状的按钮:
我可以通过使用RelativeLayout并重叠矩形和圆形来实现类似的功能。 但是那样,我必须添加 2 个onClickListaners ,每个形状一个。
RelativeLayout
onClickListaners
android 中有没有办法(除了使用图像,因为在图像中整个矩形视图都是可点击的,而不仅仅是按钮)来使用单个 XML 布局文件创建这样的设计?
您不必创建两个侦听器,只需为 RelativeLayout 制作一个侦听器
[英]Android Custom shaped Button
[英]Android: custom shaped button
[英]custom shaped button for android activity
[英]Android fully shaped Button
[英]Heart shaped button in android
[英]Android: Creating shaped button
[英]Android Custom shaped dialog
[英]Custom shaped textview, Android
[英]Triangular shaped button for android activity
[英]Image with custom shaped buttons on android
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.