Android - 现有视图的自定义属性

mrp*_*pyo 6 android attributes custom-attributes

某些库提供可用于现有视图的自定义属性.例如在android-binding库中:

<LinearLayout xmlns:android="http://...."
  xmlns:binding="http://www.gueei.com/android-binding/" 
..>

    <TextView binding:text="FirstName" ...
Run Code Online (Sandbox Code Playgroud)

有人可以解释它是如何工作的?你如何创建所述属性?如何检查它们是否存在并对视图应用所需的更改?