-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/core/9468-marker-normalization-epic-ldml
- Loading branch information
Showing
30 changed files
with
951 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
17.0.213 | ||
17.0.215 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Custom banner theme --> | ||
<div style="background: white; width: 100%; height: 100%; position: absolute; left: 0; top: 0; display: flex"> | ||
|
||
<!-- svg path is relative to assets/ folder --> | ||
<img src="banner/keyman_banner.svg" style="height:60%; background: white; display: block; margin: auto 2%;"> | ||
|
||
<!-- Tri-color line --> | ||
<div style='height: 7%; left: 0; position: absolute; bottom: 0; width: 56%; background: #F68924'></div> | ||
<div style='height: 7%; left: 56%; position: absolute; bottom: 0; width: 23%; background: #CC3846'></div> | ||
<div style='height: 7%; left: 79%; position: absolute; bottom: 0; width: 21%; background: #79C3DA'></div> | ||
</div> |
372 changes: 372 additions & 0 deletions
372
android/KMAPro/kMAPro/src/main/assets/banner/keyman_banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions
29
android/KMAPro/kMAPro/src/main/java/com/keyman/android/BannerController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.keyman.android; | ||
|
||
import android.content.Context; | ||
|
||
import com.keyman.engine.KMManager; | ||
import com.keyman.engine.util.FileUtils; | ||
|
||
import java.io.File; | ||
|
||
public class BannerController { | ||
|
||
// Paths relative to assets folder for banner themes | ||
public static final String KM_BANNER_DIR = "banner"; | ||
public static final String KM_BANNER_THEME_KEYMAN = "banner.html"; | ||
|
||
public static void setHTMLBanner(Context context, KMManager.KeyboardType keyboardType) { | ||
if (keyboardType == KMManager.KeyboardType.KEYBOARD_TYPE_UNDEFINED) { | ||
return; | ||
} | ||
|
||
KMManager.copyHTMLBannerAssets(context, KM_BANNER_DIR); | ||
|
||
// Always use Keyman banner theme | ||
String contents = FileUtils.readContents(context, KM_BANNER_THEME_KEYMAN); | ||
KMManager.setHTMLBanner(keyboardType, contents); | ||
KMManager.setBanner(keyboardType, KMManager.BannerType.HTML); | ||
KMManager.showBanner(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.