P PoppaBart Member Sep 17, 2020 #1 I have tried searching the form but am unable to find what I am looking for, so I am hoping someone can help. Is it possible to position an input dialog in the middle of the screen. I am writing a app that asks for input, but the dialog is positioned at the top of the screen and all I can see is the input field. Any help will be greatly appreciated. Kind Regards Poppabart
I have tried searching the form but am unable to find what I am looking for, so I am hoping someone can help. Is it possible to position an input dialog in the middle of the screen. I am writing a app that asks for input, but the dialog is positioned at the top of the screen and all I can see is the input field. Any help will be greatly appreciated. Kind Regards Poppabart
Erel B4X founder Staff member Licensed User Longtime User Sep 17, 2020 #2 Are you using B4XDialog? The dialog appears near the top to leave space for the keyboard. Upvote 0
P PoppaBart Member Sep 17, 2020 #3 Erel said: Are you using B4XDialog? The dialog appears near the top to leave space for the keyboard. Click to expand... Yes I am using B4XDialog, and the dialog is half hidden by the Activity.Title Upvote 0
Erel said: Are you using B4XDialog? The dialog appears near the top to leave space for the keyboard. Click to expand... Yes I am using B4XDialog, and the dialog is half hidden by the Activity.Title
Erel B4X founder Staff member Licensed User Longtime User Sep 17, 2020 #4 Post a screenshot. Upvote 0
P PoppaBart Member Sep 17, 2020 #5 Erel said: Post a screenshot. Click to expand... Attached, also I am using a B4XInputTemplate in the dialog if this helps. Last edited: Sep 17, 2020 Upvote 0
Erel said: Post a screenshot. Click to expand... Attached, also I am using a B4XInputTemplate in the dialog if this helps.
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2020 #6 Looks like the keyboard pushed the dialog up. Add this to the manifest editor: Code: Copy SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) Upvote 0
Looks like the keyboard pushed the dialog up. Add this to the manifest editor: Code: Copy SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
P PoppaBart Member Sep 19, 2020 #7 Erel said: Looks like the keyboard pushed the dialog up. Add this to the manifest editor: Code: Copy SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) Click to expand... Thanks Erel. Afraid it did no work, however I have a workaround so all is ok. Upvote 0
Erel said: Looks like the keyboard pushed the dialog up. Add this to the manifest editor: Code: Copy SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) Click to expand... Thanks Erel. Afraid it did no work, however I have a workaround so all is ok.