android:clipChildren=";假;不';行不通

android:clipChildren=";假;不';行不通,android,xml,layout,clip,Android,Xml,Layout,Clip,我试图使ScrollView的内容溢出包装器布局边界。即使将android:clipChildren=“false”设置为他的所有祖先,也不起作用 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_

我试图使ScrollView的内容溢出包装器布局边界。即使将android:clipChildren=“false”设置为他的所有祖先,也不起作用

<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="match_parent"
android:id="@+id/hideInputfocus"
android:clipChildren="false"         <!--Here-->
android:clipToPadding="false"
android:focusableInTouchMode="true"
tools:context=".MainActivity$PlaceholderFragment">

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/map"
    android:clipChildren="false"         <!--Here-->
    android:clipToPadding="false"
    tools:context="ch.bla.bla.activities.MapsActivity"
    android:name="com.google.android.gms.maps.SupportMapFragment" />



<ScrollView
    android:layout_width="100dp"
    android:layout_height="400dp"
    android:layout_marginTop="@dimen/dimension_name"
    android:scrollbars="none"
    android:clipChildren="false"         <!--And here-->
    android:clipToPadding="false"
    android:background="@color/white"
    android:id="@+id/cp_scrollView">
    <!--android:background="@color/white"-->

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:clipChildren="false"     <!--And here-->
        android:clipToPadding="false"    
        android:id="@+id/scrollbar_layout"
        >

        <!--<TextView-->
        <!--My overflowing textView

android:clipToPadding=“false”
android:focusableInTouchMode=“true”
工具:context=“.MainActivity$PlaceholderFragment”
android:clipToPadding=“false”
工具:context=“ch.bla.bla.activities.MapsActivity”
android:name=“com.google.android.gms.maps.SupportMapFragment”/
android:clipToPadding=“false”
android:background=“@color/white”
android:id=“@+id/cp\u滚动视图”
android:clipToPadding=“false”
android:id=“@+id/scrollbar\u布局”

您的relativelayout本身由其父级(可能是活动中的一个框架?)剪辑。谢谢,这是我的想法,但我的第一个布局是由setContentView(R.layout.myXml)调用的布局;。至少该Xml应该在查看器预览中显示为剪裁,对吗?这不是问题case@aiqency你解决这个问题了吗?怎么做?@Satpal-Yadav不幸的是,你的relativelayout本身被它的父对象(可能是活动中的一个框架?)剪掉了。谢谢,这是我想的,但我的第一个布局是由setContentView(R.layout.myXml)调用的;。至少该Xml应该在查看器预览中显示为剪裁,对吗?这不是问题case@aiqency你解决这个问题了吗?怎么做?@Satpal Yadav不幸的是没有