【问题标题】:Floating Action Bar in android with maven带有maven的android中的浮动操作栏
【发布时间】:2017-01-03 19:54:31
【问题描述】:

我正在 android 中使用浮动操作栏 (FAB) 开发一项功能。我的项目在 Maven 中,我的设备在 Android lolipop 上。谁能建议我如何在 Android lolipop 中将 FAB 与 maven 一起使用?

【问题讨论】:

    标签: android maven floating-action-button


    【解决方案1】:

    如果您使用的是 Android Studio,那么您应该这样做。 只需将设计支持库添加到您的 android 项目的 build.gradle
    compile 'com.android.support:design:25.1.0'

    如果您需要 maven,那么您可以通过将以下几行添加到您的 pom.xml 中来将 floatingactionbutton 添加到您的项目中

    <!-- https://mvnrepository.com/artifact/com.getbase/floatingactionbutton -->
    <dependency>
        <groupId>com.getbase</groupId>
        <artifactId>floatingactionbutton</artifactId>
        <version>1.9.0</version>
    </dependency>
    

    使用的库是:https://mvnrepository.com/artifact/com.getbase/floatingactionbutton/1.9.0

    【讨论】:

    • 我的项目在maven中,需求也是maven。我无法从 Maven 导出到 gradle。那么如何在maven中使用呢?
    • @user3076440 编辑了我的答案
    猜你喜欢
    • 2016-07-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-18
    • 1970-01-01
    • 2013-02-23
    相关资源
    最近更新 更多