Materialdrawer: Stellen Sie die Fußzeile unten in die Schublade

Erstellt am 25. Apr. 2015  ·  3Kommentare  ·  Quelle: mikepenz/MaterialDrawer

Hallo @mikepenz , ich benutze deine Bibliothek. Es ist so cool!
Aber ich habe ein kleines Problem. Ich benutze die Fußzeile, um einige Informationen anzuzeigen. Aber ich kann es unten in die Schublade stellen. Kannst du mir sagen, wie das geht? :((
Ich hänge mein Bild an und drucke hier meine Schubladenkonfiguration aus. Bitte hilf mir. :((
Vielen Dank für Ihre Hilfe!
screenshot_2015-04-26-01-56-58

Meine Konfiguration:

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

Hilfreichster Kommentar

@nambv willst du, dass es immer unten bleibt?

Versuchen Sie dann, es als stickyFooter festzulegen

Alle 3 Kommentare

Mein 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 willst du, dass es immer unten bleibt?

Versuchen Sie dann, es als stickyFooter festzulegen

OK, ich werde es versuchen. Vielen Dank für Ihre Hilfe @mikepenz : smile:

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen

Verwandte Themen

Meeks91 picture Meeks91  ·  3Kommentare

sonh picture sonh  ·  3Kommentare

fuentepa picture fuentepa  ·  3Kommentare

pranjal-joshi picture pranjal-joshi  ·  3Kommentare

DasserBasyouni picture DasserBasyouni  ·  4Kommentare