Hi.
<My Activity>
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
<main.xml>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<com.DisplayView
android:id="@+id/displayview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
When first run, there is no problem.
If I touch screen, Screen Orientation Change...by call
(setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE));
Display landsacpe orientation (So far there is no problem.)
and then, If I touch screen again, I will expect the Screen
Orientation Change...by call
(setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT));
But this time, error occur.
Force close!!
error in onCreate();
setContentView(R.layout.main); error: Android.view.InflateException:
Binary XML file line #7
I don't know solution....
help me.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en