こんにちは@mikepenz 、私はあなたのライブラリを使用しています。 すっげー!
しかし、私には小さな問題があります。 フッターを使用していくつかの情報を表示します。 でも引き出しの一番下にセットできます。 その方法を教えていただけますか? :(
ここに画像を添付してドロワー設定を印刷します。 私を助けてください。 :(
手伝ってくれてありがとうございます!
私の構成:
result = new Drawer()
.withActivity(this)
.withToolbar(mToolbar)
.withActionBarDrawerToggle(true)
.withTranslucentStatusBar(true)
.withHeader(R.layout.slide_header)
.addDrawerItems(new PrimaryDrawerItem().withName(navMenuTitles[0]).withIcon(FontAwesome.Icon.faw_user))
.withSelectedItem(-1)
.withFireOnInitialOnClick(false)
.withOnDrawerItemClickListener(itemClickListener)
.withFooterDivider(false)
.withFooter(R.layout.slide_footer)
.withFooterClickable(false)
.build();
私のR.layout.slide_footer.xml
:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:padding="15dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:orientation="vertical">
<TextView
android:id="@+id/tv_version_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/tv_owner_company"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Pearcomms @ 2015"/>
<TextView
android:id="@+id/tv_developer_team"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="by Dwarves Foundation"/>
</LinearLayout>
</RelativeLayout>
@nambv常に一番下に
次に、stickyFooterとして設定してみてください
OK、やってみます。 助けてくれてありがとう@mikepenz :smile:
最も参考になるコメント
@nambv常に一番下に
次に、stickyFooterとして設定してみてください