元素内的 XML 注释

use*_*214 5 xml

在下面的 XML 中,在元素的属性上放置注释的替代方法是什么?

  <!-- I can comment here -->

  <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/textView_ben"

        <!-- Cannot place a comment here  -->

        android:layout_centerHorizontal="true"/>
Run Code Online (Sandbox Code Playgroud)

DAB*_*DAB 5

“不,这是不可能的。XML 开放标记中不允许有注释。”

请参阅如何评论 xml 标签内的属性?