posts - 93,  comments - 2,  trackbacks - 0
          abe
          private Drawable img_time_filter,img_time_filter_selected ;
          //過濾器TextView中顯示的圖片
          img_time_filter = getResources().getDrawable(R.drawable.time_filter);
          //調用setCompoundDrawables時,必須調用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) 評論(0)  編輯  收藏 所屬分類: Android
          <2015年7月>
          2829301234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          Java

          搜索

          •  

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 宿州市| 青铜峡市| 桓台县| 洛扎县| 阿坝| 石家庄市| 班戈县| 晋州市| 克拉玛依市| 钟山县| 三亚市| 澄江县| 乃东县| 腾冲县| 南雄市| 偃师市| 郴州市| 红原县| 秭归县| 沈阳市| 乌兰察布市| 天门市| 安达市| 丹凤县| 沂南县| 海淀区| 咸宁市| 阿拉善左旗| 同德县| 宿州市| 普定县| 抚顺县| 铅山县| 绿春县| 河北区| 乌拉特中旗| 繁昌县| 大渡口区| 雷山县| 宕昌县| 红桥区|