本文整理汇总了Java中de.keyboardsurfer.android.widget.crouton.Crouton.makeText方法的典型用法代码示例。如果您正苦于以下问题:Java Crouton.makeText方法的具体用法?Java Crouton.makeText怎么用?Java Crouton.makeText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类de.keyboardsurfer.android.widget.crouton.Crouton
的用法示例。
在下文中一共展示了Crouton.makeText方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onPostExecute
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
@Override
protected void onPostExecute(Void result) {
super.onPostExecute(result);
// Dismiss the progress dialog
if (pDialog.isShowing())
pDialog.dismiss();
System.out.println("done " );
Crouton crouton ;
if (EvmaApp.isError) {
crouton = Crouton.makeText(getActivity(), "une erreur est survenue lors la mise jour", de.keyboardsurfer.android.widget.crouton.Style.ALERT);
}else{
crouton = Crouton.makeText(getActivity(), "L'�v�nement a �t� mise jour avec succ�s", de.keyboardsurfer.android.widget.crouton.Style.CONFIRM);
}
crouton.show();
}
示例2: onPostExecute
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
@Override
protected void onPostExecute(Void result) {
super.onPostExecute(result);
// Dismiss the progress dialog
if (pDialog.isShowing())
pDialog.dismiss();
Crouton crouton;
if (EvmaApp.isError) {
crouton = Crouton.makeText(OrderOverview.this,
"une erreur est survenue lors la creation du commande",
de.keyboardsurfer.android.widget.crouton.Style.ALERT);
} else {
crouton = Crouton.makeText(OrderOverview.this,
"Vous y serez! Nous avons Saved une place pour vous.",
de.keyboardsurfer.android.widget.crouton.Style.CONFIRM);
}
crouton.show();
Intent intx = new Intent(OrderOverview.this,OrderBilletOverview.class);
intx.putExtra("uuids", CommandeController.UnkUUID);
intx.putExtra("pack_id",pack_id);
//evpk
startActivity(intx);
}
示例3: loadMayors
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
@Background
protected void loadMayors(){
loading();
try {
Result<VenueHistoryGroup> userResult = api.mayorships("self");
String error = userResult.getMeta().getErrorDetail();
if(error != null && !error.equals("")){
error(error);
return;
}
setMayors(userResult.getResult().getItems());
} catch (FoursquareApiException e) {
Crouton.makeText(this, e.getMessage(), Style.ALERT);
}
loadingDone();
}
示例4: loadVenueHistory
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
@Background
protected void loadVenueHistory(int days){
loading();
long now = System.currentTimeMillis();
long before = now / 1000;
long after = (now / 1000) - (60*60*24*days);
try {
Result<VenueHistoryGroup> result = api.usersVenueHistory("self", before, after);
String error = result.getMeta().getErrorDetail();
if(error != null && !error.equals("")){
error(error);
return;
}
setVenueHistory(result.getResult().getItems());
} catch (FoursquareApiException e) {
Crouton.makeText(this, e.getMessage(), Style.ALERT);
}
loadingDone();
}
示例5: loadHistory
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
@Background
protected void loadHistory() {
loading();
try {
Result<CheckinGroup> userResult = api.usersCheckins("self", 20, 0, null, null);
String error = userResult.getMeta().getErrorDetail();
if(error != null && !error.equals("")){
error(error);
return;
}
setCheckins(userResult.getResult().getItems());
} catch (FoursquareApiException e) {
Crouton.makeText(this, e.getMessage(), Style.ALERT);
}
loadingDone();
}
示例6: getInfoCrouton
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
public Crouton getInfoCrouton(String message) {
Style style = new Style.Builder()
.setHeightDimensionResId(R.dimen.crouton_height)
.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM)
.setBackgroundColorValue(getResources().getColor(R.color.pal_blue))
.setTextAppearance(R.style.SmarterList_TextStyle_Body_Bold)
.build();
return Crouton.makeText(this, message, style, R.id.container);
}
示例7: onPostExecute
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
@Override
protected void onPostExecute(Void result) {
super.onPostExecute(result);
// Dismiss the progress dialog
if (pDialog.isShowing())
pDialog.dismiss();
System.out.println("done " );
Crouton crouton ;
if (EvmaApp.isError) {
crouton = Crouton.makeText(getActivity(), "une erreur est survenue lors la mise à jour", de.keyboardsurfer.android.widget.crouton.Style.ALERT);
}else{
if (PackAction.equals("Update")) {
crouton = Crouton.makeText(getActivity(), "Le forfait a été mise jour avec succès", de.keyboardsurfer.android.widget.crouton.Style.CONFIRM);
}else{
crouton = Crouton.makeText(getActivity(), "Le forfait a été ajouté avec succès", de.keyboardsurfer.android.widget.crouton.Style.CONFIRM);
}
}
crouton.show();
btn_ShowFreeForm.setVisibility(Button.GONE);
btn_ShowPaidForm.setVisibility(Button.GONE);
ClearFields();
new GetForfaits().execute();
ShowForfaits();
}
示例8: refreshFragments
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
private void refreshFragments() {
if (vertretungsplan != null) {
vertretungFragment.setVertretungsplan(vertretungsplan);
nachrichtenFragment.setVertretungsplan(vertretungsplan);
} else {
Crouton crouton = Crouton.makeText(this,
"Konnte nicht auf den Vertretungsplan zugreifen",
Style.ALERT);
crouton.show();
}
setProgress(false);
}
示例9: onListItemClick
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
@Override
public void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
System.out.println("Click yaay :v");
String EvForfaitiD = ((TextView) v.findViewById(R.id.tv_event_forf_id))
.getText().toString();
String Soldetickets = ((TextView) v
.findViewById(R.id.tvforfaitSoldetickets)).getText().toString();
String EvForfaitPrice = ((TextView) v.findViewById(R.id.tvForfaitType))
.getText().toString();
String EvForfaitQty = ((TextView) v.findViewById(R.id.tvforfaittickets))
.getText().toString();
String EvForfaitTitle = ((TextView) v.findViewById(R.id.tvforfaitTitle))
.getText().toString();
Crouton crouton;
System.out.println("Soldetickets=>" + Soldetickets + "EvForfaitQty==>" + EvForfaitQty);
int Soldeticketsx = Integer.valueOf(Soldetickets);
int EvForfaitQtyx = Integer.valueOf(EvForfaitQty);
if (Soldetickets.equals(EvForfaitQty) || Soldeticketsx > EvForfaitQtyx ) {
crouton = Crouton.makeText(getActivity(),
":( Tous les billets de cet forfait sont vendus",
de.keyboardsurfer.android.widget.crouton.Style.ALERT);
crouton.show();
return;
}
evpk = mForfaitController.getSingleForfaitByID(EvForfaitiD,
"getAllofit");
Intent in = new Intent(getActivity(), Event_Forfait_cmd.class);
in.putExtra(ForfaitController.TAG_pack_id, EvForfaitiD);
in.putExtra(ForfaitController.TAG_pack_Title, evpk.getTAG_pack_Title());
in.putExtra(ForfaitController.TAG_pack_Qty, evpk.getTAG_pack_Qty());
in.putExtra(ForfaitController.TAG_pack_Price, evpk.getTAG_pack_Price());
in.putExtra(ForfaitController.TAG_pack_Description,
evpk.getTAG_pack_Description());
in.putExtra(ForfaitController.TAG_pack_fees, evpk.getTAG_pack_fees());
in.putExtra(ForfaitController.TAG_pack_Solde, evpk.getTAG_pack_Solde());
in.putExtra(EventsController.TAG_ID, EvID);
startActivity(in);
}
示例10: onPostExecute
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
@Override
protected void onPostExecute(Void result) {
super.onPostExecute(result);
System.out.println("done adding us ID " );
if (EvmaApp.isError == false) {
Crouton crouton = Crouton.makeText(SignUp.this,
"F�licitations, votre compte a �t� cr�� avec succ�s ",
de.keyboardsurfer.android.widget.crouton.Style.CONFIRM);
crouton.show();
// Toast.makeText(LoginEv.this,"Login Success",
// Toast.LENGTH_SHORT).show();
dialog.dismiss();
SharedPreferences mPrefs = getSharedPreferences("Mypref" , MODE_PRIVATE);
Editor prefsEditor = mPrefs.edit();
Gson gson = new Gson();
String json = gson.toJson(EvmaApp.CurrentUser);
prefsEditor.putString("CurrentUser", json);
prefsEditor.commit();
if (EvmaApp.CurrentUser.getRole().equals("Utilisateur")) {
EvmaApp.CurrentUsername = EvmaApp.CurrentUser.getUsername();
EvmaApp.CurrentUserEmail = EvmaApp.CurrentUser.getEmail();
EvmaApp.CurrentOrganizer = "";
EvmaApp.CurrentUsernameID = Integer.valueOf(EvmaApp.CurrentUser.getUser_id()) ;
Intent inToMain = new Intent(SignUp.this,MainEv.class);
startActivity(inToMain);
}else{
EvmaApp.CurrentOrganizer = EvmaApp.CurrentUser.getUsername();
EvmaApp.CurrentUsername = "";
EvmaApp.CurrentUsernameID = Integer.valueOf(EvmaApp.CurrentUser.getUser_id()) ;
Intent intUser = new Intent(SignUp.this,MainEv.class);
startActivity(intUser);
}
// EvmaApp.CurrentOrganizer = "";
// EvmaApp.CurrentUser = us;
// Intent inToMain = new Intent(SignUp.this, MainEv.class);
// startActivity(inToMain);
}
}
示例11: makeCrouton
import de.keyboardsurfer.android.widget.crouton.Crouton; //导入方法依赖的package包/类
public Crouton makeCrouton() {
return Crouton.makeText(activity, text, getStyle());
}