i have an activity which i have set in xml as

<activity android:name=".myactivity"
android:configChanges="orientation"></activity>

in my activity class

i have

        @Override
        public void onConfigurationChanged(Configuration newConfig) {
                ViewGroup.LayoutParams lp = ll.getLayoutParams();

                if(Configuration.ORIENTATION_LANDSCAPE == newConfig.orientation)
                        lp.height = 100;
                else
                        lp.height = 390;

                ll.requestLayout();

                super.onConfigurationChanged(newConfig);
        }


the thing is, when i go from portrait to landscape break point comes
into this function. but breakpoint is not hit when it again comes back
to portrait

any thing wrong i am doing here ?

regards
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to