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


Java SpotsDialog类代码示例

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


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

示例1: onCreate

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ware_detail);
        ButterKnife.bind(this);


//        Serializable serializable = getIntent().getSerializableExtra(Contants.WARE);
//        if(serializable ==null)
//            this.finish();


        mDialog = new SpotsDialog(this,"loading....");
        mDialog.show();
//
//
//        mWare = (Wares) serializable;
//        cartProvider = new CartProvider(this);

        initToolBar();
//        initWebView();

    }
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:24,代码来源:WareDetailActivity.java

示例2: init

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
@Override
protected void init() {

    initToolBar();
    dialog = new SpotsDialog(this);

    phone = getIntent().getStringExtra("phone");
    pwd = getIntent().getStringExtra("pwd");
    countryCode = getIntent().getStringExtra("countryCode");

    String formatedPhone = "+" + countryCode + " " + splitPhoneNum(phone);
    String text = getString(R.string.smssdk_send_mobile_detail) + formatedPhone;
    mTxtTip.setText(Html.fromHtml(text));

    CountTimerView timerView = new CountTimerView(mBtnResend);    //倒计时
    timerView.start();

    initSms();
}
 
开发者ID:gaolhjy,项目名称:cniao5,代码行数:20,代码来源:RegSecondActivity.java

示例3: initWebView

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
private void initWebView() {
    WebSettings webSettings = mWebView.getSettings();
    webSettings.setJavaScriptEnabled(true);
    /*使webview能够加载图片*/
    webSettings.setBlockNetworkImage(false);
    webSettings.setAppCacheEnabled(true);
    mDialog=new SpotsDialog(this);
    mDialog.show();
    mWebView.loadUrl(mMessage.getClickUrl());
    //        mWebAppInterface = new WebAppInterface(this);
    //        mWebView.addJavascriptInterface(mWebAppInterface, "appInterface");
    mWebView.setWebViewClient(new MyWebChromeC());
    mWebView.setWebChromeClient(new WebChromeClient(){

    });

}
 
开发者ID:yiwent,项目名称:Mobike,代码行数:18,代码来源:TripDetailActivity.java

示例4: initEvent

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
private void initEvent() {
    mDialog = new SpotsDialog(this);
    mTitleCredit.setOnLeftButtonClickListener(new TabTitleView.OnLeftButtonClickListener() {
        @Override
        public void onClick() {
            MyTripsActivity.this.finish();
        }
    });
    mTitleCredit.setOnRightTextViewClickListener(new TabTitleView.OnRightButtonClickListener() {
        @Override
        public void onClick() {
            startActivity(new Intent(MyTripsActivity.this, LastTenTripHistoryActivity.class));
        }
    });
    mRefreshLayout.setOnRefreshListener(new SwipyRefreshLayout.OnRefreshListener() {
        @Override
        public void onRefresh(SwipyRefreshLayoutDirection direction) {
            requestData();
            if (mRefreshLayout.isRefreshing())
                mRefreshLayout.setRefreshing(false);

        }
    });
}
 
开发者ID:yiwent,项目名称:Mobike,代码行数:25,代码来源:MyTripsActivity.java

示例5: initWebView

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
private void initWebView() {
        WebSettings webSettings = mWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        /*使webview能够加载图片*/
        webSettings.setBlockNetworkImage(false);
        webSettings.setAppCacheEnabled(true);
        mDialog=new SpotsDialog(this);
        mDialog.show();
        mWebView.loadUrl(mMessage.getClickUrl());
//        mWebAppInterface = new WebAppInterface(this);
//        mWebView.addJavascriptInterface(mWebAppInterface, "appInterface");
        mWebView.setWebViewClient(new MyWebChromeC());
        mWebView.setWebChromeClient(new WebChromeClient(){

        });

    }
 
开发者ID:yiwent,项目名称:Mobike,代码行数:18,代码来源:MessageDetailActivity.java

示例6: onClick

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
@Override
public void onClick(View v) {
    switch (v.getId()) {
        case android.R.id.button1:
            new SpotsDialog(this).show();
            break;
        case android.R.id.button2:
            new SpotsDialog(this, R.style.Custom).show();
            break;
        case android.R.id.button3:
            new SpotsDialog(this, "Custom message").show();
            break;
        case android.R.id.closeButton:
            new SpotsDialog(this, "Custom message & style", R.style.Custom).show();
            break;
    }
}
 
开发者ID:open-android,项目名称:Loading,代码行数:18,代码来源:MainActivity.java

示例7: initView

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
private void initView() {
    mTitleOther.setOnLeftButtonClickListener(new TabTitleView.OnLeftButtonClickListener() {
        @Override
        public void onClick() {
            finish();
        }
    });
    mData = new MyTripsData();
    mDialog = new SpotsDialog(this);
    mDialog.show();
    mLoCar.setVisibility(View.GONE);
    mTvHistory.setVisibility(View.GONE);
    if (!CommonUtils.isNetworkAvailable(this))
        fail();
    if (mQuery == null) {
        mQuery = new BmobQuery<>("MyTripsData");
        mQuery.addWhereEqualTo("mMyUser", MyApplication.getInstance().getUser().getObjectId());
        mQuery.order("-updatedAt");
        mQuery.setLimit(1);
    }
    mQuery.findObjects(new FindListener<MyTripsData>() {
        @Override
        public void done(List<MyTripsData> list, BmobException e) {
            if (e == null&&!list.isEmpty()) {
                showData(list.get(0));
            } else {
                mLoCar.setVisibility(View.GONE);
                mTvHistory.setVisibility(View.GONE);
                mNetfail.setVisibility(View.GONE);
                Logger.d(e);
            }
            dismissMyDialog();
        }
    });

}
 
