2017-02-20 3 views
0

Ich habe ContentPage mit diesem:Wie strecke ich ListView am unteren Bildschirmrand, wenn die virtuelle Tastatur angezeigt wird?

this.Content = new StackLayout { Children = { 
     new Label { Text = "Block 1:", FontSize = 18 }, 
     Entry1, 
     myListView, 
     new Label { Text = "Block 2:", FontSize = 18 }, 
     Entry2, 
     Entry3 
    } 
}; 

Das Problem ist - wenn ich Entry Kontrolle wähle ich so viel von myListView wie möglich, aber Kontrollen von unten bewegt über Tastatur sehen will und die meisten Teil myListView blockieren.

Wie löst man dieses Problem?

+0

Welche Version ist Ihr Android-Projekt Targeting? Mein ist wie [this] (https://i.stack.imgur.com/z4NFi.png) und ich benutze Emulator mit Android 6.0, standardmäßig verhält es sich wie folgt: [JIF] (https: // i.stack.imgur.com/FQPgI.gif). –

Antwort

0

Auf Ihrer MainActivity.cs gesetzt WindowSoftInputMode = SoftInput.AdjustNothing UI Redimensionierung zu deaktivieren, wenn die virtuelle Tastatur zeigt. Beispiel:

[Activity(ScreenOrientation = ScreenOrientation.Portrait, WindowSoftInputMode = SoftInput.AdjustNothing...)] 
+0

Sieht so aus, als ob es nicht in einem gemeinsamen Projekt funktioniert. – InfernumDeus

Verwandte Themen