Materialdrawer: Alternatives withName() ... ?

Created on 8 Feb 2020  路  1Comment  路  Source: mikepenz/MaterialDrawer

hi what Alternatives withName() or withEmail() ...???

I have cloned the example version but do not replace it in this version!

@Deprecated("Please consider to replace with the actual property setter")

question

Most helpful comment

@flashiran1 you can see them here:

https://github.com/mikepenz/MaterialDrawer/blob/develop/library/src/main/java/com/mikepenz/materialdrawer/model/ProfileDrawerItem.kt#L24-L25

So something like

ProfileDrawerItem().apply {
     name = StringHolder(res)
     description = StringHolder(res)
}

would be the case

>All comments

@flashiran1 you can see them here:

https://github.com/mikepenz/MaterialDrawer/blob/develop/library/src/main/java/com/mikepenz/materialdrawer/model/ProfileDrawerItem.kt#L24-L25

So something like

ProfileDrawerItem().apply {
     name = StringHolder(res)
     description = StringHolder(res)
}

would be the case

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jd-alexander picture jd-alexander  路  4Comments

kakai248 picture kakai248  路  4Comments

singhalavi picture singhalavi  路  4Comments

wayne1203 picture wayne1203  路  3Comments

HanderWei picture HanderWei  路  3Comments