![]() TestInstrumentationRunner ".AndroidJUnitRunner" in the individual module adle filesīadle(Module: app) apply plugin: ''Īpply plugin: 'kotlin-android-extensions'ĪpplicationId "_kotlin" NOTE: Do not place your application dependencies here they belong Next dialog, Select Empty Activity and click Next.īadle(Project: TextView Bold – Kotlin) // Top-level build file where you can add configuration options common to all sub-projects/modules.Ĭlasspath ':gradle:3.2.1'Ĭlasspath ":kotlin-gradle-plugin:$kotlin_version" Select minimum SDK: API 15 – Android 4.0.3 (Ice Cream Sandwich) and click Next. Do you want to change your package name? Click here. ![]() Let’s create an Android app with these examples. Set style to TextView using style attribute. Step 1Ĭreate a separate style resource named “boldStyle”, add “android:textStyle” as item and provide value “bold”. The advantage of this technique – you can use this style for many TextViews. In this example, we create a separate style resource and set it to our TextView. ![]() Way 4 – Make Android TextView Bold using separate style HtmlCompat.FROM_HTML_MODE_LEGACY – It just adds two newline character between block level elements. ![]()
0 Comments
Leave a Reply. |