如何在 android 2.3.3 (Eclipse) 中创建这样的按钮:
问问题
352 次
3 回答
1
您可以使用 HoloEverywhere。这是一个开源
于 2012-11-23T00:30:46.517 回答
1
您可以ImageView
为此实现,创建具有全息效果的图像并将其android:src="@drawable/holo_img"
放置在 imageview 中
于 2012-11-23T00:33:39.923 回答
0
尝试创建自定义按钮,您可以通过在 xml 文件中编码来创建任何形状,例如这里是我创建圆角按钮的代码
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#FFFDD0"/>
<corners android:bottomLeftRadius="8dip"
android:topRightRadius="8dip"
android:topLeftRadius="8dip"
android:bottomRightRadius="8dip"
/>
<stroke android:width="1px" android:color="#000000" />
</shape>
根据您的要求更改此代码。
于 2012-11-23T05:15:45.450 回答