1
スティッキーヘッダービューにはスーパーライブラリを使用していますが、header_item.xmlのLinearLayoutやRelativeLayoutなどの他のレイアウトを使用すると、スーパースリムライブラリは、複数のテキストビューを持つヘッダーをサポートしていません
しかし、私はheader_item.xmlで1つのtextviewを使用すると正しく動作しますが、私はそれをしません。私は私を助けview.Please複数でスティッキーヘッダーに変更する必要がどのような
header_item.xml
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/post_user_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/lightgrey"
android:gravity="start"
android:layoutDirection="locale"
android:padding="10dip"
android:textColor="@color/black"
android:textDirection="locale"
android:textSize="12sp"
app:slm_headerDisplay="sticky|inline"
app:slm_isHeader="true"
app:slm_section_headerMarginStart="56dip"
tools:text="Header Item" />
</LinearLayout>
。私はsuperslimライブラリのコーディングを変更せず、ヘッダにmultipleviewを追加しようとします。それは私はそれに複数のビューを追加するときに粘着性を維持します。
あなたが試したコードのいくつかを、libを使って投稿することができます。 –
https://github.com/TonicArtos/SuperSLiM、header_item.xmlのビューを追加するだけです。何もない –
ヘッダ項目にレイアウトを追加する際に問題がありますか? –