Quantcast
Channel: SIL Language Software Community - Latest topics
Viewing all articles
Browse latest Browse all 701

How to customize new banner for Keyman on Android

$
0
0

Congratulations team in your release of v17 yesterday! I’m very excited about this version.

I understand that keyboards without word suggestions will have a banner at the top of the keyboard, which is necessary to be able to show overlays from long taps and the like.

I would like to display the keyboard name and possibly the logo in this space, similar to this example:

This pull request from GitHub briefly explains how to customize it:

KMManager.setHTMLBanner() allows developers to pass an HTML blob to use for the banner.

My programing abilities include writing somewhat intense excel formulas and a good amount of HTML, but I’m afraid that’s it for now.

I have a few questions:

  1. What file would I put that function in, and where in the file? What are the arguments that the function takes?
  2. Where in the project folder would I put the graphic?
  3. What dimensions and file format should the graphic have?
  4. Where in the project folder would I put the HTML file?
  5. Could you please share a full keyboard example of how this is done? Including the HTML file, graphic, and the file with the special function.

Thanks so much!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 701

Trending Articles