Android XML Is there a way to use the tool namespace with custom attributes?
问题 I've created a custom view with attributes. Is there a way to use those attributes with android tools in Android studio? for example : <MyOwnCoolView android:layout_width="96dp" android:layout_height="96dp" android:padding="3dp" tools:dividerAngle="2"/> Where the attr file is : <resources> <declare-styleable name="MyOwnCoolView"> <attr name="dividerAngle" format="float"/> </declare-styleable> 回答1: My opinion is that you can't. There's an official, though very old, page here that quotes: