안녕 얘들를 표시하지 난 이미지 뷰를 포함하는 레이아웃 main.xml에이 시작 화면을 이곳 는 main.xml에 파일되는 SplashScreen의 이미지 뷰 이미지를
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/slide11" />
</LinearLayout>
이며, 여기 내 splashscreen.class 파일
입니다protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
new Handler().postDelayed(new Runnable() {
public void run()
Intent intent = new Intent(getApplicationContext(),content_activity.class);
startActivity(intent);
Main.this.finish(); } }, 5000);
} catch(Exception e){}
}
@Override
public void onBackPressed() {
super.onBackPressed();
} }
난 내 에뮬레이터 모두가 잘 작동하지만 내가 디버깅 모드를 통해 디바이스에서 실행하려고 할 때 나는 흰색 화면을 이미지 뷰에 지정된 이미지를 얻을 수 있지만 어떻게해야합니까에서 이것을 실행하려고하면 지정된 시간 동안. 도움을 많이 주시면 감사하겠습니다.
// 편집 : res/drawable 폴더를 두 번 확인하고 주로 png를 사용하여 시도했으며 장치에서 작동하지 않는 .gif를 사용하여 이동했습니다. (장치 micromax a110)
한번 예외가 발생하는지 확인 콘솔을 확인 하시겠습니까? – KCRaju
W/OpenGLRenderer (13960) : 텍스처에 업로드하기에 너무 큰 비트 맵이 사용되어야하는 이미지 크기에 제한이 있습니까? .png 하나는 1.04MB이고 jpeg는 867kb입니다 – jayeshkv
이미지의 크기가 줄었던 것처럼 보이기 때문에 작업을 줄일 수 있습니다! – jayeshkv