Giter Club home page Giter Club logo

bidanet_android_core's Introduction

bidanet_android_core

功能说明

网络

databinding

封装好的自定义标签:

1、图片加载的:
封装了标签imageUrl,可以加载网络图片,填入地址直接加载图片
<ImageView android:layout_width="match_parent" android:layout_height="wrap_content" app:imageUrl="@{item.imageUrl}" app:goNext="@{activity://testSecond/}"/>
2、页面跳转:

封装了goNext标签:传入路由使用的字符串,点击控件跳转页面,如果需要携带简单的参数可以直接写在字符串中,如果带对象请另写方法
<ImageView android:layout_width="match_parent" android:layout_height="wrap_content" app:imageUrl="@{item.imageUrl}" app:goNext="@{activity://testSecond/}"/>
3、ListView 显示:
使用adapter_data标签传入数据List,使用adapter_view传入item页面,直接显示
<ListView app:adapter_data="@{listData}" app:adapter_view="@{@layout/item}" app:on_item_click="@{item}" android:layout_width="match_parent" android:layout_height="200dp"> </ListView>
4、ListView的 item点击事件:
使用on_item_click标签,传入当前页面绑定的Model
<ListView app:adapter_data="@{listData}" app:adapter_view="@{@layout/item}" app:on_item_click="@{item}" android:layout_width="match_parent" android:layout_height="200dp"> </ListView>
5、页面的foreach 方法显示view
标签 foreach_data传入数据list ,标签foreach_view传入显示页面 , 标签item_id传入item页面使用的BR的id
<LinearLayout app:foreach_data="@{listData}" app:foreach_view="@{@layout/item}" app:item_id="@{itemId}" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> </LinearLayout>

snappyDB

android Router

bidanet_android_core's People

Contributors

ganxj avatar xuejike avatar xuejike0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.