为了账号安全,请及时绑定邮箱和手机立即绑定

如何使用XML样式在Android中创建自定义按钮

如何使用XML样式在Android中创建自定义按钮

ITMISS 2019-11-07 10:44:17
我想通过使用XML样式使这种按钮[背景和文本相同]颜色这只是一个例子,我想写一些其他文本,例如:关于我我仍然在使用Photoshop中设计师设计的按钮    <ImageButton        android:id="@+id/imageButton5"        android:contentDescription="AboutUs"        android:layout_width="wrap_content"        android:layout_marginTop="8dp"        android:layout_height="wrap_content"        android:layout_below="@+id/view_pager"        android:layout_centerHorizontal="true"        android:background="@drawable/aboutus" />注意:我需要各种尺寸和形状的这种按钮我不想在我的Android应用程序中使用任何图像,我只想使用XML制作图像
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 826 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信