[android-components](../../index.md) / [mozilla.components.browser.menu](../index.md) / [BrowserMenuItem](index.md) / [getLayoutResource](./get-layout-resource.md)

# getLayoutResource

`abstract fun getLayoutResource(): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/menu/src/main/java/mozilla/components/browser/menu/BrowserMenuItem.kt#L23)

Returns the layout resource ID of the layout to be inflated for showing a menu item of this
type.

