Materialdrawer: Poner pie de página en la parte inferior del cajón

Creado en 25 abr. 2015  ·  3Comentarios  ·  Fuente: mikepenz/MaterialDrawer

Hola @mikepenz , estoy usando tu biblioteca. ¡Es tan bueno!
Pero tengo un pequeño problema. Utilizo el pie de página para mostrar información. Pero puedo ponerlo en el fondo del cajón. ¿Puede decirme cómo hacer eso? :(
Adjunto mi imagen e imprimo mi configuración de cajón aquí. Por favor, ayúdame. :(
¡Muchas gracias por su ayuda!
screenshot_2015-04-26-01-56-58

Mi configuración:

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

Comentario más útil

@nambv, ¿quieres que permanezca siempre en el fondo?

luego intente configurarlo como stickyFooter

Todos 3 comentarios

Mi 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, ¿quieres que permanezca siempre en el fondo?

luego intente configurarlo como stickyFooter

Esta bien lo intentaré. Muchas gracias por tu ayuda @mikepenz : smile:

¿Fue útil esta página
0 / 5 - 0 calificaciones