纯粹使用 RxJava 实现 ViewModel 经验

因为在复杂的业务中,并不仅仅是简单的在 XML 中绑定就能解决问题,对部分属性变化和事件触发的处理仍然需要在 View (Activity / Fragment) 中编写 Java 代码,并且为了实现复杂数据的绑定

790266850 2017-06-05   21492   0

Android百度地图之定位图层 经验

android.view.Menu; import android.view.MotionEvent; import android.view.View; import android.view.View.OnClickListener;

jopen 2013-10-02   103911   0

Android仿windows phone的风格主界面 经验

imer计时器来控制图片的显示位置。 在这里,我使用了android.support.v4.view.ViewPager来实现可滑动到宫格菜单,自定义一个MyPagerAdapter继承Pager

jopen 2013-05-07   74423   0

RecyclerView定制:通用ItemDecoration及全展开RecyclerView的实现 经验

式,那么,在RecyclerView源码中,是怎么用使用ItemDecoration的呢。与普通View的绘制流程一致,RecyclerView也要经过measure->layout->draw,并且

xucongding 2016-12-27   17935   0

iOS 应用程序的生命周期 经验

iOS应用程序都遵循Model-View-Controller的架构,Model负责存储数据和处理业务逻辑,View负责显示数据和与用户交互,Controller是两者的中介,协调Model和View相互协作。它们的

jopen 2015-06-22   15784   0

Support Lirary 23.2版本,其中Design Support Library库BottomSheets源码解析 经验

直接主题 我们先简单的看下用法 // The View with the BottomSheetBehavior         View bottomSheet = coordinatorLayout

RosemarieTC 2016-02-28   20182   0

从MVC框架看MVC架构的设计 经验

[i] View与Controller的解耦:mediator+二次事件委派 笔 者早年开发基于swing的GUI应用时,在架构MVC的实践过程中深刻体会到了view与control

jopen 2014-09-09   15654   0
MVC  

很好的一篇文章 博客

[i] View与Controller的解耦:mediator+二次事件委派 笔者早年开发基于swing的GUI应用时,在架构MVC的实践过程中深刻体会到了view与controll

zhou_open 2011-08-17   1385   0

Android ViewPager实现翻页步骤 经验

1、创建两个布局文件,一个布局文件定义viewPager组件,如 view.ViewPager android:id="@+id/vp_articles" android

jopen 2014-07-23   26957   0

ESTMusicIndicator:实现了类似网易云音乐 iOS 的音乐频谱标识的动画效果 经验

Cool Animated music indicator view written in Swift. ESTMusicIndicator is an implementation of NAK

jopen 2016-01-05   31073   0

LayoutInflater的inflate函数用法详解 经验

LayoutInflater 作用是将 layout 的 xml 布局文件实例化为 View 类对象。 获取 LayoutInflater 的方法有如下三种 : ? LayoutInflater

fmms 2012-02-09   314427   0

iOS7实现全屏模态半透明页面的效果 经验

alloc] init];// 新ViewController lockScreenController.view.backgroundColor = [UIColor clearColor];// 设置背景色为透明

jopen 2014-02-18   104259   0

UIWebView的使用,简单浏览器的实现 代码段

frame=CGRectMake(0,self.view.frame.size.height,self.view.frame.size.width,self.view.frame.size.height-42

jopen 2015-06-26   999   0
IOS  

Ext JS和Sencha Touch的APIs增强:Deft JS 经验

given view and its ViewController. Clarifies the role of the controller - i.e. controlling a view and delegating

jopen 2014-08-27   19082   0

Android开发 - 跟随手指的小球实现 经验

iew组件。 DrawView.java: package cn.csdn.android.view; import android.content.Context; import android

fmms 2012-01-11   39255   0

iOS简易抽屉效果 代码段

after loading the view, typically from a nib. _leftView = [[UIView alloc] init]; //把左侧边的view先隐藏 _leftView

xmnx 2015-03-23   4823   1
IOS  
P15

  sencha touch 2 设备配置 文档

下文件: app/model/User.js app/view/Navigation.js app/view/Login.js app/view/phone/Main.js The first three

hong199301 2013-05-13   3356   0

Material Design 实战 经验

support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast;

BessieKraus 2017-03-22   13962   0

让我们一次性解决导航栏的所有问题 经验

viewDidLoad]; // Do any additional setup after loading the view. UIButton * leftBtn = [UIButton buttonWithType:

etun0094 2016-10-10   10944   0

Android 实现蘑菇街购物车动画效果 经验

当的进行一个移动,蘑菇街就是使用这样的方法。二是使用WindowManager创建一个View,然后对这个View进行移动。 2、实现 本文先用方式一方法实现,之后会用方式二方法实现。 方式一: Activity代码:

SibylYxm 2016-02-18   21014   0
1 2 3 4 5 6 7 8 9 10