You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 7, 2020. It is now read-only.
I use the conductor framework in my project to replace fragment. I change the font in my project, but the font does not change only in the HtmlTextView.
class MainActivity : AppCompatActivity() {
private lateinit var router: Router
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
router = Conductor.attachRouter(this, container, savedInstanceState)
if (!router.hasRootController())
router.setRoot(RouterTransaction.with(HomeController()))
}
override fun onBackPressed() {
if (!router.handleBack())
super.onBackPressed()
}
}
class HomeController : Controller() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup): View {
val view = inflater.inflate(R.layout.controller_home, container, false)
view.htmlTextView.setHtml("Hello <b>World</b> Hello")
return view
}
}
I use the conductor framework in my project to replace fragment. I change the font in my project, but the font does not change only in the HtmlTextView.
Screenshot