android view translationx,【安卓笔记】view.getX和view.getTranslationX区别

【安卓笔记】view.getX和view.getTranslationX区别

http://www.68idc.cn/help/buildlang/ask/20150104156778.html

Scrollto 的真正意思​

This is called in response to an internal scroll in this view

(i.e., the view scrolled its own contents). ​

pendintent​

flag定义:FLAG_NO_CREATE,基本不使用;FLAG_ONE_SHOT,以第一个为准,后续的会全部和第一条保持一致,任意一条被触发,其他的都cancel;FLAG_CANCEL_CURRENT,前面的相同的PendingIntent都会被cancel,只有最新的可用;FLAG_UDPATE_CURRENT,前面的PendingIntent都会被更新(它们Intent中的extras都会被更新)​

private ServiceConnection mService =new ServiceConnection()

{

@Override

public void onServiceDisconnected(ComponentName name) {

// TODO Auto-generated method stub

mAidl=null;

Toast.makeText(MainActivity.this, "mAidl=null;"+"",

0).show();

}

@Override

public void onServiceConnected(ComponentName name, IBinder

service) {

// TODO Auto-generated method stub

mAidl=IcallAIDL.Stub.asInterface(service);

}

};

Intent i=new Intent(MainActivity.this,CallService.class);

i.setAction("com.example.aidl");

i.setPackage("com.example.aidl.CallService");

bindService(i, mService, Context.BIND_AUTO_CREATE);

Toast.makeText(MainActivity.this, "binserver"+"", 0).show();

int add = mAidl.add(12, 12);

Toast.makeText(MainActivity.this, add+"", 0).show();

private final IcallAIDL.Stub mStub=new Stub() {

@Override

public int min(int x, int y) throws RemoteException {

// TODO Auto-generated method stub

return x*y;

}

@Override

public int add(int x, int y) throws RemoteException {

// TODO Auto-generated method stub

return x+y;

}

};

@Override

public IBinder onBind(Intent intent) {

// TODO Auto-generated method stub

Log.e(TAG, "onBind");

return mStub;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值