ImageView
과 두 개의 TextField가 레이아웃에 추가되었지만 미리보기를 보면 그냥 공백으로 남습니다. 그것은 나에게 "렌더링 오류"오류를 제공합니다. 내가 무엇을 할 수 있을지?레이아웃이 공백으로 유지됩니다.
나는 다음에 내 레이아웃 파일을 추가합니다 : RelativeLayout
에
<?xml version="1.0" encoding="utf-8"?>
<RealtiveLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorSlide_1" >
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/wireless"
android:layout_centerHorizontal="true"
android:scaleType="centerCrop"
android:layout_marginTop="150dp"
android:id="@+id/img"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/slide_1_title"
android:textColor="android:color/white"
android:textSize="30sp"
android:textStyle="bold"
android:gravity="center_horizontal"
android:layout_below="@+id/img"
android:layout_marginTop="12dp"
android:id="@+id/slide_title"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/slide_1_desc"
android:textColor="android:color/white"
android:textSize="18sp"
android:gravity="center_horizontal"
android:layout_below="@id/slide_title"
android:layout_marginTop="12dp"
android:id="@+id/slide_desc"
android:layout_marginRight="40sp"
android:layout_marginLeft="40sp"
/>
</RealtiveLayout>
@NileshRathod 내가 안드로이드 스튜디오와 함께 일하지 않았기 때문에 아직 나는 알 필요하십니까? – MIsterX