Materialdrawer: Coloque o rodapé na parte inferior da gaveta

Criado em 25 abr. 2015  ·  3Comentários  ·  Fonte: mikepenz/MaterialDrawer

Olá @mikepenz , estou usando sua biblioteca. É tão legal!
Mas eu tenho um pequeno problema. Eu uso rodapé para mostrar algumas informações. Mas posso colocá-lo no fundo da gaveta. Você pode me dizer como fazer isso? :(
Anexei minha imagem e imprimo minha configuração de gaveta aqui. Por favor me ajude. :(
Muito obrigado pela ajuda!
screenshot_2015-04-26-01-56-58

Minha configuração:

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

Comentários muito úteis

@nambv você quer que ele fique sempre por baixo?

em seguida, tente defini-lo como stickyFooter

Todos 3 comentários

Meu 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 você quer que ele fique sempre por baixo?

em seguida, tente defini-lo como stickyFooter

OK vou tentar. Muito obrigado por sua ajuda @mikepenz : smile:

Esta página foi útil?
0 / 5 - 0 avaliações

Questões relacionadas

sonh picture sonh  ·  3Comentários

Ahmed-Emad picture Ahmed-Emad  ·  4Comentários

Meeks91 picture Meeks91  ·  3Comentários

wayne1203 picture wayne1203  ·  3Comentários

meness picture meness  ·  3Comentários