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


Java ExpandableListAdapter.toString方法代码示例

本文整理汇总了Java中android.widget.ExpandableListAdapter.toString方法的典型用法代码示例。如果您正苦于以下问题:Java ExpandableListAdapter.toString方法的具体用法?Java ExpandableListAdapter.toString怎么用?Java ExpandableListAdapter.toString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.widget.ExpandableListAdapter的用法示例。


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

示例1: setAdapter

import android.widget.ExpandableListAdapter; //导入方法依赖的package包/类
/**
 * @see ExpandableListView#setAdapter(ExpandableListAdapter)
 */
public void setAdapter(ExpandableListAdapter adapter) {
    super.setAdapter(adapter);

    // Make sure that the adapter extends AnimatedExpandableListAdapter
    if(adapter instanceof AnimatedExpandableListAdapter) {
        this.adapter = (AnimatedExpandableListAdapter) adapter;
        this.adapter.setParent(this);
    } else {
        throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter");
    }
}
 
开发者ID:hgs1217,项目名称:Paper-Melody,代码行数:15,代码来源:AnimatedExpandableListView.java

示例2: setAdapter

import android.widget.ExpandableListAdapter; //导入方法依赖的package包/类
/**
 * @see ExpandableListView#setAdapter(ExpandableListAdapter)
 */
public void setAdapter(ExpandableListAdapter adapter) {
    super.setAdapter(adapter);

    // Make sure that the adapter extends AnimatedExpandableListAdapter
    if (adapter instanceof AnimatedExpandableListAdapter) {
        this.adapter = (AnimatedExpandableListAdapter) adapter;
        this.adapter.setParent(this);
    } else {
        throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter");
    }
}
 
开发者ID:yuhuayi,项目名称:newbee,代码行数:15,代码来源:AnimatedExpandableListView.java

示例3: setAdapter

import android.widget.ExpandableListAdapter; //导入方法依赖的package包/类
/**
 * @see ExpandableListView#setAdapter(ExpandableListAdapter)
 */
public void setAdapter(ExpandableListAdapter adapter) {
    super.setAdapter(adapter);
    
    // Make sure that the adapter extends AnimatedExpandableListAdapter
    if(adapter instanceof AnimatedExpandableListAdapter) {
        this.adapter = (AnimatedExpandableListAdapter) adapter;
        this.adapter.setParent(this);
    } else {
        throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter");
    }
}
 
开发者ID:KobeGong,项目名称:StickyAnimatedExpandableGridView,代码行数:15,代码来源:AnimatedExpandableListView.java

示例4: setAdapter

import android.widget.ExpandableListAdapter; //导入方法依赖的package包/类
/**
 * @see ExpandableListView#setAdapter(ExpandableListAdapter)
 */
public void setAdapter(ExpandableListAdapter adapter) {
    super.setAdapter(adapter);
    // Make sure that the adapter extends AnimatedExpandableListAdapter
    if(adapter instanceof AnimatedExpandableListAdapter) {
        this.adapter = (AnimatedExpandableListAdapter) adapter;
        this.adapter.setParent(this);
    } else {
        throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter");
    }
}
 
开发者ID:hearsilent,项目名称:XiaomiOrder,代码行数:14,代码来源:AnimatedExpandableListView.java

示例5: setAdapter

import android.widget.ExpandableListAdapter; //导入方法依赖的package包/类
/**
 * @see android.widget.ExpandableListView#setAdapter(android.widget.ExpandableListAdapter)
 */
public void setAdapter(ExpandableListAdapter adapter) {
    super.setAdapter(adapter);

    // Make sure that the adapter extends AnimatedExpandableListAdapter
    if(adapter instanceof AnimatedExpandableListAdapter) {
        this.adapter = (AnimatedExpandableListAdapter) adapter;
        this.adapter.setParent(this);
    } else {
        throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter");
    }
}
 
开发者ID:unfoldingWord-dev,项目名称:uw-android,代码行数:15,代码来源:AnimatedExpandableListView.java

示例6: setAdapter

import android.widget.ExpandableListAdapter; //导入方法依赖的package包/类
@Override
public void setAdapter(ExpandableListAdapter adapter) {
    super.setAdapter(adapter);

    if (adapter instanceof AnimatedExpandableListAdapter) {
        this.adapter = (AnimatedExpandableListAdapter) adapter;
    } else {
        throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter");
    }
}
 
开发者ID:shawwinbin,项目名称:MaterialDesignSupport,代码行数:11,代码来源:AnimatedExpandableListView.java


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