Android “tools” namespace in layout xml documentation

后端 未结 3 2096
囚心锁ツ
囚心锁ツ 2020-12-05 02:42

Per the question here,

What's "tools:context" in Android layout files?

The \'tools\' namespace reference (xmlns:tools=\"http://schemas.android.

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 03:12

    You will find tool attribute when you set object in graphical layout.

    Listview (in graphical mode) -> right Click -> Preview List Content -> Choose Layout...

    produces:

    tools:listitem="@layout/customer_list_item"
    

提交回复
热议问题