I am writing an Android mobile phone application. I created a keyboard layout that contains a TextView and 10 buttons. Buttons are keys for 10 digits (0 to 9), and TextView is for displaying numbers according to the keys pressed.
In my application, I add text ("0" or "1", etc.) to the TextView for each button clicked. If I pressed the buttons 1, 2, 3 , the text in the TextView is 123 . The problem is that it allows you to screen in landscape mode, and the TextView contains 123, if I rotate it, in portrait mode there is no text in the TextView.
Please help me regarding this.
android textview
Yugandhar babu
source share