Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 998 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 998 Bytes

About Android

About Android is a simple app built using Android. This project explores the basics of Android, such as creating text views, image views, and basic layout such as LinearLayout and ScrollView. The following is the MainActivity class loads the content from the string resources and format the HTML content within the TextView.

class MainActivity : AppCompatActivity() {

   private lateinit var binding: ActivityMainBinding
   override fun onCreate(savedInstanceState: Bundle?) {
       super.onCreate(savedInstanceState)
       binding = DataBindingUtil.setContentView(this, R.layout.activity_main)
       binding.bioText.text = HtmlCompat.fromHtml(applicationContext.getString(R.string.bio), HtmlCompat.FROM_HTML_MODE_LEGACY)
   }
}

The app looks like the following on a real device.

screenshot