【问题标题】:Create button like this in android 2.3.3在 android 2.3.3 中创建这样的按钮
【发布时间】:2012-11-23 00:29:02
【问题描述】:

如何在 android 2.3.3 (Eclipse) 中创建这样的按钮:

【问题讨论】:

    标签: android button styles


    【解决方案1】:

    您可以使用 HoloEverywhere。这是一个开源的

    https://github.com/ChristopheVersieux/HoloEverywhere

    【讨论】:

      【解决方案2】:

      您可以使用ImageView 来实现,创建一个具有全息效果的图像并将其作为android:src="@drawable/holo_img" 放置在图像视图中

      【讨论】:

        【解决方案3】:

        尝试创建自定义按钮,例如,您可以通过在 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> 
        

        根据您的要求更改此代码。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2013-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-03-12
          • 2020-12-06
          • 1970-01-01
          • 2011-10-04
          相关资源
          最近更新 更多