대화 상자 레이아웃을 만드는 데 문제가 있습니다. 스크롤 단추가 항상 아래쪽에 표시되지만 스크롤 막대 크기가 너무 커지면 대화 상자를 표시하려고합니다. 화면 아래쪽에있는 버튼을 누릅니다.아래쪽에 스크롤 막대와 영구 단추가있는 대화 상자가 있습니다.
부모의 하단에있는 버튼을 true로 설정하면 원하는 효과를 얻을 수 있지만 scrollview에 내용이 거의없는 경우 많은 빈 공간이있는 큰 대화 상자가 표시됩니다. 여기
내가 현재<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/staCalCompany"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="30dp"
android:text="Company Name"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#ff2525"
android:textSize="25sp" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/staCalStart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:text="Start:"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#ff2525" />
<TextView
android:id="@+id/staCalStartDisp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="Start Time"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp" >
<TextView
android:id="@+id/staCalEnd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:text="End:"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#ff2525" />
<TextView
android:id="@+id/staCalEndDisp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="End Time"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
<TextView
android:id="@+id/staCalSubDisp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="15dp"
android:text="Name"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#ff2525" />
<TextView
android:id="@+id/staCalDesc"
android:layout_width="285dp"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="15dp"
android:text="Description"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
</ScrollView>
<RelativeLayout
android:id="@+id/linearLayout3"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_gravity="bottom|center_horizontal"
android:gravity="center_horizontal"
android:layout_below="@+id/scrollView1">
<ImageButton
android:id="@+id/calIconSync"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_marginLeft="20dp"
android:background="@drawable/calendar_plus" />
<ImageButton
android:id="@+id/btnStaCalClose"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:background="@drawable/closepopup" />
</RelativeLayout>
이 모두 가로 및 세로 모드에서 올바르게 표시하려고 노력하지만 하나가 작동 할 때, 다른 하나는 수행하지 않은 것입니다.
이 작업을 수행하는 방법에 대한 제안 사항은 무엇입니까?
그래도 scrollview가 충분히 커지면 실제 버튼이 너무 잘 보이지 않을 수도 있습니다. – tyczj
나를 위해 작동하지 않았다. – Genry