2016-12-16 4 views
0

내 앱용 스플래시 화면을 디자인하고 있으며 사용하고있는 이미지가 제대로 표시되지 않습니다. 내가 사용하고있는 그림과 스플래시 화면의 .xml 파일 코드와 함께 여기에 표시되는 모습을 첨부하고 있습니다.이미지가 안드로이드의 스플래시 화면에 제대로 표시되지 않습니다.

<?xml version="1.0" encoding="utf-8"?> 

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="#00abd4" > 

<ImageView 
    android:id="@+id/imgLogo" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_centerInParent="true" 
    android:src="@drawable/logo1" /> 

Picture I am using

How it's getting displayed

+0

'안드로이드 설정하십시오 : layout_width'와'안드로이드 : match_parent''에 layout_height'합니다. – Lal

+0

어느 드로어 블 폴더에 가지고 있습니까? – Stefan

+0

@Stefan 그림의 4 가지 크기를 포함하는 drawable 안에 폴더가 있습니다. –

답변

0
<?xml version="1.0" encoding="utf-8"?> 

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="#00abd4" > 

<ImageView 
    android:id="@+id/imgLogo" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_centerInParent="true" 
    android:src="@drawable/logo1" /> 
+0

match_parent가 작동하지 않습니다. –

+0

xml에서 제공 한 많은 코드 행만을 사용하고 있다면 더 많은 것들이있을 경우 작동합니다. 확인하십시오 ... –

+0

작동하지 않는 경우 전체 xml 코드 –