【问题标题】:Android - What´s the meaning of context on layouts? [duplicate]Android - 布局上的上下文是什么意思? [复制]
【发布时间】:2015-09-16 05:58:14
【问题描述】:

布局中上下文的概念是什么?

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="THIS VALUE!!!!!!">

</Scrollview>

【问题讨论】:

    标签: android layout


    【解决方案1】:

    tools:context 提供上下文(即布局关联的活动),Android Studio 中的可视布局编辑器使用该上下文来呈现您的布局。你可以阅读更多关于它的信息here

    【讨论】:

      猜你喜欢
      • 2011-04-25
      • 1970-01-01
      • 1970-01-01
      • 2013-02-28
      • 2011-06-11
      • 1970-01-01
      • 1970-01-01
      • 2021-10-11
      • 2017-09-01
      相关资源
      最近更新 更多