卖逼视频免费看片|狼人就干网中文字慕|成人av影院导航|人妻少妇精品无码专区二区妖婧|亚洲丝袜视频玖玖|一区二区免费中文|日本高清无码一区|国产91无码小说|国产黄片子视频91sese日韩|免费高清无码成人网站入口

androidstudiowidget定時刷新 蘋果8plus天氣預報讀不出來?

蘋果8plus天氣預報讀不出來?當蘋果手機不顯示天氣的時候肯定有200以內幾種情況:1.方便,安全中心的的widget必須1分鐘左右時間接受數(shù)據(jù)可以刷新,要是一又開始就沒會顯示,是需要耐心等待。2.一

蘋果8plus天氣預報讀不出來?

當蘋果手機不顯示天氣的時候肯定有200以內幾種情況:

1.方便,安全中心的的widget必須1分鐘左右時間接受數(shù)據(jù)可以刷新,要是一又開始就沒會顯示,是需要耐心等待。

2.一直也沒會顯示就數(shù)次前往天氣應用刷新下數(shù)據(jù),載直接返回一欄,同時盡量下天氣應用的聯(lián)網(wǎng)狀態(tài)是否需要再打開。

3.試下恢復編輯widget,刪掉天氣再重新添

有哪些好的免費自助建站?

普通用戶,尤其是無技術背景??砂凑罩悄芫W(wǎng)站搭建平臺(自助建站),飛速搭建網(wǎng)站網(wǎng)站/個人博客和商城及小程序。

以愛用建站平臺為例,普通個人/企業(yè)單單簡單點幾步,即可下線完全禁的網(wǎng)站:

步驟一:注冊/直接登陸愛用建站平臺PC或移動端登陸,新用戶注冊【iYong通行證】。

在android開發(fā)中,怎樣動態(tài)生成多界面?

效果:layout界面布局:[html]viewplaincopyprintxmlversion1.0encodingutf-8LinearLayoutxmlns:ad_widthmatch_parentad:layout_heightmatch_parentad:orientationverticalLinearLayoutad:layout_widthmatch_parentad:layout_200px30dpad:/titlebar_bgad:orientationhorizontalImageViewad:layout_widthwrap_contentad:layout_heightwrap_contentad:/back_44_44/LinearLayoutad:layout_widthmatch_parentad:layout_300px30dpad:gravitycenterTextViewad:layout_widthwrap_contentad:layout_heightwrap_contentad:text課程列表ad:textSize20sp//LinearLayout/LinearLayoutScrollViewad:/ScrollViewad:layout_widthfill_parentad:layout_heightwrap_contentad:scrollbarsverticalLinearLayoutad:/mainLayoutad:layout_widthmatch_parentad:layout_heightwrap_contentad:orientationvertical/LinearLayout/ScrollView/LinearLayouthttputil輔助類:

