alignParentBottom이 사용되지 않음

user2442638

LinearLayouts대신 사용하는 레이아웃이 RelativeLayouts있습니다. 다음과 같이 내 레이아웃에 테두리없는 버튼을 추가하고 싶습니다. 표준 테두리없는 버튼을 만드는 방법 (언급 된 디자인 지침에서와 같이)?

그래서, 이것을 사용하기, 내 변경했습니다 LinearLayouts에를 RelativeLayouts. 이것은 대부분 잘 작동했습니다. 그러나 RelativeLayouts 중 하나에 alignParentBottom을 사용하려고하면 작동하지 않고 다른 버튼 중 하나와 겹칩니다.

여기에 이미지 설명 입력

이것은 내 XML입니다.

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/scrollView1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        tools:context=".xxx" >

        <com.xxx.xxx.customedittext
            android:id="@+id/qn_et_title"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:drawableRight="@drawable/delete"
            android:hint="@string/qn_et_title_hint"
            android:inputType="textCapSentences|textMultiLine"
            android:paddingTop="5dp" />

        <com.xxx.xxx.customedittext
            android:id="@+id/qn_et_body"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/qn_et_title"
            android:drawableRight="@drawable/delete"
            android:hint="@string/qn_et_body_hint"
            android:inputType="textCapSentences|textMultiLine" />

        <CheckBox
            android:id="@+id/qn_cb_ongoing"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/qn_et_body"
            android:text="@string/qn_cb_ongoing" />

        <Button
            android:id="@+id/qn_b_create"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/qn_cb_ongoing"
            android:text="@string/qn_b_create" />

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:layout_alignParentBottom="true" >

            <View
                android:layout_width="match_parent"
                android:layout_height="1dip"
                android:layout_alignParentTop="true"
                android:layout_marginLeft="4dip"
                android:layout_marginRight="4dip"
                android:background="?android:attr/dividerVertical" />

            <View
                android:id="@+id/ViewColorPickerHelper"
                android:layout_width="1dip"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_alignParentTop="true"
                android:layout_centerHorizontal="true"
                android:layout_marginBottom="4dip"
                android:layout_marginTop="4dip"
                android:background="?android:attr/dividerVertical" />

            <Button
                android:id="@+id/BtnColorPickerCancel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_alignParentLeft="true"
                android:layout_alignParentTop="true"
                android:layout_toLeftOf="@id/ViewColorPickerHelper"
                android:background="?android:attr/selectableItemBackground"
                android:text="@android:string/cancel" />

            <Button
                android:id="@+id/BtnColorPickerOk"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_alignParentBottom="true"
                android:layout_alignParentRight="true"
                android:layout_alignParentTop="true"
                android:layout_toRightOf="@id/ViewColorPickerHelper"
                android:background="?android:attr/selectableItemBackground"
                android:text="@android:string/ok" />
        </RelativeLayout>
    </RelativeLayout>

</ScrollView>

편집 : 이것은 업데이트 된 코드입니다. ScrollView48dp 겹치는 RelativeView:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingBottom="3dp"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".QuickNoteFragment" >

    <ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:fillViewport="false" >

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content" >

            <EditText
                android:id="@+id/qn_et_title"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:hint="@string/qn_et_title_hint"
                android:inputType="textCapSentences|textMultiLine"
                android:paddingTop="5dp" />

            <EditText
                android:id="@+id/qn_et_body"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/qn_et_title"
                android:hint="@string/qn_et_body_hint"
                android:inputType="textCapSentences|textMultiLine"
                android:paddingTop="10dp" />

            <CheckBox
                android:id="@+id/qn_cb_ongoing"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/qn_et_body"
                android:paddingBottom="10dp"
                android:paddingTop="10dp"
                android:text="@string/qn_cb_ongoing" />
        </RelativeLayout>
    </ScrollView>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:layout_alignParentBottom="true" >

        <View
            android:layout_width="match_parent"
            android:layout_height="1dip"
            android:layout_alignParentTop="true"
            android:layout_marginLeft="4dip"
            android:layout_marginRight="4dip"
            android:background="?android:attr/dividerVertical" />

        <View
            android:id="@+id/ViewColorPickerHelper"
            android:layout_width="1dip"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentTop="true"
            android:layout_centerHorizontal="true"
            android:layout_marginBottom="4dip"
            android:layout_marginTop="4dip"
            android:background="?android:attr/dividerVertical" />

        <Button
            android:id="@+id/qn_b_cancel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:layout_toLeftOf="@id/ViewColorPickerHelper"
            android:background="?android:attr/selectableItemBackground"
            android:text="@android:string/cancel" />

        <Button
            android:id="@+id/qn_b_create"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:layout_toRightOf="@id/ViewColorPickerHelper"
            android:background="?android:attr/selectableItemBackground"
            android:text="@string/qn_b_create" />
    </RelativeLayout>

</RelativeLayout>
사용자

에서 다음 속성을 사용합니다 ScrollView.

