 <p>Here's a solution that works like the Evernote login screen:</p> <p>First, define a class that will be your special LinearLayout like this:</p> <pre><code>public class MyLayout extends LinearLayout { public MyLayout(Context context, AttributeSet attrs) { super(context, attrs); } public MyLayout(Context context) { super(context); } private OnSoftKeyboardListener onSoftKeyboardListener; @Override protected void onMeasure(final int widthMeasureSpec, final int heightMeasureSpec) { if (onSoftKeyboardListener != null) { final int newSpec = MeasureSpec.getSize(heightMeasureSpec); final int oldSpec = getMeasuredHeight(); if (oldSpec &gt; newSpec){ onSoftKeyboardListener.onShown(); } else { onSoftKeyboardListener.onHidden(); } } super.onMeasure(widthMeasureSpec, heightMeasureSpec); } public final void setOnSoftKeyboardListener(final OnSoftKeyboardListener listener) { this.onSoftKeyboardListener = listener; } public interface OnSoftKeyboardListener { public void onShown(); public void onHidden(); } } </code></pre> <p>This layout listens to measure changes, and if new measurements are &lt; than the old ones, that means part of the screen is eaten by soft keyboard.</p> <p>Though, for it to work, in your manifest you need to set <code>android:windowSoftInputMode="adjustResize"</code> so the content will be resized and not just shifted.</p> <p>And the whole system works as follows: You have your layout:</p> <pre><code>&lt;MyLayout id="layout"&gt; &lt;SomeImage id="image"/&gt; &lt;SomeText&gt; &lt;SomeInput&gt; &lt;/MyLayout&gt; </code></pre> <p>It's like evernotes login screen. Then, in your activity:</p> <pre><code>((MyLayout)findViewById(R.id.layout)).setOnSoftKeyboardListener(new OnSoftKeyboardListener() { @Override public void onShown() { findViewById(R.id.image).setVisibility(View.GONE); } @Override public void onHidden() { findViewById(R.id.image).setVisibility(View.VISIBLE); } }); </code></pre> <p>Then go to manifest.xml and set </p> <pre><code>android:windowSoftInputMode="adjustResize" </code></pre> <p>What will happen, is when soft keyboard is shown, it'll hide the image and will resize the rest of content. (You can actually see how text is resized in Evernote)</p> <p>Image hide is, of course, one of the many things you can do. But you must be careful, since different layout changes will also call onMeasure.</p> <p>Of course it's a dirty variant. You need to check for orientation changes, and the right time when actually take the measurements, and maybe some more logic when comparing the new specs with the old ones. But i think this is the only way to do it.</p>