freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

【畢業(yè)設(shè)計(jì)】基于android平臺(tái)的rss在線新聞?dòng)嗛喓烷喿x器的設(shè)計(jì)與實(shí)現(xiàn)-資料下載頁

2025-01-18 13:53本頁面
  

【正文】 byte[] data = null。 try { data = (new URL(+(ImageUrl)).openStream())。 } catch (MalformedURLException e) { ()。 } catch (IOException e) { ()。 } (, data)。 (, (ReadCategoryId))。 (, (RssSource))。 (, (Description))。 (, (SubscriptionCount))。 ().insert( , values2)。 } } = ()。 } }catch (JSONException e) { ()。 ()。 } ()。 } 新聞列表的呈現(xiàn)RSSReader 新聞列表呈現(xiàn)啟動(dòng) Activity 是 reader 類。Activity 的入口點(diǎn)是 onCreate 方法,ContentsActivity 的用戶界面包括一個(gè) ListView和新聞內(nèi)容。ListView中 顯示 RSSFeed 中的 RSSItems 列表。點(diǎn)擊列表項(xiàng)后,則選擇讓列表隱藏,而內(nèi)容也顯示,后退時(shí)內(nèi)容頁隱藏,列表顯示。 protected void onCreate(Bundle savedInstanceState) { (savedInstanceState)。 mScroller = new Scroller(this)。 setContentView()。 Init()。 //初始化數(shù)據(jù) } private void Init() { sure = 0。 currentItem=0。 title = null。 iconBytes = null。 myLinearLayout = (LinearLayout) findViewById()。 myrelative1 = (LinearLayout) findViewById()。 myparams = new (, , 0f)。 titleparams = new (,45)。 myparams1 = new (32 , , 3f)。 myparams2 = new (, , 1f)。 landscapeparams = new (, )。 intent = getIntent()。 feedId1 = (, ((mCurScreen)))。//獲取從上一個(gè)Activity跳轉(zhuǎn)過來時(shí)傳入的值。 listView1 = (ListView) findViewById()。 (true)。 (new OnItemClickListener() { public void onItemClick(AdapterView? arg0, View arg1, int arg2, long arg3) { // TODO Autogenerated method stub applyRotation(1, 0, 90)。 if(arg2=()){ ()。 cursor = getContentResolver().query( , null, + =?, new String[] { (feedId1) }, new StringBuilder( ).append().append().toString())。 if (cursor == null) return。// 從數(shù)據(jù)庫中將所有關(guān)于該新聞?lì)l道的新聞都查詢出來,然后將新聞頁面通過webview動(dòng)態(tài)加載到布局當(dāng)中。 while(()){ idPosition=()。 int newtitlePosition = ()。 int dateposition = ()。 Uri myUri = ((idPosition))。 LinearLayout myrl = new LinearLayout()。 ()。 ()。 AlwaysMarqueeTextView mytextv = new AlwaysMarqueeTextView()。 ((newtitlePosition))。 (20, 0, 20, 0)。 (true)。 ()。 ()。 (25f)。 (true)。 ()。 (mytextv, titleparams)。 LinearLayout timell = new LinearLayout()。 ()。 (new (,))。 TextView timetextv = new TextView()。 (new (,35))。 ( 10, 5, 0, 5 )。 (().format(new Date((dateposition))))。 ImageView imageView = new ImageView()。 (new (25,25))。 ()。 (10, 15, 10, 0)。 (5, 2, 10, 5)。34 (imageView)。 (timetextv)。 (timell)。 View myview = new View()。 (0, 2,0,10)。 ()。 (new (, 2))。 (myview)。 WebView newwebview = new WebView()。 // ().getDefaultFontSize().blacktextonwhite (newwebview, layoutParams)。 reload(newwebview, myUri)。 (onKeyEventListener)。 (onTouchListener)。 (myrl,layoutParams)。 } } ()。 (arg2,true)。 新聞頁面的顯示及分享(1)新聞信息的顯示新聞信息的顯示主要是從數(shù)據(jù)庫當(dāng)中讀取數(shù)據(jù),給其定義CSS樣式等。核心代碼如下: public void reload(WebView webView,Uri uri) { if (_id != null amp。amp。 (())) { 如果查詢不到相關(guān)的新聞,直接返回。 return。 } _id = ()。 i++。 ContentValues values = new ContentValues()。 (, ())。 Cursor entryCursor =null。 try { entryCursor = getContentResolver().query(uri, null, null, null, null)。 if (()) { String abstractText = (abstractPosition)。 if ((readDatePosition)) { getContentResolver().update( uri, values, new StringBuilder() .append().toString(), null)。 } if (abstractText == null) { String link = (linkPosition)。 ()。 finish()。 startActivity(new Intent(, (link)))。 } else { setTitle((titlePosition))。 feedId = (feedIdPosition)。 if (canShowIcon) { if (iconBytes != null amp。amp。 0) { setFeatureDrawable( , new BitmapDrawable(BitmapFactory .decodeByteArray(iconBytes, 0,36 )))。 } else { abstractText = ( , () + )。 SharedPreferences preferences = PreferenceManager .getDefaultSharedPreferences(this)。 if ((, false)) { abstractText = ( , )。 } abstractText = ( , )。 // remove // all // 對(duì)webview里的樣式做定義,包括字體大小,顏色等,新聞標(biāo)題的大小,小標(biāo)題的大小。 int fontsize = (( , ))。 if ((, false)) { if (fontsize 0) { ( null, new StringBuilder(FONTSIZE_START) .append(fontsize) .append(FONTSIZE_MIDDLE) .append(abstractText) .append(FONTSIZE_END).toString(), TEXT_HTML, UTF8, null)。 } else { (null, new StringBuilder(CSS).append(BODY_START) .append(abstractText).append(BODY_END) .toString(), TEXT_HTML, UTF8, null)。 } } else { if (fontsize 0) { ( null, new StringBuilder(FONT_FONTSIZE_START) .append(fontsize) .append(FONTSIZE_MIDDLE) .append(abstractText).append(FONT_END) .toString(), TEXT_HTML, UTF8, null)。 } else { ( null, new StringBuilder(FONT_START) .append(abstractText).append(BODY_END) .toString(), TEXT_HTML, UTF8, null)。 }// ((66, 55, 99))。 } link = (linkPosition)。 if (link != null amp。amp。 () 0) {
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1