Skip to content

Instantly share code, notes, and snippets.

Working / Developer mode OFF

Enrico D'Ortenzio enricocid

Working / Developer mode OFF
Block or report user

Report or block enricocid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
enricocid / MainActivity.kt
Created Jul 23, 2019
Center TextView in custom Toolbar when Navigation Icon is present
View MainActivity.kt
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
//get the toolbar
val toolbar = (get your toolbar)
//enable navigation icon
You can’t perform that action at this time.