15

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>

4

3 に答える 3