【发布时间】:2017-06-19 14:05:27
【问题描述】:
我一直在开发一个对话应用程序。我构建了一个 APK(Nougat) 并发送给我的朋友进行测试。我的一个朋友没有正确获得发送图标(棉花糖)。我给了火箭图标来发送消息。但在他的手机中,他只能看到消息图标。另一位朋友也没有获得背景图片,但他可以看到火箭图标(棒棒糖)。下面附上快照。
请帮我纠正这个错误。
<ImageButton
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:layout_weight="7"
android:padding="4dp"
android:id="@+id/send_button"
app:srcCompat="@android:drawable/ic_menu_send"
android:background="@android:color/transparent"
android:tint="@color/colorAccent"
android:contentDescription="@string/send_to_watson_button" />
对于我这样使用的背景..
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.ibm.watson_conversation.MainActivity"
android:background="@drawable/tilerepeat">
图片错误
预期图像
【问题讨论】:
-
两张图片完全相同。请解决这个问题。
-
您遇到问题的不同设备的 android 版本是什么
-
@android:drawable/ic_menu_send任何以android开头的都是平台提供的。这意味着您可能会在 AOSP、三星、索尼等手机上得到不同的结果。如果你需要一些特定的东西,把它放在你的 apk 中。 -
@KarimElGhandour 固定链接.. 请立即查看..
-
@AshishGarg 我用牛轧糖做的,我的朋友们用的是棉花糖和棒棒糖。
标签: android image imagebutton imageicon android-imagebutton