다음 코드에 아래 코드를 게시합니다. 레이아웃에 표시된 공간의 위쪽에 다음과 같은 공백이 있습니다. 난 그냥 가기 공간을 제거하고 맨 위에 제목을 표시하려고합니다. 그러나 나는 그것을 설정하는 방법을 혼란스러워합니다. 제게 해결책을 제안 해주세요. 미리 감사드립니다.안드로이드 레이아웃이 제대로 표시되지 않습니다.
XML 파일
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="top"
android:orientation="vertical"
android:weightSum="100">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/folder_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="30dip"
android:textSize="15dp"
android:layout_weight="1"
android:textColor="#115c28"/>
<TextView
android:id="@+id/folder_count"
android:layout_width="0dp"
android:layout_height="60dp"
android:textSize="20dp"
android:textStyle="bold"
android:textColor="#115c28"
android:gravity="center"
android:paddingRight="30dip"
android:paddingLeft="35dip"
android:layout_weight="1" />
</LinearLayout>
<ListView
android:id="@+id/folder_display_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
당신은 당신이 무엇을 달성하고자하는의 screencap이 있습니까? –
안녕하세요, 저는 스크린 샷을 게시 할 수 없습니다. 문제는 배치가 이름을 보여주고 하나씩 적절하게 계산하지만 작업 표시 줄에서 상단의 공간이 있습니다. 해당 공간을 제거하고 싶습니다. –