猿问

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

我想通过使用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制作图像


ITMISS
浏览 827回答 3
3回答
随时随地看视频慕课网APP

相关分类

Android
我要回答