Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

fix dumping jason add toolsAndroid #779

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

fix dumping jason add toolsAndroid #779

wants to merge 12 commits into from

Conversation

jafu888
Copy link
Contributor

@jafu888 jafu888 commented Jan 5, 2023

This add a toolsAndroid directory for small code tools that people can use to gain insight into ConstraintLayout related stuff.
(toolsDesktop to follow)
Also updates ConstraintSet JSON writer

@jafu888 jafu888 requested a review from oscar-ad January 5, 2023 07:20
@jafu888 jafu888 requested a review from camaelon January 6, 2023 06:45
@jafu888
Copy link
Contributor Author

jafu888 commented Jan 6, 2023

This is logging api
The rest of the code here support various other uses.
Another CL will have Desktop viewer for the CL

    <androidx.constraintlayout.helper.widget.LogJson
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:visibility="gone"
        app:logJsonTo="log"
        app:logJsonMode="delayed"
        app:logJsonDelay="10000"
        />

attrs.xml

    <declare-styleable name="LogJson">
        <attr name="logJsonTo" format="enum|string">
            <enum name="log" value="1" />
            <enum name="console" value="2" />
        </attr>
        <attr name="logJsonMode" format="enum">
            <enum name="periodic" value="1" />
            <enum name="delayed" value="2" />
            <enum name="layout" value="3" />
            <enum name="api" value="4" />
        </attr>
        <attr name="logJsonDelay" format="integer" />
    </declare-styleable>
    ```

@jafu888 jafu888 requested a review from jswong65 January 9, 2023 22:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants