mikepenz / MaterialDrawer

The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
https://mikepenz.dev
Apache License 2.0
11.67k stars 2.05k forks source link

Update a profile header in AccountHeader in Drawer #2795

Closed artem-inkaz closed 1 year ago

artem-inkaz commented 1 year ago

Header is not updated after changes, but only when onCreate inActivity I use private lateinit var mCurrentProfile:ProfileDrawerItem private lateinit var mHeader: Account Header current profile .with Icon(R.drawable.sample) .withName("Sample") .withEmail("Sample") .withIdentifier(200)

    mHeader.update Profile(current profile)
    drawer.adapter.notify Adapter DataSetChanged()

    materialdrawer              : '7.0.0',
    materialdrawerNav  : "com.mikepenz:materialdrawer-nav:${libVersion.materialdrawer}",
    materialdrawer     : "com.mikepenz:materialdrawer:${libVersion.materialdrawer}"
artem-inkaz commented 1 year ago

I watched the previous article https://github.com/mikepenz/MaterialDrawer/issues/2308

mikepenz commented 1 year ago

The linked ticket and the above mentioned version number are both pretty old and only provided as-is at this point.

You can try to upgrade to v8.4.5 which was the last release prior to the material3 transition. You can also look into the sample app at this version and see if that one contains examples matching your need.

However versions other than the most recent version are provided as-is, and are not planned to get any further updates