Is it possible to change icons on the menu in RocketWeb Android?

I buy RocketWeb from codecanyon and configure the app. My query is it possible to set Custom icon?

For example, you are set the URL as “http://www.infixsoft.com” with the name “Home”.

Now if you want to set a custom icon for the “Home” then add this line on HomeActivity.kt. Here is the link before else condition.

"http://www.infixsoft.com" -> subMenu.add(i++, i-2, Menu.NONE, menu.menu).setIcon(R.drawable.ic_home)

[URL you set on configure menu] -> subMenu.add(i++, i-2, Menu.NONE, [Test you want to show]).setIcon(R.drawable.[your icon name])

So set your icon inside the drawable folder with image size (24×24). And after that add the line. For other menus, you can add one by one. Or by default shows a common icon.

Leave a Reply