Подскажите пожалуйста почему при нажатии кнопки на основном Activity, вызывается второе, но с белым экраном. Всё проверил, вроде ошибок нет. В eclipse Graphical Layout файл .xml второго Activity показывает всё как надо, а по факту белый экран.
код файла xml:
Код: Выделить всё
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="240dp"
android:layout_height="60dp"
android:layout_marginLeft="145dp"
android:layout_marginTop="27dp"
android:src="@drawable/new_id" />
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:ems="10"
android:inputType="textPersonName"
android:layout_marginTop="86dp">
<requestFocus />
</EditText>
</RelativeLayout>
Код: Выделить всё
import android.app.Activity;
import android.os.Bundle;
import android.content.pm.ActivityInfo;
public class ActivityTwo_NewId extends Activity {
public void OnCreate (Bundle savedInstanceState) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
super.onCreate(savedInstanceState);
setContentView(R.layout.two);
}
}
