【问题标题】:build XML button in android studio在 android studio 中构建 XML 按钮
【发布时间】:2020-05-17 20:53:53
【问题描述】:

如何构建一个像这样的 FAB 按钮来使用 XML 在 android studio 中展开视图?

this is the button I need to build

【问题讨论】:

    标签: android xml user-interface kotlin button


    【解决方案1】:

    如果你需要圆角按钮,那么你可以使用FAB按钮,像这样:

     <android.support.design.widget.FloatingActionButton
            android:id="@+id/btn_options"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_options"
            android:tint="@color/colorPrimary"
            app:fabCustomSize="40dp"
            />
    

    然后你可以把它放在你需要的地方。

    【讨论】:

      猜你喜欢
      • 2018-04-21
      • 2016-04-07
      • 2014-09-27
      • 2015-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-28
      • 1970-01-01
      相关资源
      最近更新 更多