Carpaccio

Additional

Language
Java
Version
N/A
Created
Jul 22, 2015
Updated
Jan 4, 2018
Owner
Florent CHAMPIGNY (florent37)
Contributors
Vladislav Bauer (vbauer)
gitter-badger
Florent CHAMPIGNY (florent37)
bryant1410
4
Activity
Badge
Generate
Download
Source code

Show card

Carpaccio

Developed to facilitate integration on Android ( Designers can thanks me :D )

Data Mapping & Smarter Views framework for android

With Carpaccio, your views became smarter, instead of calling functions on views, now your views can call functions ! You no longer need to extend a view to set a custom behavior

Carpaccio also come with a beautiful mapping engine !

Usage

<com.github.florent37.carpaccio.Carpaccio
        android:id="@+id/carpaccio"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:register="
            com.github.florent37.carpaccio.controllers.ImageViewController;
            com.github.florent37.carpaccio.controllers.TextViewController
        ">

        <ImageView
               android:layout_width="match_parent"
               android:layout_height="150dp"
               android:scaleType="centerCrop"
               android:tag="url(http://i.imgur.com/DSjXNox.jpg)" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textSize="20sp"
            android:tag="
                font(Roboto-Thin.ttf);
                setText($user.name);"/>

</com.github.florent37.carpaccio.Carpaccio>

Download

Add into your build.gradle

compile ('com.github.florent37:carpaccio:(lastest version)@aar'){
    transitive=true
}


In your activity / fragment :

Carpaccio carpaccio = (Carpaccio)findViewById("R.id.carpaccio");
carpaccio.mapObject("user",new User("florent", "www."));