android - Changing size of content in HorizontalScrollView when phone is rotated by overriding onConfigurationChanged -


Hello companion endorsers ...

I have a problem in resizing content in horizontal scale view The phone swirls I'm overriding the configuration turned into my activity which has a horizontal ScrollView, because I want to resize myself though, I have a big problem in finding out what should I do if I change the size of the content. Horizontal Sculview is FILL_PARENT as its own width and a certain height. The idea is that it should always fill the screen width-wise, while there are several chambers of content, each can be viewed as a horizontal view widely.

In my horizontal view, there is a linear layout in the material (let's call it wrapper layout) along with several linear layouts. When the phone rotates, I just want to change the width of all the linear layouts inside the rappar layout. It is easy to do and when I put it in PinsettoTouchEvent (Motion Avenger Eva) and tests the resizing code, it works well, such ideas are resized, as they touch the horizontal sculptuve.

The difficulty occurs when I try to find a good location to execute the resizing code, so that when the phone is rotated resizing will happen automatically. I have tried all possible combinations of the request, on the layout, change, online, but the configuration has been changed and some other and other resizing codes change their calls on super (if any) before and after the code. I can not do this work (even though the ideas of resizing have not been resized) and it's really disappointing. I'm sure HorizonalScrollView has actually changed the width before calling my resize code, But to make no profit, I have done a lot of logging.

Do anyone have any sign that what is happening?

"text">

Ie you are not using the orientation controller's call.

  // Override to allow orientation other than the default portrait orientation  

- (BOOL) should be requiredAutrootettoInterfaceAuthentication (UIIFF) Interface Orientation {

>

I think it can be easy.


Comments