posts - 93,  comments - 2,  trackbacks - 0
          abe
          private Drawable img_time_filter,img_time_filter_selected ;
          //過(guò)濾器TextView中顯示的圖片
          img_time_filter = getResources().getDrawable(R.drawable.time_filter);
          //調(diào)用setCompoundDrawables時(shí),必須調(diào)用Drawable.setBounds()方法,否則圖片不顯示
          img_time_filter.setBounds(0, 0, img_time_filter.getMinimumWidth(), img_time_filter.getMinimumHeight());
          img_time_filter_selected = getResources().getDrawable(R.drawable.time_filter_selected);
          img_time_filter_selected.setBounds(0, 0, img_time_filter_selected.getMinimumWidth(), img_time_filter_selected.getMinimumHeight());
          tv_filterTime.setCompoundDrawables(img_time_filter_selected, null, null, null);
          tv_filterTime.setTextColor(getResources().getColor(R.color.white));
          rl_filterTime.setBackgroundColor(getResources().getColor(R.color.red));

          tv_filterTime.setCompoundDrawables(img_time_filter, null, null, null);
          rl_filterTime.setBackgroundColor(getResources().getColor(R.color.white)); 
          lv_filterTime.setVisibility(View.INVISIBLE);
          posted on 2015-07-09 00:04 Terry Zou 閱讀(219) 評(píng)論(0)  編輯  收藏 所屬分類: Android
          <2015年7月>
          2829301234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊(cè)

          收藏夾

          Java

          搜索

          •  

          最新隨筆

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 札达县| 胶州市| 绵阳市| 上犹县| 日照市| 南江县| 金乡县| 疏附县| 天津市| 岳阳县| 贞丰县| 台北市| 隆化县| 沙洋县| 新安县| 蓬莱市| 崇明县| 左云县| 澳门| 崇信县| 绥棱县| 沽源县| 青海省| 大田县| 武强县| 富顺县| 兰西县| 揭西县| 冀州市| 孝感市| 长兴县| 广安市| 清原| 灌南县| 贵定县| 明星| 嫩江县| 抚顺县| 广宁县| 河池市| 原阳县|