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

          搜索

          •  

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 罗定市| 安徽省| 天长市| 富川| 金华市| 赞皇县| 江陵县| 建瓯市| 陆川县| 巴彦县| 云安县| 封丘县| 蒙阴县| 鄂温| 苍南县| 名山县| 腾冲县| 凭祥市| 衡山县| 漯河市| 苍南县| 车险| 临夏市| 香格里拉县| 巴林左旗| 万荣县| 五家渠市| 萨迦县| 古丈县| 侯马市| 灵山县| 乌兰浩特市| 淅川县| 盈江县| 益阳市| 罗江县| 文山县| 左云县| 大连市| 木兰县| 五大连池市|