【发布时间】:2015-02-12 08:53:00
【问题描述】:
所以我在布局文件中的 RecyclerView 遇到了一些问题
这里是:
<android.support.v7.widget.RecyclerView android:id="@+id/chat_listview" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingRight="@dimen/abc_action_bar_default_padding_material" android:paddingLeft="@dimen/abc_action_bar_default_padding_material" /> <LinearLayout android:layout_below="@id/chat_listview" android:layout_width="match_parent" android:layout_height="@dimen/bottom_bar_height" android:orientation="horizontal" > <EditText android:id="@+id/chat_input_edittext" android:layout_weight="7" android:layout_width="0dp" android:layout_height="match_parent" android:inputType="textAutoCorrect" /> <Button android:id="@+id/chat_send_button" android:layout_weight="1" android:layout_width="0dp" android:layout_height="match_parent" android:background="@drawable/ic_action_send_now" /> </LinearLayout>
RecyclerView 是可见且可滚动的,但 LinearLayout 和里面的 Views 不可见......我尝试了很多东西,但到目前为止没有任何效果。
请你们指点我正确的方向吗?
非常感谢!
【问题讨论】:
-
imgur.com/wUFzgPv 这是我看到的截图
标签: java android xml android-layout android-recyclerview