苹果118
苹果118
  • 发布:2017-03-05 09:55
  • 更新:2017-04-27 18:05
  • 阅读:2288

急,plus.nativeUI.showWaiting使用最新离线打包框架,不能显示,原工程可显示

分类:5+ SDK

搜遍所有帖子,没有发现解决此问题的方式
1.已将所有的资源文件拷入

  1. 将所有jar包也拷贝过来
    将两个工程对比未发现相关未设定的地方,新版集成工程即使未设置以下参数,也好使。

package io.dcloud;

import io.dcloud.feature.ui.nativeui.NativeUIR;
import io.dcloud.js.gallery.GalleryR;
import org.apache.commons.httpclient.auth.AuthChallengeException;
/**

  • 本文件是5+SDK使用的资源索引
  • 工程引入本文件的包名必须是“io.dcloud”
  • */
    public class RInformation extends PdrR implements NativeUIR,GalleryR{
    //5+Runtime - begin
    public static int DRAWABLE_SPLASH = R.drawable.splash;
    public static int DRAWABLE_ICON = R.drawable.icon;
    public static int LAYOUT_SNOW_WHITE_PROGRESS = R.layout.dcloud_snow_white_progress;
    public static int LAYOUT_SNOW_BLACK_PROGRESS = R.layout.dcloud_snow_black_progress;
    // public static int ID_PROGRESSBAR = R.id.progressBar;
    // public static int FEATURE_LOSS_STYLE= R.style.featureLossDialog;
    //5+Runtime - end

    //Action Sheet 控件配置如工程内未使用Actionsheet可删除
    /public static int[] ACTS_STYLE_ACTIONSHEET = R.styleable.ActionSheet;
    public static int ACTS_STYLE_actionSheetBackground = R.styleable.ActionSheet_actionSheetBackground;
    public static int ACTS_STYLE_cancelButtonBackground = R.styleable.ActionSheet_cancelButtonBackground;
    public static int ACTS_STYLE_otherButtonTopBackground = R.styleable.ActionSheet_otherButtonTopBackground;
    public static int ACTS_STYLE_otherButtonMiddleBackground = R.styleable.ActionSheet_otherButtonMiddleBackground;
    public static int ACTS_STYLE_otherButtonBottomBackground = R.styleable.ActionSheet_otherButtonBottomBackground;
    public static int ACTS_STYLE_ActionSheet_cancelButtonTextColor = R.styleable.ActionSheet_otherButtonSingleBackground;
    public static int ACTS_STYLE_cancelButtonTextColor = R.styleable.ActionSheet_cancelButtonTextColor;
    public static int ACTS_STYLE_otherButtonTextColor = R.styleable.ActionSheet_otherButtonTextColor;
    public static int ACTS_STYLE_actionSheetPadding = R.styleable.ActionSheet_actionSheetPadding;
    public static int ACTS_STYLE_otherButtonSpacing = R.styleable.ActionSheet_otherButtonSpacing;
    public static int ACTS_STYLE_cancelButtonMarginTop = R.styleable.ActionSheet_cancelButtonMarginTop;
    public static int ACTS_STYLE_actionSheetTextSize = R.styleable.ActionSheet_actionSheetTextSize;
    public static int ACTS_STYLE_otherButtonSingleBackground = R.styleable.ActionSheet_otherButtonSingleBackground;
    public static int ACTS_ATTR_SctionSheetSytle = R.attr.actionSheetStyle;
    /
    // public static int ACTS_STYLE_ActionSheetStyleIOS7 = R.style.ActionSheetStyleIOS7;
    // public static int ACTS_STYLE_titleButtonTextColor = R.styleable.ActionSheet_titleButtonTextColor;
    // public static int ACTS_STYLE_destructiveButtonTextColor = R.styleable.ActionSheet_destructiveButtonTextColor;
    // public static int ACTS_STYLE_otherButtonTitleBackground = R.styleable.ActionSheet_otherButtonTitleBackground;
    // ActionSheet end

// //多图片选择控件
public static int LAYOUT_IMAGE_PICK_GALLERY = R.layout.image_pick_gallery;
public static int ID_IMAGE_PICK_GRID_GALLERY = R.id.gridGallery;
public static int ID_IMAGE_PICK_NO_MEDIA = R.id.imgNoMedia;
public static int ID_IMAGE_PICK_BTN_OK = R.id.titleBtn;
public static int ID_IMAGE_PICK_TITLE = R.id.tvTitleText;
public static int LAYOUT_IMAGE_PICK_GALLERY_ITEM = R.layout.image_pick_gallery_item;
public static int ID_IMAGE_PICK_IMG_QUEUE = R.id.imgQueue;
public static int ID_IMAGE_PICK_MASK = R.id.imgQueueMask;
public static int DRAWABLE_IMAGE_PICK_NO_MEDIA = R.drawable.image_pick_no_media;
//Image_Picker end

//StreamApp begin  

// public static int STREAMAPP_LIST_ITEM_APPICON = R.id.StreamApp_List_appIcon;
// public static int STREAMAPP_LIST_ITEM_APPSUMMARY = R.id.StreamApp_List_appSummary;
// public static int STREAMAPP_LIST_ITEM_APPTITLE = R.id.StreamApp_List_appTitle;
// public static int STREAMAPP_LIST_ITEM_STOREUPICON = R.id.StreamApp_List_StoreUpIcon;
// public static int STREAMAPP_LIST_ITEM_LEFTPART = R.id.StreamApp_List_Leftpart;
// public static int STREAMAPP_LIST_ITEM_STOREUP = R.id.StreamApp_List_StoreUp;
// public static int STREAMAPP_DRAWABLE_STOREUP = R.drawable.streamapp_icon_storeup;
// public static int STREAMAPP_DRAWABLE_UNSTOREUP = R.drawable.streamapp_icon_unstoreup;
// public static int STREAMAPP_DRAWABLE_APPDEFULTICON = R.drawable.streamapp_icon_appdefault;
// public static int STREAMAPP_LAYOUT_LISTITEM = R.layout.streamapp_list_item;
// public static int STREAMAPP_LIST_ITEM_DIVIDER = R.id.Streamapp_List_Divider;
//StreamApp end

//对话框控件引用资源  

// public static int DRAWABLE_DCLOUD_DIALOG_SHAPE = R.drawable.dcloud_dialog_shape;
// public static int LAYOUT_DIALOG_LAYOUT_DCLOUD_DIALOG = R.layout.dcloud_dialog;
// public static int ID_DCLOUD_DIALOG_ROOTVIEW = R.id.dcloud_dialog_rootview;
// public static int ID_DCLOUD_DIALOG_TITLE = R.id.dcloud_dialog_title;
// public static int ID_DCLOUD_DIALOG_ICON = R.id.dcloud_dialog_icon;
// public static int ID_DCLOUD_DIALOG_MSG = R.id.dcloud_dialog_msg;
// public static int ID_DCLOUD_DIALOG_BTN1 = R.id.dcloud_dialog_btn1;
// public static int ID_DCLOUD_DIALOG_BTN2 = R.id.dcloud_dialog_btn2;
// public static int STYLE_DIALOG_DCLOUD_DEFALUT_DIALOG = R.style.dcloud_defalut_dialog;
// public static int STYLE_DIALOG_STYLE_DCLOUD_ANIM_DIALOG_WINDOW_IN_OUT = R.style.dcloud_anim_dialog_window_in_out;
// public static int ANIM_DIALOG_ANIM_DCLOUD_SLIDE_IN_FROM_TOP = R.anim.dcloud_slide_in_from_top;
// public static int ANIM_DIALOG_ANIM_DCLOUD_SLIDE_OUT_TO_TOP = R.anim.dcloud_slide_out_to_top;
// //Dialog end
//
// public static int VIEW_LAYOUT_SPLASH = R.layout.dcloud_view_splash;
// public static int ID_ICON_SPLASH = R.id.iv_icon_splash_dcloud;
// public static int ID_TEXT_COPYRIGHT_SPLASH = R.id.tv_copyright_splash_dcloud;
// public static int ID_TEXT_LOADING_SPLASH = R.id.tv_loading_splash_dcloud;
// public static int ID_TEXT_NAME_SPLASH = R.id.tv_name_splash_dcloud;
//
// // Loading控件引用资源
public static int LAYOUT_DIALOG_LAYOUT_LOADING_DCLOUD = R.layout.dcloud_loadingview;
public static int ID_TEXT_LOADING_DCLOUD = R.id.dcloud_tv_loading;
public static int ID_PROGRESSBAR_LOADING_DCLOUD = R.id.dcloud_pb_loading;
public static int ID_IMAGE_LOADING_DCLOUD = R.id.dcloud_iv_loading;
public static int DRAWBLE_PROGRESSBAR_BLACK_DCLOUD = R.drawable.dcloud_snow_black_progress;
public static int DRAWBLE_PROGRESSBAR_WHITE_DCLOUD = R.drawable.dcloud_snow_white_progress;
public static int ID_WAITING_SEPARATOR_DCLOUD = R.id.dcloud_view_seaparator;
}

