question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Allow Ribbon to be applied other icons

See original GitHub issue

Really pleased to see this library picked up from where the last dev left off.

Whilst this works great for an app with a single entry point, we have an app with multiple launcher activities it would be good to be able to apply the ribbon to them all.

I believe you are currently limited to just the icon and round icon in the application tag of the manifest by:

public static List<String> getLauncherIcons(File manifestFile) throws SAXException, IOException {
  GPathResult manifestXml = xmlSlurper.parse(manifestFile);
  GPathResult applicationNode = (GPathResult) manifestXml.getProperty("application");
  String icon = String.valueOf(applicationNode.getProperty("@android:icon"));
  String roundIcon = String.valueOf(applicationNode.getProperty("@android:roundIcon"));
...

But this doesn’t check for activities or activity-alias’es with potentially a different icon and android.intent.category.LAUNCHER

A way to give the library a list of icon paths to ribbonize would be ideal, and probably a lot easier/cleaner than iterating the manifest.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
issue-label-bot[bot]commented, Sep 23, 2020

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.98. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

1reaction
ac87commented, Sep 28, 2020

Tested with debug build and the multiple icons are all decorated as expected. Thank you very much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 7 Ribbons - Win32 apps | Microsoft Learn
A ribbon is a command bar that organizes a program's features into a series ... These unintelligible icons require labels for rich commands....
Read more >
Customizable ribbons and icons - Devolutions Forum
To make it a request that would benefit everyone who uses RDM, I'm sure others would like to customize their ribbons also or...
Read more >
New Ribbon - Support for path/vector icons | WinForms Edition
We have workarounds for other problems with the new ribbon, but not icon access. When time allows, I'll submit the full list of...
Read more >
Ribbon not applied to API 26 adaptive-icons #23 - GitHub
Any timeline on this? I use a vector for my foreground adaptive icon layer and would like to be able to apply the...
Read more >
[CONNECT Ribbon] Display Icon for a submenu under ...
I am using a Ribbon containing Splitbuttons and DropDownButtons. Under one of these I want to make a SubMenu with a few MenuItems....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found