为什么当我尝试在折叠工具栏布局中放置文本输入布局时,似乎没有任何内容出现。使用支持库的collapsingToolbarLayout中的文本输入布局
这里是我的代码
<android.support.design.widget.AppBarLayout android:layout_height="wrap_content"
android:layout_width="match_parent">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView android:layout_width="match_parent" android:layout_height="200dp"
android:src="@null"/>
<android.support.v7.widget.Toolbar android:layout_height="?attr/actionBarSize"
android:layout_width="match_parent"
android:layout_gravity="top"
android:id="@+id/toolbar"/>
<android.support.design.widget.TextInputLayout android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_width="match_parent">
<TextView android:layout_width="match_parent" android:layout_height="40dp"
/>
</android.support.design.widget.TextInputLayout>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
我使用支持库V23
EDITED
我也尝试过移动textInputLayout下面的折叠式工具的布局,但没有积极成果。
试图把它'CollapsingToolbarLayout'标签闭幕后。 –
我试过但没有结果 –