2017-03-05 09:55 负责人:无 分享
已邀请:
苹果118

苹果118 (作者)

使用模板工程好使,将出现问题的工程文件,一点一点移入,原来好使的应用又神奇的不好使了,到底是哪个文件的问题。

苹果118

苹果118 (作者)

package="io.dcloud.HBuilder.Hello" 修改包名后就会导致loading不出现,改回就好使了,这是什么道理请官方说明一下,与原有的原生程序集成,package写的是自己的package名。

苹果118

苹果118 (作者)

期待回复

Android_磊子

Android_磊子

建议细心对比下最新sdk工程,比如RInformation.java类;
或在最新sdk工程基础上进行开发。

苹果118

苹果118 (作者)

是在最新的SDK工程上开发,对比了,最新的RInformation.java类无任何信息,/**

  • 本文件是5+SDK使用的资源索引
  • 工程引入本文件的包名必须是“io.dcloud”
  • */
    public class RInformation extends PdrR implements NativeUIR,GalleryR{

    public static int VIEW_LAYOUT_SPLASH = 0;
    }
    无特殊设置就好使,查看了源代码,可能是获取资源库R类包名问题,查找中.......

苹果118

苹果118 (作者)

已解决,将包名改为资源文件R的包即可

无言的飞雪

无言的飞雪

怎么解决的啊?我也遇到了。HBuilder的项目放入到Android Studio中以后,其他都还好使,但是plus.nativeUI.showWaiting不显示了。这是为啥啊?

app/src/main/java/io/dcloud/RInformation.java

package io.dcloud;
import io.dcloud.feature.ui.nativeui.NativeUIR;
import io.dcloud.js.gallery.GalleryR;
/**

  • 本文件是5+SDK使用的资源索引
  • 工程引入本文件的包名必须是“io.dcloud”
  • */
    public class RInformation extends PdrR implements NativeUIR,GalleryR{

    public static int VIEW_LAYOUT_SPLASH = 0;
    }

  • 2***@qq.com

    我也遇到这样的问题,你解决了吗

    2018-06-22 15:07

该问题目前已经被锁定, 无法添加新回复