【发布时间】:2019-01-18 11:37:20
【问题描述】:
我想在 Button 上添加通话图标,但 drawableTop 不起作用。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp">
<Button
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:drawableTop="@android:drawable/ic_menu_call"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
【问题讨论】:
-
并使用相同的代码我可以看到
drawableTop -
实际上我正在使用 android:drawableLeft ,这也不起作用。
-
有没有你drawable的tint颜色和背景颜色一样的情况?
-
您是否有机会使用新材料库而不是设计支持库?
标签: android android-layout android-drawable android-button