내 문제는 화면 하단에 흰색 선이 있습니다. 나는 그것이 왜 있는지 전혀 모른다. 그것은 다음과 같습니다배경 이미지가 부모를 제대로 채우지 못함
이 레이아웃은 XML에 정의되어
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/black"
android:orientation="vertical" >
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linearLayout1"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerInParent="true"
android:layout_gravity="bottom"
android:layout_marginBottom="30dp"
android:orientation="vertical" >
<!-- MAIN TITLE -->
<!-- LOGIN TITLE -->
<TextView
android:id="@+id/login_label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/login"
android:textColor="@android:color/white"
android:textSize="18sp" />
<!-- LOGIN TEXT -->
<EditText
android:id="@+id/login_text"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:inputType="textNoSuggestions"
android:background="@android:color/white"
android:textSize="18dp" />
<!-- PASSWORD TITLE -->
<TextView
android:id="@+id/password_label"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_marginTop="5sp"
android:text="@string/password"
android:textColor="@android:color/white"
android:textSize="18sp" />
<!-- PASSWORD TEXT -->
<EditText
android:id="@+id/password_text"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:inputType="textPassword"
android:background="@android:color/white"
android:textSize="18dp" />
<!-- LOG IN BUTTON -->
<Button
android:id="@+id/login_button"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="#3DB0E1"
android:padding="12dp"
android:text="@string/login_button"
android:textColor="@android:color/white" />
</LinearLayout>
</RelativeLayout>
나는 또한 단지 내 응용 프로그램의 출시 후 발생하는 것을 발견했습니다. 내가 여기 다른 활동 bzy startActivity(intent)
에서 온다면, 그 행은 사라진다. 도움이 될 것입니다.
앱에 Holo-Light 테마가 설정되어 있습니까? Holo 테마로 시도해보십시오. 또한,'android : orientation = "vertical"'은 RelativeLayout에 유효하지 않다고 생각합니다. – Ridcully
시간 내 주셔서 감사합니다. 나는 당신이 제안하고 안드로이드를 제거한 것처럼 평범한 홀로 시도 : orientation = "수직"이전 시도에서 남았습니다. 그러나 여전히 그 줄은 그대로 남아 있습니다. – slezadav
레이아웃에 다른 것이 있습니까? 나는 일식 레이아웃 편집기에서 게시 된 레이아웃을 시도했는데 적어도 볼 수있는 흰색 라인은 없다. 프로그래밍 방식으로 내용을 추가하거나 수정합니까? – Ridcully