本文整理汇总了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();
}
示例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();
}
示例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(){
});
}
示例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);
}
});
}
示例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(){
});
}
示例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;
}
}
示例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();
}
});
}
示例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();
}
});
}
示例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();
}
示例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();
}
示例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();
}
});
}
示例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();
}
});
}
示例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);
}
示例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;
}
}
示例15: LoadingView
import dmax.dialog.SpotsDialog; //导入依赖的package包/类
public LoadingView(Context context, String message) {
mLoadingDialog = new SpotsDialog(context, message);
}