Materialdrawer: ์„œ๋ž ํ•˜๋‹จ์— ๋ฐ”๋‹ฅ ๊ธ€ ์„ค์ •

์— ๋งŒ๋“  2015๋…„ 04์›” 25์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: mikepenz/MaterialDrawer

์•ˆ๋…•ํ•˜์„ธ์š” @mikepenz , ์ €๋Š” ๊ท€ํ•˜์˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ๋ฉ‹์ง€๋‹ค!
ํ•˜์ง€๋งŒ ์ž‘์€ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐ”๋‹ฅ ๊ธ€์„ ์‚ฌ์šฉํ•˜์—ฌ ์ผ๋ถ€ ์ •๋ณด๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์„œ๋ž ํ•˜๋‹จ์— ๋†“์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ ๋ฐฉ๋ฒ•์„ ์•Œ๋ ค์ฃผ์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ? :(
๋‚ด ์ด๋ฏธ์ง€๋ฅผ ์ฒจ๋ถ€ํ•˜๊ณ  ์—ฌ๊ธฐ์— ๋‚ด ์„œ๋ž ๊ตฌ์„ฑ์„ ์ธ์‡„ํ•ฉ๋‹ˆ๋‹ค. ์ œ๋ฐœ ๋„์™€์ฃผ์„ธ์š”. :(
๋‹น์‹ ์˜ ๋„์›€์„ ์ฃผ์…”์„œ ๋Œ€๋‹จํžˆ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!
screenshot_2015-04-26-01-56-58

๋‚ด ๊ตฌ์„ฑ :

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();
question

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

@nambv ๋‹น์‹ ์€ ํ•ญ์ƒ ๋ฐ”๋‹ฅ์— ๋จธ๋ฌผ๊ธฐ๋ฅผ ์›ํ•˜์‹ญ๋‹ˆ๊นŒ?

๊ทธ๋Ÿฐ ๋‹ค์Œ stickyFooter๋กœ ์„ค์ •ํ•˜์‹ญ์‹œ์˜ค.

๋ชจ๋“  3 ๋Œ“๊ธ€

๋‚ด 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 ๋„์›€์„ ์ฃผ์…”์„œ ๋Œ€๋‹จํžˆ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค : ๋ฏธ์†Œ :

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