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


Java ChangeLogRow类代码示例

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


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

示例1: onPostExecute

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //导入依赖的package包/类
protected void onPostExecute(ChangeLog chg) {

            //Notify data changed
            if (chg != null) {
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
                    mAdapter.addAll(chg.getRows());
                } else {
                    if (chg.getRows() != null) {
                        for (ChangeLogRow row : chg.getRows()) {
                            mAdapter.add(row);
                        }
                    }
                }
                mAdapter.notifyDataSetChanged();
            }
        }
 
开发者ID:goodev,项目名称:droidddle,代码行数:17,代码来源:ChangeLogListView.java

示例2: onPostExecute

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //导入依赖的package包/类
protected void onPostExecute(ChangeLog chg) {

            //Notify data changed
            if (chg!=null){
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){
                    mAdapter.addAll(chg.getRows());
                }else{
                    if(chg.getRows()!=null){
                        for(ChangeLogRow row:chg.getRows()){
                            mAdapter.add(row);
                        }
                    }
                }
                mAdapter.notifyDataSetChanged();
            }
        }
 
开发者ID:Daniele-Comi,项目名称:System-Monitor,代码行数:17,代码来源:ChangeLogListView.java

示例3: onPostExecute

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //导入依赖的package包/类
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
protected void onPostExecute(ChangeLog chg) {

    //Notify data changed
    if (chg != null) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            mAdapter.addAll(chg.getRows());
        } else {
            if (chg.getRows() != null) {
                for (ChangeLogRow row : chg.getRows()) {
                    mAdapter.add(row);
                }
            }
        }
        mAdapter.notifyDataSetChanged();
    }
}
 
开发者ID:goodev,项目名称:android-discourse,代码行数:18,代码来源:ChangeLogListView.java

示例4: readChangeLogRowNode

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //导入依赖的package包/类
/**
 *  Parse changeLogText node
 *
 * @param parser
 * @param changeLog
 * @throws Exception
 */
private void readChangeLogRowNode(XmlPullParser parser, ChangeLog changeLog, String versionName, int versionCode) throws Exception {

    if (parser == null) return;


    String tag = parser.getName();

    ChangeLogRow row = new ChangeLogRow();
    row.setVersionName(versionName);
    row.setVersionCode(versionCode);

    // Read attributes
    String changeLogTextTitle = parser.getAttributeValue(null, ATTRIBUTE_CHANGETEXTTITLE);
    if (changeLogTextTitle != null)
        row.setChangeTextTitle(changeLogTextTitle);

    // It is possible to force bulleted List
    String bulletedList = parser.getAttributeValue(null, ATTRIBUTE_BULLETEDLIST);
    if (bulletedList != null) {
        if (bulletedList.equals("true")) {
            row.setBulletedList(true);
        } else {
            row.setBulletedList(false);
        }
    } else {
        row.setBulletedList(super.bulletedList);
    }

    // Read text
    if (parser.next() == XmlPullParser.TEXT) {
        String changeLogText = parser.getText();
        if (changeLogText == null)
            throw new ChangeLogException("ChangeLogText required in changeLogText node");
        row.parseChangeText(changeLogText);
        row.setType(tag.equalsIgnoreCase(TAG_CHANGELOGBUG) ? ChangeLogRow.BUGFIX : tag.equalsIgnoreCase(TAG_CHANGELOGIMPROVEMENT) ? ChangeLogRow.IMPROVEMENT : ChangeLogRow.DEFAULT);
        parser.nextTag();
    }
    changeLog.addRow(row);

    //Log.d(TAG, "Added row:" + row.toString());

}
 
开发者ID:goodev,项目名称:droidddle,代码行数:50,代码来源:XmlParser.java

示例5: readChangeLogRowNode

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //导入依赖的package包/类
/**
 *  Parse changeLogText node
 *
 * @param parser
 * @param changeLog
 * @throws Exception
 */
private void readChangeLogRowNode(XmlPullParser parser, ChangeLog changeLog, String versionName,int versionCode) throws Exception {

    if (parser == null) return;


    String tag = parser.getName();

    ChangeLogRow row = new ChangeLogRow();
    row.setVersionName(versionName);
    row.setVersionCode(versionCode);

    // Read attributes
    String changeLogTextTitle = parser.getAttributeValue(null, ATTRIBUTE_CHANGETEXTTITLE);
    if (changeLogTextTitle != null)
        row.setChangeTextTitle(changeLogTextTitle);

    // It is possible to force bulleted List
    String bulletedList = parser.getAttributeValue(null, ATTRIBUTE_BULLETEDLIST);
    if (bulletedList != null) {
        if (bulletedList.equals("true")) {
            row.setBulletedList(true);
        } else {
            row.setBulletedList(false);
        }
    } else {
        row.setBulletedList(super.bulletedList);
    }

    // Read text
    if (parser.next() == XmlPullParser.TEXT) {
        String changeLogText = parser.getText();
        if (changeLogText == null)
            throw new ChangeLogException("ChangeLogText required in changeLogText node");
        row.parseChangeText(changeLogText);
        row.setType(tag.equalsIgnoreCase(TAG_CHANGELOGBUG) ? ChangeLogRow.BUGFIX : tag.equalsIgnoreCase(TAG_CHANGELOGIMPROVEMENT) ? ChangeLogRow.IMPROVEMENT : ChangeLogRow.DEFAULT);
        parser.nextTag();
    }
    changeLog.addRow(row);

    //Log.d(TAG, "Added row:" + row.toString());

}
 
开发者ID:Daniele-Comi,项目名称:System-Monitor,代码行数:50,代码来源:XmlParser.java

示例6: readChangeLogRowNode

import it.gmariotti.changelibs.library.internal.ChangeLogRow; //导入依赖的package包/类
/**
 * Parse changeLogText node
 *
 * @param parser
 * @param changeLog
 * @throws Exception
 */
private void readChangeLogRowNode(XmlPullParser parser, ChangeLog changeLog, String versionName) throws Exception {

    if (parser == null)
        return;

    parser.require(XmlPullParser.START_TAG, null, TAG_CHANGELOGTEXT);

    String tag = parser.getName();
    if (tag.equals(TAG_CHANGELOGTEXT)) {
        ChangeLogRow row = new ChangeLogRow();
        row.setVersionName(versionName);

        // Read attributes
        String changeLogTextTitle = parser.getAttributeValue(null, ATTRIBUTE_CHANGETEXTTITLE);
        if (changeLogTextTitle != null)
            row.setChangeTextTitle(changeLogTextTitle);

        // It is possible to force bulleted List
        String bulletedList = parser.getAttributeValue(null, ATTRIBUTE_BULLETEDLIST);
        if (bulletedList != null) {
            if (bulletedList.equals("true")) {
                row.setBulletedList(true);
            } else {
                row.setBulletedList(false);
            }
        } else {
            row.setBulletedList(super.bulletedList);
        }

        // Read text
        if (parser.next() == XmlPullParser.TEXT) {
            String changeLogText = parser.getText();
            if (changeLogText == null)
                throw new ChangeLogException("ChangeLogText required in changeLogText node");
            row.parseChangeText(changeLogText);
            parser.nextTag();
        }
        changeLog.addRow(row);

        Log.d(TAG, "Added row:" + row.toString());
    }
    parser.require(XmlPullParser.END_TAG, null, TAG_CHANGELOGTEXT);
}
 
开发者ID:goodev,项目名称:android-discourse,代码行数:51,代码来源:XmlParser.java


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