<RelativeLayout android:layout_width="match_parent"
    android:layout_height="match_parent">

    <RelativeLayout 
        android:id="@+id/bottom" 
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:layout_alignParentBottom="true">
        <!-- rest of the code -->
    </RelativeLayout>

    <ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/bottom" 
        android:layout_alignParentTop="true" >
        <!-- rest of the code -->
    </ScrollView>
<RelativeLayout>

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

alignParentBottom이 사용되지 않음

분류에서Dev

android : layout_alignParentBottom이 런타임에서 작동하지 않음

분류에서Dev

MySQL 색인이 사용되지 않음

분류에서Dev

SVG "사용"이 표시되지 않음

분류에서Dev

'WiFi 사용'이 표시되지 않음

분류에서Dev

MaterialUi 사용자 지정 중단 점이 적용되지 않음

분류에서Dev

XCode : 사용자 지정 글꼴이 적용되지 않음

분류에서Dev

Angular 사용자 지정 지시문이 호출되지 않음

분류에서Dev

사용자 지정 수식이 업데이트되지 않음

분류에서Dev

더 이상 사용되지 않음 : preg_replace () : / e 수정자가 더 이상 사용되지 않음 오류

분류에서Dev

node express bodyparser가 사용되지 않음, 새 구문이 작동하지 않음

분류에서Dev

사용자 지정 UserControl이 ListBox에 표시되지 않음

분류에서Dev

사용자 지정 UINavigationController의 UIBarButtonItem이 표시되지 않음

분류에서Dev

별표 사용자 이벤트가 감지되지 않음

분류에서Dev

터미널 색상 사용이 유지되지 않음

분류에서Dev

사용자 정의 SpringVaadinServlet이 감지되지 않음

분류에서Dev

사용자 지정 커널 모듈이로드되지 않음

분류에서Dev

ESLint가 정의되지 않음 / 값이 할당되었지만 사용되지 않음

분류에서Dev

solr 복제 디렉토리 이름이 사용되지 않음

분류에서Dev

확장 사용자 모델이 업데이트되지 않음

분류에서Dev

Django 사용자 이름이 전혀 표시되지 않음

분류에서Dev

Windows 사용 후 GRUB 이중 부팅이로드되지 않음

분류에서Dev

사용자 정의 UITableViewCell이 업데이트되지 않음

분류에서Dev

Gradle : 업데이트 된 종속성이 사용되지 않음

분류에서Dev

사용자 정의 오류 페이지가 사용되지 않음

분류에서Dev

사용자 지정 변환을 사용할 때 SortableMixin이 정렬되지 않음

분류에서Dev

CloudFlare를 사용할 때 사용자 지정 SSL이 표시되지 않음

분류에서Dev

헤드셋 마이크가 사용되지 않음

분류에서Dev

사용자 계정에 내 계정이 표시되지 않음

Related 관련 기사

  1. 1

    alignParentBottom이 사용되지 않음

  2. 2

    android : layout_alignParentBottom이 런타임에서 작동하지 않음

  3. 3

    MySQL 색인이 사용되지 않음

  4. 4

    SVG "사용"이 표시되지 않음

  5. 5

    'WiFi 사용'이 표시되지 않음

  6. 6

    MaterialUi 사용자 지정 중단 점이 적용되지 않음

  7. 7

    XCode : 사용자 지정 글꼴이 적용되지 않음

  8. 8

    Angular 사용자 지정 지시문이 호출되지 않음

  9. 9

    사용자 지정 수식이 업데이트되지 않음

  10. 10

    더 이상 사용되지 않음 : preg_replace () : / e 수정자가 더 이상 사용되지 않음 오류

  11. 11

    node express bodyparser가 사용되지 않음, 새 구문이 작동하지 않음

  12. 12

    사용자 지정 UserControl이 ListBox에 표시되지 않음

  13. 13

    사용자 지정 UINavigationController의 UIBarButtonItem이 표시되지 않음

  14. 14

    별표 사용자 이벤트가 감지되지 않음

  15. 15

    터미널 색상 사용이 유지되지 않음

  16. 16

    사용자 정의 SpringVaadinServlet이 감지되지 않음

  17. 17

    사용자 지정 커널 모듈이로드되지 않음

  18. 18

    ESLint가 정의되지 않음 / 값이 할당되었지만 사용되지 않음

  19. 19

    solr 복제 디렉토리 이름이 사용되지 않음

  20. 20

    확장 사용자 모델이 업데이트되지 않음

  21. 21

    Django 사용자 이름이 전혀 표시되지 않음

  22. 22

    Windows 사용 후 GRUB 이중 부팅이로드되지 않음

  23. 23

    사용자 정의 UITableViewCell이 업데이트되지 않음

  24. 24

    Gradle : 업데이트 된 종속성이 사용되지 않음

  25. 25

    사용자 정의 오류 페이지가 사용되지 않음

  26. 26

    사용자 지정 변환을 사용할 때 SortableMixin이 정렬되지 않음

  27. 27

    CloudFlare를 사용할 때 사용자 지정 SSL이 표시되지 않음

  28. 28

    헤드셋 마이크가 사용되지 않음

  29. 29

    사용자 계정에 내 계정이 표시되지 않음

뜨겁다태그

보관