์๋
ํ์ธ์ @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๋ก ์ค์ ํ์ญ์์ค.
์ ์๋ํด ๋ณผ๊ฒ. @mikepenz ๋์์ ์ฃผ์ ์ ๋๋จํ ๊ฐ์ฌํฉ๋๋ค : ๋ฏธ์ :
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@nambv ๋น์ ์ ํญ์ ๋ฐ๋ฅ์ ๋จธ๋ฌผ๊ธฐ๋ฅผ ์ํ์ญ๋๊น?
๊ทธ๋ฐ ๋ค์ stickyFooter๋ก ์ค์ ํ์ญ์์ค.