【发布时间】:2020-06-13 08:31:25
【问题描述】:
退格符号“⌫”显示在运行 Android API 版本 28 的设备上,但未显示在运行 API 版本 15 的模拟器上。我正在使用以下代码。请帮忙
<Button
android:id="@+id/backspace"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#F5F5F5"
android:text="\u232b"
android:textSize="35sp"
app:layout_column="0"
app:layout_gravity="fill"
app:layout_row="0"
app:layout_rowWeight="1" />
【问题讨论】:
-
您可以尝试使用 Image 作为图标,然后使用
ImageButton在所有 API 版本上显示相同。
标签: android android-studio backwards-compatibility