240 发简信
IP属地:北京
  • getWindowVisibleDisplayFrame与getDefaultDisplay()区别

    1、找到这两个数据 1)RectoutRect= new Rect(); h1= ((Activity) mContext).getWindow().getDecorVie...

  • 120
    2018-11-26 关于layout布局的一些总结

    1、最近要做到动态设置margin,如下 RelativeLayout.LayoutParams horFollowlayoutLp=(RelativeLayout.Layo...

  • 120
    设计模式——代理模式(一)

    1. 定义 为其他对象提供一种代理以控制对这个对象的访问。 2. 使用场景 当想对某个对象做功能增强拓展,但又不想改变原有对象代码时,为了达到这种良好的扩展性,可以使用一个代...