【发布时间】:2018-07-26 17:40:34
【问题描述】:
在我的 Android 应用程序中,我使用了来自 Clans' 3rd-party 库的浮动操作按钮。喜欢-
<com.github.clans.fab.FloatingActionButton
android:id="@+id/fab3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_help_outline"
fab:fab_colorNormal="#009688"
fab:fab_label="Learn How-To Use"
fab:fab_size="mini" />
当我的快餐栏弹出时,部落工厂不会像谷歌设计库中的默认浮动操作按钮那样动画。
我看到了一些可以解决问题的 proguard 规则。喜欢:
-keep class android.support.design.widget.** { *; }
-keep interface android.support.design.widget.** { *; }
我将这些行添加到 proguard-rules.pro 文件中,但根本没有帮助。 谁能建议我做错了什么?
任何建议/建议将不胜感激:)
【问题讨论】:
-
你的
FloatingActionButton里面的布局是什么?你在用CoordinatorLayout吗? -
不,我使用的是RelativeLayout
-
其实我用 FloatingActionMenu 和 floatingactionbuttons
-
哦,对不起,我没有意识到你没有使用股票 FloatingActionButton。
-
我更新了我的答案以使用您正在使用的库。
标签: android android-button floating-action-button