В моем приложении nativescript - у меня есть кнопка внизу экрана. На экране есть текстовая область. Когда пользователь касается текстовой области, появляется виртуальная клавиатура. На этом этапе я хочу, чтобы кнопка внизу переместилась вверх и появилась прямо над виртуальной клавиатурой. Любые предложения о том, как я могу добиться этого как на Android, так и на iOS?
Код
<GridLayout>
<ActionBar title="" backgroundColor="#f82462" top="0" left="0">
<NavigationButton (tap)="goBack()"></NavigationButton>
</ActionBar>
<GridLayout rows="*, auto">
<GridLayout row ='0' rows="auto *" columns="">
<GridLayout row="0" rows="" columns="">
<Button text="Top Button" (tap)="goNext()"></Button>
</GridLayout>
<GridLayout row="1" backgroundColor="#f82462">
<TextView [(ngModel)]="xyz" class="input" hint="Write your question as a complete sentence.Click on camera to add images if required." returnkeyType="done" id="questionText"></TextView>
</GridLayout>
</GridLayout>
<StackLayout row='1'>
<Button text="Next" (tap)="goNext()"></Button>
</StackLayout>
</GridLayout>