Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8019185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:18:34+00:00 2026-06-04T21:18:34+00:00

I’m making an app for android, I’m using Google Directions API to get and

  • 0

I’m making an app for android, I’m using Google Directions API to get and parse every leg in the route.
I’m displaying the route on the map (that’s already working)

I want to display a list of the turn by turn directions (though they’ll not advance as you goes on, just a list of the directions.

I have a few questions,
First, how to get each leg’s description? Parsing the JSON gets me this line:

"html_instructions": "Head \u003cb\u003enorth\u003c/b\u003e on \u003cb\u003eS Morgan St\u003c/b\u003e toward \u003cb\u003eW Cermak Rd\u003c/b\u003e"

which Java outputs as:

Head <b>north</b> on <b>S Morgan St</b> toward <b>W Cermak Rd</b>

is there an easy way of parsing this to a normal string to be displayed on a list? or just replacing the html chars by “”?

Second, How do you display a list with a semi-transparent background, on top of the map view, based on the size of an array?

EDIT:
the desired result should be something like this:
enter image description here

Only they used TableLayout with a fixed amount of textviews. I want something like that, preferably a bit smaller which would display all, or just some (and than have the ability to change) the routes descriptions
Couldn’t find information on these issues.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:18:35+00:00Added an answer on June 4, 2026 at 9:18 pm

    is there an easy way of parsing this to a normal string to be displayed on a list?

    Probably the easiest way out is to call Html.fromHtml(htmlString).toString().

    Second, How do you display an transparent list based on the size of an array?

    What exactly do you mean by ‘transparent list’? I’m assuming a list that displays ’empty’ items? You could probably populate the data set with null for any items that should be invisible, which you can then check for in your Adapter. Alternatively, you could e.g. use a Map<String, Boolean>, where the value represents whether you want to display the string (key) in the ListView or hide it/make it transparent.

    Edit after updating question: To get that sort of transparent effect is actually pretty straightforward. The ‘rectangle’ is simply a separate ViewGroup with a black background color that includes transparency; e.g. #55000000. You can play around with the first two hexadecimal numbers to change the transparency, and thus the visual tint.

    To get the route information displayed on top of the map, you’ll want to use a RelativeLayout as root (and probably set the semi-transparent background color to it). After that, you can populate that particular piece of UI with anything you’d like it to show. For example, I created something similar the other day (as a birthday present to a friend) that will take him to the actual location of the present. I simply added previous/next buttons to manually move between the navigation hints.

    (Sorry, hints are in Dutch, but I’m sure you get the idea)

    navigation example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.