Live Templates For Android

xvtv
xUtil ViewInject TextView

@ViewInject(R.id.$resId$)
TextView $resId$;

xvet
xUtil ViewInject EditText

@ViewInject(R.id.$resId$)
EditText $resId$;

xvimgv
xUtil ViewInject ImageView

@ViewInject(R.id.$resId$)
ImageView $resId$;

xeclick
xUtil Event OnClick

@Event(R.id.$resId$)
private void $resId$Click(View v) {

}

xelv
xUtil ListView OnItemClick

@Event(value = R.id.$resId$,type = AdapterView.OnItemClickListener.class)
private void $resId$ItemClick(AdapterView<?> adapterView, View view, int position, long id){

}

发表评论

电子邮件地址不会被公开。 必填项已用*标注