Of course i know InputMethodService already handles orientation.
Here is what i am trying to do, All application are portrait fixed. User touches input box, then softkeyboard appears. If user rotate the device, softkeyboard will also rotate to landscape mode. User selects done button, then keyboard disappear and portrait UI appears again without any rotation. ie., Activity will not allow rotation, but SIP will rotate regardless of the activity. My basic problem is... SIP can't receive the rotation event unless activity allow rotation. So could it ever possible divide the rotation mechanism in 'Activity' and 'InputMethodService'? Thanks again your kind reply, On 4월24일, 오후12시28분, Dianne Hackborn <hack...@android.com> wrote: > There is already full support in InputMethodService for handling orientation > changes -- this is how the default behavior of the sample SoftKeyboard code > is able to change its layout to full screen when landscape. Look at the > InputMethodService docs for the various callbacks and such involved. > > I still don't understand what you are trying to do. If the underlying > activity will allow rotation, then the screen will be rotated and your IME > as well. If it doesn't... well the whole screen is either rotated or it > isn't, so you have to live with what the app can do. > > If you just want to rotate your UI regardless of the app, you might be able > to mess with the layout and apply rotations to the view hierarchy to achieve > something like that... but it would be extremely tricky and fragile. > > 2009/4/23 Zaharang <zahar...@gmail.com> > > > > > > > Thanks for quick reply, Dianne. > > > I understand I can't do this on the application level. > > > But actually I'm making my own SIP and application framework for my > > target. > > So I want to implement rotatable softkeyboard in portray fixed > > application > > by fixing application framework sources. > > > Is it possible? > > > I tried to find the method for delivering rotation changed event to > > InputMethodService, > > but failed because Service can't be registered to > > OrientationEventListner. > > > Any hints will be helpful to me. > > Thanks Again, > > - Za. > > > On 4월23일, 오후6시13분, Dianne Hackborn <hack...@android.com> wrote: > > > You can't do this. You can set an option in the window to allow the > > entire > > > screen to rotate, but this will cause the application to also rotate and > > > thus can have problems -- it is unstable if your window is hidden,, and > > the > > > underlying application probably won't handle it. > > > > On Wed, Apr 22, 2009 at 10:56 PM, Zaharang <zahar...@gmail.com> wrote: > > > > > Hi, > > > > > I am writing appication which have only portrait UIs. > > > > But I want to rotate SIP softkeybard when the device orientation > > > > changes. > > > > > The problems are, > > > > Input method did not receive onConfiguration change event because > > > > application prevented the screenOrientation. > > > > Input method works as service, so i can't register to > > > > OrientationEventListner directly. > > > > > How can I make to rotate only SIP screen? > > > > > Thanks in advance. > > > > > - Za > > > > -- > > > Dianne Hackborn > > > Android framework engineer > > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > > provide private support, and so won't reply to such e-mails. All such > > > questions should be posted on public forums, where I and others can see > > and > > > answer them. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---