Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Collaborator

@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
Collaborator 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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants