A gradle plugin to make Android layout xml extendable!
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle-plugin
gradle/wrapper
repo/com/linroid/plugin/android-layout-extender
sample
support
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

AndroidLayoutExtender

Developing...

A gradle plugin to make Android layout xml extendable!

root layout

<?xml version="1.0" encoding="utf-8"?>
<layout>
    <LinearLayout ...>
        <section name="sec1">
            <TextView .../>
        </section>
        <TextView .../>
        <section name="sec2"/>
    </LinearLayout>
</layout>

child layout

<?xml version="1.0" encoding="utf-8"?>
<layout extends="@layout/parent"/>
    <section name="sec1">
        <LinearLayout>
            <TextView .../>
            <Button .../>
        </LinearLayout>
    </section>
    <section name="sec2">
        <ReleativeLayout>
            <ScrollView .../>
        </ReleativeLayout>
    </section>
</layout>

generate...

<LinearLayout ...>
    <LinearLayout>
        <TextView .../>
        <Button .../>
    </LinearLayout>
    <TextView .../>
    <ReleativeLayout>
        <ScrollView .../>
    </ReleativeLayout>
</LinearLayout>