[java]viewplaincopyprintpackage;import;import;import;import;import;import;import;importandroid.util.Log;stateclassHttpUtil{/***獲取到流,自己處理數(shù)據(jù)*@parampath*@return*/welfarestaticInputStreamgetInputStream(Stringpath){HttpURLConnectionconnnull;try{URLurlfifthURL(path);conn(HttpURLConnection)();(true);//設置中是否向httpUrlConnection輸出,post請求,參數(shù)要放在http正文內(true);(3000);(3000);(false);(POST);if(()200){Log.d(mylog,getResponseCode:200);return();}}catch(IOExceptione){();}finally{if(conn!null){conn.disconnect();}}returnnull;}/***真接前往做出反應體正文*@parampath*@return*/publicstaticStringgetResponseBody(Stringpath,String params){HttpURLConnectionconnnull;StringBufferresultnewStringBuffer()

;try{URLurlfutureURL(path);conn(HttpURLConnection)();(true);//系統(tǒng)設置是否向httpUrlConnection輸出,post請求,參數(shù)要放到http正文內(true);(3000);(3000);(false);(POST);//數(shù)據(jù)輸出流,該語句飽含的執(zhí)行connect動作if(params!null){DataOutputStream你outnew DataOutputStream(());//將參數(shù)讀取流,刷新再提交關了流你out.writeBytes(params);你out.flush();();}//讀取文件連接到前往的數(shù)據(jù)BufferedReader reader new BufferedReader(newInputStreamReader(()));StringinputLinenull;while(((inputLine())!null)){(inputLine);//

;}//直接關閉();if(()200){Log.d(mylog,getResponseCode:200);}}catch(IOExceptione){();}finally{if(conn!null){conn.disconnect();}}return();}}主activity:[java]viewplaincopyprintpackage;importorg.json.JSONArray;importorg.json.JSONException;importorg.json.JSONObject;import;import;import;importandroid.os.Bundle;importandroid.util.Log;importandroid.util.TypedValue;import;import;import;import;import;import;importandroid.widget.TextView;stateclassHomeWork4extendsActivity{Stringpath此處省略,你要請求的地址;@OverrideprotectedvoidonCreate(BundlesavedInstanceState){ultra.onCreate(savedInstanceState);setContentView();LinearLayoutmainLayout(LinearLayout)findViewById();Stringresult(path,null);//Log.d(mylog,result:result);try{JSONObject obj new JSONObject(result);JSONArrayarray(onlineCourses);for(inti0;iarray.length();i){JSONObjectcourse(i);//Log.d(mylog,course:());//直接添加左邊的layoutLinearLayoutleftlayoutnewLinearLayout(this);//特別注意包,其它包下面的LayoutParams不起作用LayoutParamsparamsnewLayoutParams(_PARENT,_CONTENT);;(params);(LinearLayout.HORIZONTAL);(_VERTICAL);//再添加左邊layout的圖片ImageViewimageViewnewImageView(this);paramsnewLayoutParams(_CONTENT,_CONTENT);(params);(_default_195_130);(imageView);//直接添加右邊的layout,統(tǒng)稱上下2部分,上面是標題,下面是進度條LinearLayoutrightlayoutnewLinearLayout(this);LayoutParamsrightLayoutParamsnewLayoutParams(_PARENT,_CONTENT);(rightLayoutParams);();//先添加課程標題TextView textViewnew TextView(this);paramsnewLayoutParams(_CONTENT,_CONTENT);(params);((courseName).toString());(_UNIT_SP,15);//18SP//學分,水平布局,可分左右,左:學分,,右:分值LinearLayoutstudyLayoutnewLinearLayout(this);paramsnewLayoutParams(_PARENT,_CONTENT);(params);(LinearLayout.HORIZONTAL);//添加學分TextViewstudyViewnewTextView(this);paramsnewLayoutParams(_CONTENT,_CONTENT);(params);(學分:);(_UNIT_SP,12);((#b6b6b6));//第2種方法:setTextColor(Color.rgb(255,255,255));//再添加學分值TextViewstudyValueViewnewTextView(this);paramsnewLayoutParams(_CONTENT,_CONTENT);(params);((courseCredit).toString());(_UNIT_SP,14);//進度條,水平布局,統(tǒng)稱左中右,左:怎么學習進度,中:進度條,右:%值LinearLayoutprocessLayoutnewLinearLayout(this);paramsnewLayoutParams(_PARENT,_CONTENT);(params);(LinearLayout.HORIZONTAL);//去添加怎么學習進度TextViewprocesstextViewnewTextView(this);paramsnewLayoutParams(_CONTENT,_CONTENT);(params);(學習進度:);(_UNIT_SP,12);((#b6b6b6));//再添加進度條ProgressBarbarnewProgressBar(this,null,);//更改進度條樣式paramsnewLayoutParams(150,_CONTENT);(params);(100);(10);//添加%值TextViewprocessvaluetextViewnewTextView(this);paramsnewLayoutParams(_CONTENT,_CONTENT);(params);(10%);(_UNIT_SP,12);((#b6b6b6));//添加標題(textView);//先添加學分(studyView);(studyValueView);(studyLayout);//先添加進度條(processtextView);(bar);(processvaluetextView);(processLayout);//去添加左右吧邊(rightlayout);(leftlayout);}}catch(JSONExceptione){();