Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27520] Android: Fullscreen Window cuts of elements when keyboard is visible

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, fullscreen
ReporterMichael Gangolf
AssigneeEric Merriman
Created2019-10-08T13:03:49.000+0000
Updated2019-11-04T20:06:47.000+0000

Description

<Alloy>
	<Window backgroundColor="#fff" fullscreen="true" navBarHidden="true">
		<TableView top="0" bottom="60" backgroundColor="teal">
			<TableViewRow title="top"></TableViewRow>
			<TableViewRow title="1test"></TableViewRow>
			<TableViewRow title="2test"></TableViewRow>
			<TableViewRow title="3test"></TableViewRow>
			<TableViewRow title="4test"></TableViewRow>
			<TableViewRow title="5test"></TableViewRow>
			<TableViewRow title="6test"></TableViewRow>
			<TableViewRow title="7test"></TableViewRow>
			<TableViewRow title="8test"></TableViewRow>
			<TableViewRow title="9test"></TableViewRow>
			<TableViewRow title="10test"></TableViewRow>
			<TableViewRow title="11test"></TableViewRow>
			<TableViewRow title="end"></TableViewRow>
		</TableView>

		<TextField id="tf" bottom="0" height="60" width="Ti.UI.FILL"></TextField>
	</Window>
</Alloy>
When running this code and focusing the Textfield the window will move up and you can't scroll up in the tableview to the first element. normal view: !Screenshot_20191008-144600.png|thumbnail! keyboard up, can't scroll the tableview to the top elements: !Screenshot_20191008-144609.png|thumbnail! Tried different windowSoftInputMode but nothing changed. Setting fullscreen to false will allow you to scroll all the way up to the first element. Not sure if it is native behaviour but perhaps there is a flag that is missing to make you scroll up to the first element again. Ti SDK: 8.2.0.GA Android 7.0.1

Attachments

FileDateSize
Screenshot_20191008-144600.png2019-10-08T12:58:58.000+000013657
Screenshot_20191008-144609.png2019-10-08T12:58:58.000+000028513

Comments

  1. Sharif AbuDarda 2019-11-03

    Hello [~michael], I have tested the issue in Android emulators 7.1.1, 8.0, 9.0 version. I see the issue is all the same everywhere. After the virtual keyboard opens, the table view does not scroll up on top. [~jquick], Can you please look into this? Thanks.
  2. Joshua Quick 2019-11-04

    Sorry. I don't have time to look into this at the moment. But what I do know is that an activity's default "windowSoftInputMode" setting used to be "adjustResize", which will resize the activity window to fit between the top StatusBar/ActionBar and bottom VirtualKeyboard/NavigationBar. Meaning that the virtual keyboard is not supposed to *overlap* the window content when "adjustResize" is set. Based on the screenshots, it looks like it is doing an "adjustPan" instead.
  3. Joshua Quick 2019-11-04

    Hmm... apparently "adjustResize" won't resize the window content if the status bar has been removed (aka: "fullscreen" mode). Google has a ticket written about this marked "Won't Fix". https://issuetracker.google.com/issues/36911528 This is an ugly topic on stackoverflow... https://stackoverflow.com/questions/7417123/android-how-to-adjust-layout-in-full-screen-mode-when-softkeyboard-is-visible/19494006
  4. Srdjan Lukic-Bardak 2019-11-04

    The windowSoftInputMode has no effect. I've tried all possibles options provided in the titanium api. All with same output as shown above.
  5. Joshua Quick 2019-11-04

    Right. Setting "windowSoftInputMode" to "adjustSize" only works if not fullscreen. That's an issue on Google's end as can be seen by my links above.

JSON Source