Legend does not display text on Android device

1015
5
11-20-2013 06:38 AM
JeffAli
New Contributor
Hello, I have a javascript arcgis project that uses a legend to display the sublayers and control the visibility. The legend shows up properly on my computer and on an ipad but the text disappears when I use my android tablet. If anyone has a solution, I would love to hear it. Thank you!
0 Kudos
5 Replies
KellyHutchins
Esri Frequent Contributor
We've had issues reported with the legend text not displaying on Android. The issues were due to a css problem but that issue has been fixed. Which version of the API are you using? If you are using an older version of the api can you test with 3.7.
0 Kudos
JeffAli
New Contributor
We've had issues reported with the legend text not displaying on Android. The issues were due to a css problem but that issue has been fixed. Which version of the API are you using? If you are using an older version of the api can you test with 3.7.


Currently I'm using version 3.7 compact of the javascript API. I'm also using version 3.7 of the esri css.
0 Kudos
JeffAli
New Contributor
Has anyone else encountered this issue and found a solution? I can't seem to find anything on it.

Here are my javascript files:

<script src="js/jquery.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="http://js.arcgis.com/3.7compact/"></script>


My CSS files as well:

<link rel="stylesheet" href="http://js.arcgis.com/3.7/js/dojo/dijit/themes/claro/claro.css">
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <link rel="stylesheet" href="http://js.arcgis.com/3.7/js/esri/css/esri.css">
0 Kudos
by Anonymous User
Not applicable
Hi Jeff, I was unable to repro the issue on an Android device. 

A while back I did encounter this exact problem when testing on Android. The font color was the same as the background color of the legend, so it seemed like the text was not showing up.  A temporary work-around was to apply a style to only the text inside the legend widget.  Have you tried this approach?
0 Kudos
JeffAli
New Contributor
Hi Jeff, I was unable to repro the issue on an Android device. 

A while back I did encounter this exact problem when testing on Android. The font color was the same as the background color of the legend, so it seemed like the text was not showing up.  A temporary work-around was to apply a style to only the text inside the legend widget.  Have you tried this approach?


I have not, but I will try it and get back to you.
0 Kudos