简体   繁体   English

按钮文字在Android Google地图中显示为灰色

[英]Button text is greyed out in android google map

I have a button I placed ontop of my google map, but the text is all grayed out like this: 我在Google地图的顶部放了一个按钮,但是文本全部变成灰色,如下所示:

在此处输入图片说明

Is there anyway to make the text not grayed out so it will be easier to read? 无论如何,是否可以使文本不灰显,以便于阅读?

My xml is: 我的xml是:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" >

    <fragment
        android:id="@+id/map"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        class="com.google.android.gms.maps.MapFragment" />

    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Navigate to Brewery"
        android:id="@+id/button2"
        android:textColor="@color/orange"
        android:textStyle="bold"
        android:onClick="getMap"
        />


</RelativeLayout>

android:textColor="@color/orange" android:textColor =“ @ color / orange”

Try using white instead 尝试改用白色

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM