What is tools:context?

Asked 2 years ago, Updated 2 years ago, 24 views

If you look at the layout xml on Android,

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    tools:context=".MainActivity" />

It's called tools:context. What's this?

android

2022-09-22 11:03

1 Answers

It is used to render when using the UI editor. If you are not using the UI editor, you can clear it.


2022-09-22 11:03

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.