I'm using absolute layouts throughout our app to present modal pages, many of which contain entrys to retrieve input from the user. On one of these pages specifically - when the entry gains focus the entire modal panel is immediately removed from the layout for some reason. The application output is providing some clues - and I have denoted one of the lines below with an arrow where it looks like its retrieving a null input, but I cannot figure out why this is happening or how to resolve it.
Does anybody here know what I'm doing wrong?
**Application Output: (Note: The FOCUSED and UNFOCUSED text lines are debug print statements that I have inserted for testing.)
[ViewRootImpl@f5a7640[MainActivity]] ViewPostImeInputStage processPointer 0
[ViewRootImpl@f5a7640[MainActivity]] ViewPostImeInputStage processPointer 1
FOCUSED
[InputMethodManager] Starting input: tba=android.view.inputmethod.EditorInfo@958fa09 nm : com.esp.forza ic=com.android.internal.widget.EditableInputConnection@307640e
[InputMethodManager] startInputInner - mService.startInputOrWindowGainedFocus
[InputTransport] Input channel constructed: fd=100
[InputTransport] Input channel destroyed: fd=89
[InputMethodManager] SSI - flag : 0 Pid : 28127 view : com.esp.forza
[ViewRootImpl@f5a7640[MainActivity]] MSG_RESIZED: frame=Rect(0, 0 - 1440, 2960) ci=Rect(0, 0 - 0, 168) vi=Rect(0, 0 - 0, 168) or=1
[ViewRootImpl@f5a7640[MainActivity]] Relayout returned: oldFrame=[0,0][1440,2960] newFrame=[0,0][1440,2960] result=0x1 surface={isValid=true 547406497792} surfaceGenerationChanged=false
[ViewRootImpl@f5a7640[MainActivity]] MSG_RESIZED: frame=Rect(0, 0 - 1440, 2960) ci=Rect(0, 0 - 0, 168) vi=Rect(0, 0 - 0, 1225) or=1
Thread finished: #9
Thread started: #14
[ViewRootImpl@f5a7640[MainActivity]] ViewPostImeInputStage processPointer 0
[ViewRootImpl@f5a7640[MainActivity]] ViewPostImeInputStage processPointer 1
[InputMethodManager] HSIFW - flag : 0 Pid : 28127
UNFOCUSED
--> [InputMethodManager] Starting input: tba=android.view.inputmethod.EditorInfo@a61507d nm : com.esp.forza ic=null
[InputMethodManager] startInputInner - mService.startInputOrWindowGainedFocus
[InputTransport] Input channel constructed: fd=89
[InputTransport] Input channel destroyed: fd=100
[IInputConnectionWrapper] finishComposingText on inactive InputConnection
[IInputConnectionWrapper] finishComposingText on inactive InputConnection
[ViewRootImpl@f5a7640[MainActivity]] MSG_RESIZED: frame=Rect(0, 0 - 1440, 2960) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
[ViewRootImpl@f5a7640[MainActivity]] Relayout returned: oldFrame=[0,0][1440,2960] newFrame=[0,0][1440,2960] result=0x1 surface={isValid=true 547406497792} surfaceGenerationChanged=false
Thread finished: #26
Thread started: #29**