【问题标题】:How can i create a BUTTON with image and text? [closed]如何创建带有图像和文本的按钮? [关闭]
【发布时间】:2015-04-23 00:27:34
【问题描述】:

我想创建一个按钮或图像按钮,它将包含图标和文本。图标将位于左侧,文本将位于按钮的中心。

【问题讨论】:

  • 对不起!安卓工作室

标签: image button textview imagebutton


【解决方案1】:

【讨论】:

    【解决方案2】:
    <Button
                android:id="@+id/button3"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:drawableLeft="@android:drawable/btn_star_big_on"
                android:text="Drawable\nleft"/>
    

    答案在这里:)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-15
      • 1970-01-01
      • 2023-03-02
      • 1970-01-01
      • 2018-04-16
      • 1970-01-01
      相关资源
      最近更新 更多