Android开源图表库:

转载地址:http://www.cnblogs.com/tianzhijiexian/p/4229051.html

Android开源图表库:
https://github.com/xcltapestry/XCL-Charts
http://blog.csdn.net/xcl168/article/details/29675613
helloChat:https://github.com/lecho/hellocharts-android
MPAChat: https://github.com/PhilJay/MPAndroidChart

Android制作曲线、柱状图、饼形等图表——使用AChartEngine

http://www.cnblogs.com/jerehedu/p/4443324.html?utm_source=tuicool

 

瀑布流:
https://github.com/dodola/android_waterfall
https://github.com/jpardogo/ListBuddies
https://github.com/etsy/AndroidStaggeredGrid

https://github.com/dodola/android_waterfall

https://github.com/maurycyw/StaggeredGridView

 

PinterestLikeAdapterView

允许非对齐行的GridView
类似Pinterest的瀑布流,允许下拉刷新
项目地址:https://github.com/GDG-Korea/PinterestLikeAdapterView
APP示例:Pinterest

 

日期旋转

android-times-square-master

转载地址:  http://www.jianshu.com/p/fa1b34f7c570

Github 地址链接

今天分享3个自定义组件使用:

先放3个效果图

ThumbTextView.gif

AnimationRelativeLayout.gif

carryFragmentLayout.gif

三个自定义组件

  1. ThumbTextView
  2. AnimationRelativeLayout
  3. CarryFragmentLayout

usage:

ThumbTextView

布局文件:

<com.mingle.widget.ThumbTextView
                android:id="@+id/thumbTextView"

                app:content="5】尼玛,这招也太狠了! 这次绝逼是友尽了!希望情人节全国停电,气死那些唱歌喝酒泡吧看电影的,再来一场鹅毛大雪,冻死那些牵手逛街的,最后警察集体搜查,憋死那些想开房的~反正情人节我在家,不过了!【13】多大仇多大怨?为什么没有红烧前男友?差评!(转)眼见杯子要被打翻在地,主人急忙高呼住爪!![lxhx惊]于是喵星人真的住爪了……一下。。。。"

                app:mainTitle="主题"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content">
                </com.mingle.widget.ThumbTextView>

自定义属性说明:

mainTitle :标题;

content :正文内容

maxNumOfContent :最大字数限制,超出这个字数,显示缩略文字,

titleAppearance : 标题 TextView 的 TextAppearance

contentAppearance :正文 TextView 的 TextAppearance

使用注意:

ThumbTextView可以被 ScrollView下的 LinearLayout和 RelativeLayout 布局包裹,也可以直接被LinearLayout和 RelativeLayout 包裹着.

AnimationRelativeLayout

这个比较简单的一个,他是继承自 RelativeLayout 布局 所以你可以当它是有开场动画的 RelativeLayout使用,被它包裹的布局第一次会有动画的出现

CarryFragmentLayout

布局文件:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/background_material_light"
  tools:context="com.vserve.ottodemo.SecondActivity">
  <com.mingle.widget.CarryFragmentLayout
    android:id="@+id/carryFragment"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <ScrollView
      android:layout_width="fill_parent"
      android:layout_height="fill_parent">
      <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        >
        <TextView
          android:id="@+id/button"
          android:paddingTop="8dp"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textSize="22dp"
          android:paddingLeft="13dp"
          android:text="人物:" />
        <TextView
          android:id="@+id/button1"
          android:paddingTop="8dp"
          android:paddingLeft="13dp"
          android:textSize="22dp"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@+id/button"
          android:text="时间" />
        <TextView
          android:id="@+id/button2"
          android:paddingTop="8dp"
          android:textSize="22dp"
          android:paddingLeft="13dp"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@+id/button1"
          android:text="地点" />
        <TextView
          android:id="@+id/button3"
          android:textSize="22dp"
          android:paddingTop="8dp"
          android:paddingLeft="13dp"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@+id/button2"
          android:text="天气" />
        <TextView
          android:id="@+id/button4"
          android:textSize="22dp"
          android:paddingTop="8dp"
          android:paddingLeft="13dp"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@+id/button3"
          android:text="省份" />
        <TextView
          android:id="@+id/button5"
          android:textSize="22dp"
          android:paddingTop="8dp"
          android:paddingLeft="13dp"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@+id/button4"
          android:text="房子" />
        <TextView
          android:id="@+id/button6"
          android:textSize="22dp"
          android:paddingLeft="13dp"
          android:paddingTop="8dp"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@+id/button5"
          android:onClick="onClick"
          android:text="媳妇" />
        <TextView
          android:layout_below="@+id/button6"
          android:layout_width="fill_parent"
          android:layout_alignParentBottom="true"
          android:layout_height="200dp"/>
      </RelativeLayout>
    </ScrollView>
  </com.mingle.widget.CarryFragmentLayout>
</LinearLayout>
  1. 将布局包裹在CarryFragmentLayout中
  2. 使用 carryFragmentLayout.openFragment(getSupportFragmentManager(),fragment,view)方法显示 view 对应出现的 Fragment.
  3. 使用 carryFragmentLayout.closeFragment();恢复初始样子

至于 Fragment 与 Activity 的通信,你可以使用接口的方式实现,也可以使用 Otto, 和 EventBus 实现,个人推荐 Otto(原因不爱告诉你) ,你可以按你自己喜欢使用.follow your hear


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值