interface VS type
大家使用 typescr ipt 总会使用到 interface 和 type,官方规范 稍微说了下两者的区别
An interface can be named in an extends or implements clause, but a type alias for an object type literal cannot.
An interface can have multiple merged declarations, but a
Android MotionEvent中getX()和getRawX()的区别实例详解
实例代码:
public class Res extends Activity implements View.OnTouchListener {
Button btn = null;
int x = 0;
int y = 0;
int rawx = 0;
int rawy = 0;
Override
public void onCreate(Bundle savedIn