<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="100dp"
android:layout_height="wrap_content"
android:text="Email:"
android:textSize="30dp"
android:paddingLeft="0dp"
android:paddingTop="10dp"/>
<EditText
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:singleLine="true" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Login"
android:paddingTop="10dp"/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="200dp"
android:layout_height="100dp"
android:text="Home" />
<TextView
android:layout_width="200dp"
android:layout_height="200dp"
android:text="About" />
</LinearLayout>
</LinearLayout>
나는 안드로이드 스튜디오에서 레이아웃을 연습 원하는 코드를 실행하는 동안 오류가 받고 있어요입니다.
왜 파란색 상자는 모바일 화면 밖에서 이동 않습니다 이 모바일 화면 밖에서가는 텍스트는?
먼저 디자인을 Android에서 제작하는 방법을 배워야합니다. 어디에서나보기의 너비와 높이를 하드 코딩합니다. 필요하지 않은 경우 너비와 높이를 하드 코딩해서는 안됩니다. –