Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathandelaSen authored Oct 12, 2020
1 parent 51a172b commit ca50aba
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@ These are a few possible combinations
simpleToolbar.setRight3ClickListener(View.OnClickListener { TODO("Not yet implemented") })
```

##### Programmatically
```Kotlin
simpleToolbarProgrammatically.setIcons(null, null, null, null)
simpleToolbarProgrammatically.setTitle("From the code", false)
//simpleToolbarProgrammatically.getTitle() //Don't use it to set the text
simpleToolbarProgrammatically.setLeftIcon(ContextCompat.getDrawable(this, R.drawable.ic_chat_gradient))
simpleToolbarProgrammatically.setRight1Icon(ContextCompat.getDrawable(this, R.drawable.ic_options), R.color.app_colorPrimary)
```

### Settings
Combine these components to get your settings UI

Expand Down Expand Up @@ -240,6 +249,17 @@ Combine these components to get your settings UI

```

#### Programmatically
```Kotlin
settingsSubtextProgrammatically.setTitle(title = "From code")
settingsSubtextProgrammatically.setSubtext(subtext = "Subtext", subtextColor = resources.getColor(R.color.app_colorPrimary, null))
settingsActionProgrammatically.setTitle(title = "From code", titleColor = resources.getColor(R.color.clean_ui_title_default, null))
settingsCheckboxProgrammatically.setTitle(title = "From code", titleColor = resources.getColor(R.color.clean_ui_title_default, null), titleTextSize = 14f, titleTextStyle = TextStyle.BOLD)

```


### Other

#### TitleSection

0 comments on commit ca50aba

Please sign in to comment.