Reputation: 2185
I have a textbox on a screen. When textbox is focused, the layout is shrinked and all messed up. I know how to resolve this in Android SDK, by adding android:windowSoftInputMode="adjustPan"
to activity tag in AndroidManifest.xml
. But How can I do that in Titanium? Is there a way to modify AndroidManifest.xml
in Titanium?
Or Any other way to avoid soft keyboard from shrinking my layout.
Upvotes: 0
Views: 1382
Reputation: 33
In your main window, try this.
**xml**
<Alloy>
<Window id="baseWindow" exitOnClose="true">
<View id="learnTab" class="fullScreen" ></View>
<View id="practiceTab" class="fullScreen"></View>
<View id="calculateTab" class="fullScreen"></View>
<View id="home" class="fullScreen"></View>
</Window>
</Alloy>
**tss**
"#baseWindow": {
backgroundColor: '#FFF',
navBarHidden: true,
orientationModes: [Ti.UI.PORTRAIT]
}
"#baseWindow[platform=android]": {
windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_ADJUST_PAN
}
I believe this helps you.
Upvotes: 0