# Unveiling Bandhook (I): Foreground over any Layout

DevFeed: [Unveiling Bandhook (I): Foreground over any Layout](<https://devfeed.tech/articles/unveiling-bandhook-i-foreground-over-any-layout-27231.md>)

Original publisher: [Read original article](<https://antonioleiva.com/unveiling-bandhook-foreground-any-layout>)

Published: 2013-07-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Antonio Leiva](<https://devfeed.tech/sources/antonio-leiva.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [XML](<https://devfeed.tech/topics/xml.md>), [App](<https://devfeed.tech/topics/app.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [code](<https://devfeed.tech/tags/code.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [xml](<https://devfeed.tech/tags/xml.md>)

## AI overview

This Android tutorial explains how to apply a pressed-state foreground effect to a LinearLayout. It uses an XML selector and wraps the layout in a FrameLayout, which supports the foreground property by default.

## Source excerpt

Everything Android, Kotlin and other random topics