开发者ID:yiwent,项目名称:Mobike,代码行数:37,代码来源:NormalCustomerServiceActivity.java

示例8: initEvent

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
private void initEvent() {
    mDialog = new SpotsDialog(this);
    mTitleLasttrip.setOnLeftButtonClickListener(new TabTitleView.OnLeftButtonClickListener() {
        @Override
        public void onClick() {
            LastTenTripHistoryActivity.this.finish();
        }
    });
}
 
开发者ID:yiwent,项目名称:Mobike,代码行数:10,代码来源:LastTenTripHistoryActivity.java

示例9: initView

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
private void initView() {
    mDialog = new SpotsDialog(RechargeHistoryActivity.this, "正在加载...");
    if (!CommonUtils.isNetworkAvailable(this)) {
        unavailableView.setVisibility(View.VISIBLE);
    } else {
        unavailableView.setVisibility(View.GONE);
        requestData();
    }
    initRefreshLayout();
}
 
开发者ID:yiwent,项目名称:Mobike,代码行数:11,代码来源:RechargeHistoryActivity.java

示例10: onCreate

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_my_red_pocket);
    ButterKnife.bind(this);
    mDialog=new SpotsDialog(this);
    initView();
}
 
开发者ID:yiwent,项目名称:Mobike,代码行数:9,代码来源:MyRedPocketActivity.java

示例11: requestPoketData

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
private void requestPoketData() {
    if (!CommonUtils.isNetworkAvailable(this)){
        ToastUtils.show(this,"暂时没有红包记录");
        return;
    }
    if (query == null) {
        query = new BmobQuery<>("MyRedPocketData");
        query.order("-updatedAt");
        query.addWhereEqualTo("mMyUser", MyApplication.getInstance().getUser());
        query.addWhereEqualTo("isvalid", true);
    }
    if (isFirstin) {
        mDialog = new SpotsDialog(RedPocketDetailActivity.this, "正在加载...");
        mDialog.show();
        isFirstin = false;
    }
    query.findObjects(new FindListener<MyRedPocketData>() {
        @Override
        public void done(List<MyRedPocketData> list, BmobException e) {
            if (e == null) {
                mData = list;
                showPoketData();
            } else {
                ToastUtils.show(RedPocketDetailActivity.this, "暂时没有红包记录");
                Logger.d(e);
            }
            dismissMyDialog();
        }
    });
}
 
开发者ID:yiwent,项目名称:Mobike,代码行数:31,代码来源:RedPocketDetailActivity.java

示例12: requestMassage

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
private void requestMassage() {
    if (!CommonUtils.isNetworkAvailable(this)){
        ToastUtils.show(this,"暂时没有消息");
        return;
    }
    if (query == null) {
        query = new BmobQuery<>("MyMessage");
        query.order("-updatedAt");
        query.setLimit(4);//最新四条活动信息
    }
    if (isFirstin) {
        mDialog = new SpotsDialog(MyMessagesActivity.this, "正在加载...");
        mDialog.show();
        isFirstin = false;
    }
    query.findObjects(new FindListener<MyMessage>() {
        @Override
        public void done(List<MyMessage> list, BmobException e) {
            if (e == null) {
                mMyMessages = list;
                showMessage();
            } else {
                ToastUtils.show(MyMessagesActivity.this, "暂时没有消息");
                Logger.d(e);
            }
            dismissMyDialog();
        }
    });

}
 
开发者ID:yiwent,项目名称:Mobike,代码行数:31,代码来源:MyMessagesActivity.java

示例13: onCreate

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_settings);
    ButterKnife.bind(this);
    initToolbar();
    initData();
    mDialog = new SpotsDialog(this);
}
 
开发者ID:yiwent,项目名称:Mobike,代码行数:10,代码来源:SettingsActivity.java

示例14: onClick

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
@Override
public void onClick(View v) {
    switch (v.getId()) {
        case android.R.id.button1:
            new SpotsDialog.Builder()
                    .setContext(this)
                    .build()
                    .show();
            break;
        case android.R.id.button2:
            new SpotsDialog.Builder()
                    .setContext(this)
                    .setTheme(R.style.Custom)
                    .build()
                    .show();
            break;
        case android.R.id.button3:
            new SpotsDialog.Builder()
                    .setContext(this)
                    .setMessage("Custom message")
                    .build()
                    .show();
            break;
        case android.R.id.closeButton:
            new SpotsDialog.Builder()
                    .setContext(this)
                    .setTheme(R.style.Custom)
                    .setMessage(R.string.app_name)
                    .build()
                    .show();
            break;
    }
}
 
开发者ID:d-max,项目名称:spots-dialog,代码行数:34,代码来源:MainActivity.java

示例15: LoadingView

import dmax.dialog.SpotsDialog; //导入依赖的package包/类
public LoadingView(Context context, String message) {
    mLoadingDialog = new SpotsDialog(context, message);
}
 
开发者ID:Jusenr,项目名称:RX_Demo,代码行数:4,代码来源:LoadingView.java


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