Need help with Carpaccio?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

florent37
426 Stars 71 Forks Apache License 2.0 183 Commits 5 Opened issues

Description

Data Mapping & Smarter Views framework for android

Services available

!
?

Need anything else?

Contributors list

No Data

Carpaccio

Android Arsenal Join the chat at https://gitter.im/florent37/Carpaccio

Android app on Google Play

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

logo

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

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

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

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

url

Download

Buy Me a Coffee at ko-fi.com

Add into your build.gradle

Download

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

DataBinding

In your activity / fragment :

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

set_text


RecyclerView Mapping

You dreamed it, Carpaccio did it ! You can now bind a List with a RecyclerView !

WORKS WITH ANDROID STUDIO PREVIEW !!!, don't hesitate to refresh your preview url

recycler recycler_preview

R.layout.activitymainrecyclerview_mapping ```xml

    

```

R.layout.celluser ```xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layoutwidth="matchparent" android:layoutheight="100dp" android:gravity="center_vertical" android:orientation="horizontal">

    

<textview android:layout_width="match_parent" android:layout_height="wrap_content" android:tag="
        setText($user.name);
        setFont(Roboto-Black.ttf);"></textview>

```

Finally, in your activiy/fragment you just have to indicate the List to map !

setContentView(R.layout.activity_main_recyclerview_mapping);
Carpaccio carpaccio = (Carpaccio)findViewById("R.id.carpaccio");
carpaccio.mapList("user", this.users);
carpaccio.mapObject("header", this.headerObject);

ViewControllers

Carpaccio provide some awesome ViewControllers, you can use them directly into your project. Read the Wiki to have a list of all provided viewControllers


TextViewController can set a custom font (from assets/fonts/) to a TextView and provide text binding

WORKS WITH ANDROID STUDIO PREVIEW !!!

font

    <textview android:tag="
             font(Pacifico.ttf);
             android:text="></textview>

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


ImageViewController

    <imageview android:tag="
             url(http://i.imgur.com/DvpvklR.png)
         "></imageview>

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

url

WORKS WITH ANDROID STUDIO PREVIEW !!!, don't hesitate to refresh your preview url

Preview an url image


url

And some awesome customisations

circle blur greyscale

Video
Video


Community

Looking for contributors, feel free to fork !

Tell me if you're using my library in your application, I'll share it in this README

Dependencies

Credits

Author: Florent Champigny www.florentchampigny.com/

Android app on Google Play

Follow me on Google+ Follow me on Twitter Follow me on LinkedIn

License

Copyright 2015 florent37, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.