当前位置: 首页>>代码示例>>Java>>正文


Java OnCheckedChangeListener类代码示例

本文整理汇总了Java中com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener的典型用法代码示例。如果您正苦于以下问题:Java OnCheckedChangeListener类的具体用法?Java OnCheckedChangeListener怎么用?Java OnCheckedChangeListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


OnCheckedChangeListener类属于com.mikepenz.materialdrawer.interfaces包,在下文中一共展示了OnCheckedChangeListener类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DrawerManager

import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener; //导入依赖的package包/类
public DrawerManager(Context context, Drawer startDrawer, Drawer endDrawer, OnCheckedChangeListener unreadSwitchListener) {
    allUnreadFolder = new AllUnreadFolder(context);
    starredFolder = new StarredFolder(context);
    freshFolder = new FreshFolder(context);

    state = new State();

    startAdapter = new SubscriptionDrawerManager(startDrawer, unreadSwitchListener);
    endAdapter = new FolderDrawerManager(endDrawer);
}
 
开发者ID:schaal,项目名称:ocreader,代码行数:11,代码来源:DrawerManager.java

示例2: SubscriptionDrawerManager

import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener; //导入依赖的package包/类
public SubscriptionDrawerManager(Drawer drawer, OnCheckedChangeListener unreadSwitchListener) {
    super(drawer);

    topDrawerItems.add(
            new TreeItemSwitchDrawerItem(allUnreadFolder)
                    .withOnCheckedChangeListener(unreadSwitchListener)
    );
    topDrawerItems.add(new TreeItemDrawerItem(starredFolder));
    topDrawerItems.add(new TreeItemDrawerItem(freshFolder));

    topDrawerItems.add(new DividerDrawerItem());
}
 
开发者ID:schaal,项目名称:ocreader,代码行数:13,代码来源:DrawerManager.java

示例3: withOnCheckedChangeListener

import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener; //导入依赖的package包/类
public SwitchDrawerItem withOnCheckedChangeListener(OnCheckedChangeListener onCheckedChangeListener) {
    this.onCheckedChangeListener = onCheckedChangeListener;
    return this;
}
 
开发者ID:LeMinhAn,项目名称:MaterialDrawer,代码行数:5,代码来源:SwitchDrawerItem.java

示例4: getOnCheckedChangeListener

import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener; //导入依赖的package包/类
public OnCheckedChangeListener getOnCheckedChangeListener() {
    return onCheckedChangeListener;
}
 
开发者ID:LeMinhAn,项目名称:MaterialDrawer,代码行数:4,代码来源:SwitchDrawerItem.java

示例5: withOnCheckedChangeListener

import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener; //导入依赖的package包/类
public ToggleDrawerItem withOnCheckedChangeListener(OnCheckedChangeListener onCheckedChangeListener) {
    this.onCheckedChangeListener = onCheckedChangeListener;
    return this;
}
 
开发者ID:LeMinhAn,项目名称:MaterialDrawer,代码行数:5,代码来源:ToggleDrawerItem.java

示例6: setOnCheckedChangeListener

import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener; //导入依赖的package包/类
public void setOnCheckedChangeListener(OnCheckedChangeListener onCheckedChangeListener) {
    this.onCheckedChangeListener = onCheckedChangeListener;
}
 
开发者ID:LeMinhAn,项目名称:MaterialDrawer,代码行数:4,代码来源:ToggleDrawerItem.java

示例7: withOnCheckedChangeListener

import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener; //导入依赖的package包/类
public SecondaryToggleDrawerItem withOnCheckedChangeListener(OnCheckedChangeListener onCheckedChangeListener) {
    this.onCheckedChangeListener = onCheckedChangeListener;
    return this;
}
 
开发者ID:FreedomZZQ,项目名称:YouJoin-Android,代码行数:5,代码来源:SecondaryToggleDrawerItem.java

示例8: withOnCheckedChangeListener

import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener; //导入依赖的package包/类
public SecondarySwitchDrawerItem withOnCheckedChangeListener(OnCheckedChangeListener onCheckedChangeListener) {
    this.onCheckedChangeListener = onCheckedChangeListener;
    return this;
}
 
开发者ID:FreedomZZQ,项目名称:YouJoin-Android,代码行数:5,代码来源:SecondarySwitchDrawerItem.java


注:本文中的com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。