Unicode ☰ hamburger not displaying in Android & Chrome
Asked Answered
M

1

8

I noticed that my hamburger menu icon has stopped displaying in Chrome for Android and also, in the Android browser now I simply get the missed icon image. It still works in all desktop browsers, in Safari and on Windows phone browsers.

I've created a test page to show the problem, included below. I'm confused about this as two months ago it was working fine when testing was completed and nothing has been changed or updated since.I wondered if anybody had any advice? Has something changed recently to cause this - do I need to look at alternative methods?

<!DOCTYPE html>
<html>
<head>
<style>    
p.sansserif {font-family: Arial, Helvetica, Verdana, sans-serif;}
</style>
</head>
<body>

<p class="sansserif">This is the hamburger, &#9776; , there. </p>

</body>
</html>
Moonmoonbeam answered 18/8, 2015 at 11:9 Comment(1)
You better provide your png graphics and use it as a compound drawable in your TextView.Larrylars
M
22

I've worked around this problem by using the UNICODE character UNICODE U+2261 (8801), ≡ IDENTICAL TO as illustrated below rather than the UNICODE U+2630 (9776) ☰ TRIGRAM FOR HEAVEN which seems to have font support issues on my Android devices.

<p class="sansserif">&#8801; Menu </p>

I preferred not to do it with an image for simplicity and resizing.

Moonmoonbeam answered 18/8, 2015 at 19:56 Comment(1)
Trigram for heaven is actually a Chinese character hence the lack of it on Android: en.wikipedia.org/wiki/Bagua#TrigramsDrier

© 2022 - 2024 — McMap. All rights reserved.