當前位置: 首頁>>代碼示例>>Java>>正文


Java ProgressDialog.hide方法代碼示例

本文整理匯總了Java中android.app.ProgressDialog.hide方法的典型用法代碼示例。如果您正苦於以下問題:Java ProgressDialog.hide方法的具體用法?Java ProgressDialog.hide怎麽用?Java ProgressDialog.hide使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.app.ProgressDialog的用法示例。


在下文中一共展示了ProgressDialog.hide方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getAPI

import android.app.ProgressDialog; //導入方法依賴的package包/類
public void getAPI(){
    humansaid = messageET.getText().toString();
    jsonURL = "https://monigarr-monigarr-bots-v1.p.mashape.com/conversation_start.php?bot_id=1&say=" +humansaid+ "&format=json";

    final ProgressDialog pDialog = new ProgressDialog(ParseJSONObject.this);
    pDialog.setMessage("Loading...");
    pDialog.show();

    JsonObjectRequest jsonObjReq =
            new JsonObjectRequest(Method.GET,jsonURL, null,new Response.Listener<JSONObject>() {

                @Override
                public void onResponse(JSONObject response) {
                    mBotResponse = JSONParser.parseFeed(response);
                    yousaidTextView.setText("You Said :" + mBotResponse.getYouSaid());
                    botsaidTextView.setText("Bot Said :" + mBotResponse.getBotSaid());
                    Log.d(TAG, response.toString());
                    pDialog.dismiss();
                }
            }, new Response.ErrorListener() {

                @Override
                public void onErrorResponse(VolleyError error) {
                    VolleyLog.d(TAG, "Error: " + error.getMessage());
                    pDialog.hide();
                }
            }) {
                @Override
                public Map<String, String> getHeaders() throws AuthFailureError {
                    Map<String, String>  params = new HashMap<>();
                    params.put("X-Mashape-Key", developerkey);
                    params.put("Accept", "text/plain");
                    return params;
                }
            };

    Volley.newRequestQueue(getApplicationContext()).add(jsonObjReq);
}
 
開發者ID:monigarr,項目名稱:AIBotAPI,代碼行數:39,代碼來源:ParseJSONObject.java

示例2: onCreateView

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    view = inflater.inflate(R.layout.fragment_detail_product, container, false);

    android_id = Settings.Secure.getString(getActivity().getContentResolver(), Settings.Secure.ANDROID_ID);

    FirebaseApp.initializeApp(getActivity());
    firebaseDatabase = FirebaseDatabase.getInstance();
    databaseReference = firebaseDatabase.getReference("basket").child(android_id);

    btnAddBasket = (FlatButton) view.findViewById(R.id.btnAddBasket);
    btnAddBasket.setOnClickListener(this);
    progressDialog = new ProgressDialog(getActivity());
    progressDialog.setMessage("Ürün Yükleniyor..");
    progressDialog.show();
    progressDialog.hide();

    //OnSuucese kaydet

    sliderLayout = (SliderLayout) view.findViewById(R.id.slider);
    tvPrice = (TextView) view.findViewById(R.id.tvPrice);
    etPiece = (EditText) view.findViewById(R.id.etPiece);
    etPiece.addTextChangedListener(this);

    imageList = new ArrayList<>();
    productIdExstra = getArguments().getInt("id");

    urlDetail+=productIdExstra;

    Request request = new Request(getActivity(), urlDetail, com.android.volley.Request.Method.GET);
    request.requestVolley(this);

    return view;
}
 
開發者ID:yusufcakal,項目名稱:RestaurantApp,代碼行數:36,代碼來源:DetailPrıductFragment.java

示例3: onCreateView

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    view = inflater.inflate(R.layout.fragment_basket, container, false);

    android_id = Settings.Secure.getString(getActivity().getContentResolver(), Settings.Secure.ANDROID_ID);

    Request requestTemp = new Request(getActivity(), urlTempDesk, com.android.volley.Request.Method.POST);
    requestTemp.requestVolleyTempDesk(this, deskID);

    progressDialog = new ProgressDialog(getActivity());
    progressDialog.setMessage("Sepet Yükleniyor..");
    progressDialog.show();
    progressDialog.hide();

    tvBasketNull = (TextView) view.findViewById(R.id.tvBasketNull);
    lvBasket = (ListView) view.findViewById(R.id.lvBasket);
    btnOrder = (FlatButton) view.findViewById(R.id.btnOrder);
    btnOrder.setOnClickListener(this);

    SharedPreferences sharedpreferences = getActivity().getSharedPreferences("userBasket", Context.MODE_PRIVATE);
    userFlag = sharedpreferences.getBoolean("user",false);
    if (userFlag){
        btnOrder.setText("SİPARİŞ VER");
    }

    productBaskets = new ArrayList<>();
    firebaseDatabase = FirebaseDatabase.getInstance();
    databaseReference = firebaseDatabase.getReference("basket").child(android_id);
    databaseReference.addValueEventListener(this);

    return view;
}
 
開發者ID:yusufcakal,項目名稱:RestaurantApp,代碼行數:34,代碼來源:BasketFragment.java

示例4: onCreate

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);
    final ProgressDialog pDialog = new ProgressDialog(getActivity());
    pDialog.setMessage("Loading...");
    pDialog.show();

    JsonArrayRequest jsonArrayReq = new JsonArrayRequest(url,
            new Response.Listener<JSONArray>() {
                @Override
                public void onResponse(JSONArray response) {

                    Log.d(TAG,response.toString());
                    Log.d(TAG,"Len "+response.length());
                    mInfoList = JSONinfoParser.parseArrayFeed(response);

                    pDialog.hide();
                    MobileAdapter adapter = new MobileAdapter(mInfoList);
                    setListAdapter(adapter);



                }
            }, new Response.ErrorListener() {

        @Override
        public void onErrorResponse(VolleyError error) {
            VolleyLog.d(TAG, "Error: " + error.getMessage());
            // hide the progress dialog
            pDialog.hide();
        }
    });

    // Adding request to request queue
    Volley.newRequestQueue(getActivity()).add(jsonArrayReq);


}
 
開發者ID:mnirfan,項目名稱:FLSGuide,代碼行數:39,代碼來源:ListInfo.java

示例5: stopSpinner

import android.app.ProgressDialog; //導入方法依賴的package包/類
public static void stopSpinner(ProgressDialog progressDialog) {
    progressDialog.hide();
    progressDialog.dismiss();
}
 
開發者ID:stefanonicolai,項目名稱:AstronomyTourPadova,代碼行數:5,代碼來源:Utils.java


注:本文中的android.app.ProgressDialog.hide方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。