Skip to content

Documentation: Invalid Layout Example #12

@commonsguy

Description

@commonsguy

In the project README, you have:

<com.github.ahmadaghazadeh.editor.widget.CodeEditor
            bind:code="<html></html>"
            bind:lang="html"
            bind:isReadOnly="true"
             bind:isShowExtendedKeyboard="false"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>

However, this is invalid XML. That HTML needs to be escaped:

<com.github.ahmadaghazadeh.editor.widget.CodeEditor
            bind:code="&lt;html&gt;&lt;/html&gt;"
            bind:lang="html"
            bind:isReadOnly="true"
             bind:isShowExtendedKeyboard="false"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions