2017-12-20 4 views
-1

Xamarin android 디자이너를로드 할 때 빈 Android app이 표시되는 대신 검정색 상자가 대신 나타납니다. 다른 곳에서 답을 찾는 데 어려움이 있습니다. Xamarin Android 디자이너가 검게 칠했습니다.

Blacked out android app

내가이 디자이너의 기본 XML 코드 비주얼 스튜디오 2017

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" /> 

를 사용하고, 유의하시기 바랍니다.

+0

코드를 입력하지 않으면 아무 데나 * 답변을 찾는 데 어려움이 있습니다. – Sefe

+0

@Sefe 이것은 새로운 빈 안드로이드 응용 프로그램을로드 할 때 발생합니다. 작성된 코드가 없습니다. 나는 원래의 질문을 XML 코드로 업데이트 할 것이다. –

+0

문제를 해결 했습니까? –

답변

0

빈 안드로이드 애플리케이션이 표시되는 대신, 나는 검은 색 상자로 대신 인사합니다.

빈 레이아웃이 표시되어 예상되는 결과입니다.Main.axmlTextView을 추가하여 간단한 'Hello World!'를 표시 할 수 있습니다. 귀하의 레이아웃에 텍스트.

을 수정하여이 같은 Main.axml :

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 
    <TextView 
     android:text="Hello World!" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" /> 
</LinearLayout> 

자세한 정보는 Xamarin.Android 시작하기에 official document을 읽을 수 있습니다.