Activity /**登录界面及登陆后用户首页界面,使用两个Fragment实现*/ public class LoginActivity extends Activity implements LoginInterface { /** 存放Fragment的容器 */ private View fragmentContainer; /** 在使用replace替换Fragment是需要一个id */ public static final int ROOT_I
1.匿名内部类 bt.setOnClickListener(new OnClickListener(){ @Overridepublic void onClick(View view){//Here is what you want to really do }});优点:可以在当前类中复用该监听器类可以自由访问外部类的所有界面组件 2.外部类监听(比较少见) public class myListener implements OnClickListener{ public myListene
继续学习,我相信大家在做NGUI开发的时候处理事件都会用到UIEventListener,那么UGUI中怎么办呢?先看UGUI的事件有那些吧 Supported Events The Eventsystem supports a number of events, and they can be customised further in user custom user written InputModules. The events that are supported by the Sta
今天在安装filebeat的时候,出现了关于redis报错的问题,所以来总结一下: 报错信息是: (error) DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only