Skip to content

Commit

Permalink
Updating demo and README
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingtoncabral committed Feb 21, 2022
1 parent 22342d4 commit 70882b4
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 22 deletions.
17 changes: 17 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified misc/example_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified misc/example_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added misc/example_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added misc/example_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added misc/example_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added misc/example_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 0 additions & 22 deletions sample/src/main/java/com/wcabral/spantastic/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,6 @@ class MainActivity : AppCompatActivity() {
}

private fun initSpantastic() {
// binding.edtSpan.text = spantastic(binding.edtSpan.text.asSpannableStringBuilder()) {
// breakLine()
// h1("Teste")
// title("Mais coisas")
//
// "Outro texto" {
// background(Color.BLACK)
// foreground(Color.WHITE)
// }
// }

val span = spantastic {

h1("Text Style")
Expand Down Expand Up @@ -142,17 +131,6 @@ class MainActivity : AppCompatActivity() {
}
}

// "Text with a clickable area" {
// clickable(
// init = {
// start = 0
// end = 4
// }
// ) {
// Toast.makeText(this@MainActivity, "Text was clicked", Toast.LENGTH_SHORT).show()
// }
// }

divider()

title("Absolute size:")
Expand Down
1 change: 1 addition & 0 deletions sample/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<resources>
<string name="app_name">android-spantastic</string>
<string name="my_string">This is an example using string resource id</string>
</resources>

0 comments on commit 70882b4

Please sign in to comment.