When I'm setting a foreground for a button it show's fine on Android Studio but when I try it on my phone I cant see the picture selected.
(当我为按钮设置前景时,它在Android Studio上显示正常,但是当我在手机上尝试时,看不到所选图片。)
Here is a fresh project just to test this: (这是一个新项目,仅用于测试:)
Something wrong with Android Studio's preferences or its just my phone?
(Android Studio的偏好设置或我的手机有问题吗?)
<TextView
android:layout_width="wrap_content"
android:layout_height="100dp"
android:text="Hello World!"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:foreground="@mipmap/ic_launcher"
android:foregroundGravity="center" />
And here is the Hello World's simple code.
(这是Hello World的简单代码。)
ask by C.S. translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…