android 红点BadgeView与RadioButton结合使用的问题

来源:互联网 发布:淘宝包邮怎么设置 编辑:程序博客网 时间:2024/06/09 15:55
大多android应用都有一个底部菜单功能,点击其中一个按钮,切换到不同的界面。有很多实现方法,比较简单的是使用 tabhost+

RadioGroup来实现。还有一般购物app,都有一个购物车按钮,当你买商品时候,购物车右上角显示一个购买数量提醒信息,实现方法也比较多。

下面就用其中一种方式实现上面的功能:切换按钮+提醒信息

如图:



下面是3个切换按钮,点击不同的按钮切换到不同页面,已加载的页面,不会呗重新加载。在首页按钮右上角有一个提醒信息,比如有新的信息,新的通知,可以显示在这里,提醒用户。这个功能使用的是别人写好的一个类,使用很简单方便,有多个方法可以实现不同的提醒效果,背景,字体颜色大小,间距,显示位置,都是可以自己设置的。


代码:

主界面代码 MainActivity.java:

<a target=_blank id="L1" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;">  1</a><a target=_blank id="L2" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;">  2</a><a target=_blank id="L3" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;">  3</a><a target=_blank id="L4" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;">  4</a><a target=_blank id="L5" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;">  5</a><a target=_blank id="L6" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;">  6</a><a target=_blank id="L7" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;">  7</a><a target=_blank id="L8" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;">  8</a><a target=_blank id="L9" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;">  9</a><a target=_blank id="L10" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a><a target=_blank id="L11" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a><a target=_blank id="L12" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a><a target=_blank id="L13" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a><a target=_blank id="L14" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a><a target=_blank id="L15" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a><a target=_blank id="L16" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;"> 16</a><a target=_blank id="L17" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;"> 17</a><a target=_blank id="L18" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;"> 18</a><a target=_blank id="L19" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;"> 19</a><a target=_blank id="L20" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;"> 20</a><a target=_blank id="L21" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;"> 21</a><a target=_blank id="L22" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;"> 22</a><a target=_blank id="L23" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;"> 23</a><a target=_blank id="L24" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;"> 24</a><a target=_blank id="L25" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;"> 25</a><a target=_blank id="L26" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;"> 26</a><a target=_blank id="L27" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;"> 27</a><a target=_blank id="L28" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;"> 28</a><a target=_blank id="L29" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;"> 29</a><a target=_blank id="L30" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;"> 30</a><a target=_blank id="L31" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L31" rel="#L31" style="color: rgb(102, 102, 102); text-decoration: none;"> 31</a><a target=_blank id="L32" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L32" rel="#L32" style="color: rgb(102, 102, 102); text-decoration: none;"> 32</a><a target=_blank id="L33" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L33" rel="#L33" style="color: rgb(102, 102, 102); text-decoration: none;"> 33</a><a target=_blank id="L34" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L34" rel="#L34" style="color: rgb(102, 102, 102); text-decoration: none;"> 34</a><a target=_blank id="L35" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L35" rel="#L35" style="color: rgb(102, 102, 102); text-decoration: none;"> 35</a><a target=_blank id="L36" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L36" rel="#L36" style="color: rgb(102, 102, 102); text-decoration: none;"> 36</a><a target=_blank id="L37" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L37" rel="#L37" style="color: rgb(102, 102, 102); text-decoration: none;"> 37</a><a target=_blank id="L38" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L38" rel="#L38" style="color: rgb(102, 102, 102); text-decoration: none;"> 38</a><a target=_blank id="L39" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L39" rel="#L39" style="color: rgb(102, 102, 102); text-decoration: none;"> 39</a><a target=_blank id="L40" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L40" rel="#L40" style="color: rgb(102, 102, 102); text-decoration: none;"> 40</a><a target=_blank id="L41" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L41" rel="#L41" style="color: rgb(102, 102, 102); text-decoration: none;"> 41</a><a target=_blank id="L42" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L42" rel="#L42" style="color: rgb(102, 102, 102); text-decoration: none;"> 42</a><a target=_blank id="L43" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L43" rel="#L43" style="color: rgb(102, 102, 102); text-decoration: none;"> 43</a><a target=_blank id="L44" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L44" rel="#L44" style="color: rgb(102, 102, 102); text-decoration: none;"> 44</a><a target=_blank id="L45" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L45" rel="#L45" style="color: rgb(102, 102, 102); text-decoration: none;"> 45</a><a target=_blank id="L46" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L46" rel="#L46" style="color: rgb(102, 102, 102); text-decoration: none;"> 46</a><a target=_blank id="L47" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L47" rel="#L47" style="color: rgb(102, 102, 102); text-decoration: none;"> 47</a><a target=_blank id="L48" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L48" rel="#L48" style="color: rgb(102, 102, 102); text-decoration: none;"> 48</a><a target=_blank id="L49" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L49" rel="#L49" style="color: rgb(102, 102, 102); text-decoration: none;"> 49</a><a target=_blank id="L50" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L50" rel="#L50" style="color: rgb(102, 102, 102); text-decoration: none;"> 50</a><a target=_blank id="L51" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L51" rel="#L51" style="color: rgb(102, 102, 102); text-decoration: none;"> 51</a><a target=_blank id="L52" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L52" rel="#L52" style="color: rgb(102, 102, 102); text-decoration: none;"> 52</a><a target=_blank id="L53" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L53" rel="#L53" style="color: rgb(102, 102, 102); text-decoration: none;"> 53</a><a target=_blank id="L54" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L54" rel="#L54" style="color: rgb(102, 102, 102); text-decoration: none;"> 54</a><a target=_blank id="L55" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L55" rel="#L55" style="color: rgb(102, 102, 102); text-decoration: none;"> 55</a><a target=_blank id="L56" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L56" rel="#L56" style="color: rgb(102, 102, 102); text-decoration: none;"> 56</a><a target=_blank id="L57" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L57" rel="#L57" style="color: rgb(102, 102, 102); text-decoration: none;"> 57</a><a target=_blank id="L58" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L58" rel="#L58" style="color: rgb(102, 102, 102); text-decoration: none;"> 58</a><a target=_blank id="L59" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L59" rel="#L59" style="color: rgb(102, 102, 102); text-decoration: none;"> 59</a><a target=_blank id="L60" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L60" rel="#L60" style="color: rgb(102, 102, 102); text-decoration: none;"> 60</a><a target=_blank id="L61" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L61" rel="#L61" style="color: rgb(102, 102, 102); text-decoration: none;"> 61</a><a target=_blank id="L62" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L62" rel="#L62" style="color: rgb(102, 102, 102); text-decoration: none;"> 62</a><a target=_blank id="L63" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L63" rel="#L63" style="color: rgb(102, 102, 102); text-decoration: none;"> 63</a><a target=_blank id="L64" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L64" rel="#L64" style="color: rgb(102, 102, 102); text-decoration: none;"> 64</a><a target=_blank id="L65" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L65" rel="#L65" style="color: rgb(102, 102, 102); text-decoration: none;"> 65</a><a target=_blank id="L66" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L66" rel="#L66" style="color: rgb(102, 102, 102); text-decoration: none;"> 66</a><a target=_blank id="L67" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L67" rel="#L67" style="color: rgb(102, 102, 102); text-decoration: none;"> 67</a><a target=_blank id="L68" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L68" rel="#L68" style="color: rgb(102, 102, 102); text-decoration: none;"> 68</a><a target=_blank id="L69" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L69" rel="#L69" style="color: rgb(102, 102, 102); text-decoration: none;"> 69</a><a target=_blank id="L70" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L70" rel="#L70" style="color: rgb(102, 102, 102); text-decoration: none;"> 70</a><a target=_blank id="L71" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L71" rel="#L71" style="color: rgb(102, 102, 102); text-decoration: none;"> 71</a><a target=_blank id="L72" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L72" rel="#L72" style="color: rgb(102, 102, 102); text-decoration: none;"> 72</a><a target=_blank id="L73" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L73" rel="#L73" style="color: rgb(102, 102, 102); text-decoration: none;"> 73</a><a target=_blank id="L74" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L74" rel="#L74" style="color: rgb(102, 102, 102); text-decoration: none;"> 74</a><a target=_blank id="L75" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L75" rel="#L75" style="color: rgb(102, 102, 102); text-decoration: none;"> 75</a><a target=_blank id="L76" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L76" rel="#L76" style="color: rgb(102, 102, 102); text-decoration: none;"> 76</a><a target=_blank id="L77" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L77" rel="#L77" style="color: rgb(102, 102, 102); text-decoration: none;"> 77</a><a target=_blank id="L78" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L78" rel="#L78" style="color: rgb(102, 102, 102); text-decoration: none;"> 78</a><a target=_blank id="L79" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L79" rel="#L79" style="color: rgb(102, 102, 102); text-decoration: none;"> 79</a><a target=_blank id="L80" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L80" rel="#L80" style="color: rgb(102, 102, 102); text-decoration: none;"> 80</a><a target=_blank id="L81" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L81" rel="#L81" style="color: rgb(102, 102, 102); text-decoration: none;"> 81</a><a target=_blank id="L82" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L82" rel="#L82" style="color: rgb(102, 102, 102); text-decoration: none;"> 82</a><a target=_blank id="L83" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L83" rel="#L83" style="color: rgb(102, 102, 102); text-decoration: none;"> 83</a><a target=_blank id="L84" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L84" rel="#L84" style="color: rgb(102, 102, 102); text-decoration: none;"> 84</a><a target=_blank id="L85" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L85" rel="#L85" style="color: rgb(102, 102, 102); text-decoration: none;"> 85</a><a target=_blank id="L86" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L86" rel="#L86" style="color: rgb(102, 102, 102); text-decoration: none;"> 86</a><a target=_blank id="L87" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L87" rel="#L87" style="color: rgb(102, 102, 102); text-decoration: none;"> 87</a><a target=_blank id="L88" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L88" rel="#L88" style="color: rgb(102, 102, 102); text-decoration: none;"> 88</a><a target=_blank id="L89" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L89" rel="#L89" style="color: rgb(102, 102, 102); text-decoration: none;"> 89</a><a target=_blank id="L90" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L90" rel="#L90" style="color: rgb(102, 102, 102); text-decoration: none;"> 90</a><a target=_blank id="L91" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L91" rel="#L91" style="color: rgb(102, 102, 102); text-decoration: none;"> 91</a><a target=_blank id="L92" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L92" rel="#L92" style="color: rgb(102, 102, 102); text-decoration: none;"> 92</a><a target=_blank id="L93" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L93" rel="#L93" style="color: rgb(102, 102, 102); text-decoration: none;"> 93</a><a target=_blank id="L94" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L94" rel="#L94" style="color: rgb(102, 102, 102); text-decoration: none;"> 94</a>
package com.hck.ui;
import android.app.TabActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.TabWidget;
import com.hck.tabhost.R;
public class MainActivity extends TabActivity implements
OnCheckedChangeListener {
private static final String HOME = "home";
private static final String LIFT = "lift";
private static final String MORE = "more";
private TabHost tabHost; // tabhost对象
private TabSpec tabSpec1, tabSpec2, tabSpec3; // 现象卡对象
public Button button1;// 用来显示提醒信息
private RadioGroup radioGroup;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
initView();
addSpec();
setListener();
}
private void initView() {
radioGroup = (RadioGroup) findViewById(R.id.RadioG);
tabHost = this.getTabHost();
button1 = (Button) findViewById(R.id.bt);
remind(button1);
}
private void remind(View view) { //BadgeView的具体使用
BadgeView badge1 = new BadgeView(this, button1);// 创建一个BadgeView对象,view为你需要显示提醒的控件
badge1.setText("12"); // 需要显示的提醒类容
badge1.setBadgePosition(BadgeView.POSITION_TOP_RIGHT);// 显示的位置.右上角,BadgeView.POSITION_BOTTOM_LEFT,下左,还有其他几个属性
badge1.setTextColor(Color.WHITE); // 文本颜色
badge1.setBadgeBackgroundColor(Color.RED); // 提醒信息的背景颜色,自己设置
badge1.setTextSize(12); // 文本大小
//badge1.setBadgeMargin(3, 3); // 水平和竖直方向的间距
badge1.setBadgeMargin(5); //各边间隔
// badge1.toggle(); //显示效果,如果已经显示,则影藏,如果影藏,则显示
badge1.show();// 只有显示
// badge1.hide();//影藏显示
}
private void setListener() { // 设置点击监听事件
radioGroup.setOnCheckedChangeListener(this);
}
private void addSpec() {
tabSpec1 = tabHost.newTabSpec(HOME).setIndicator(HOME)
.setContent(new Intent(this, MainLeft.class)); // 点击第一个button,跳转到哪个activity(点击跳到MainLeft界面)
tabHost.addTab(tabSpec1);
tabSpec2 = tabHost.newTabSpec(LIFT).setIndicator(LIFT)
.setContent(new Intent(this, MainCenter.class));// 点击第2个button,跳转到哪个activity
tabHost.addTab(tabSpec2);
tabSpec3 = tabHost.newTabSpec(MORE).setIndicator(MORE)
.setContent(new Intent(this, MainRight.class));// 点击第3个button,跳转到哪个activity
tabHost.addTab(tabSpec3);
}
@Override
public void onCheckedChanged(RadioGroup group, int checkedId) { // 点击按钮事件
switch (checkedId) {
case R.id.home_id: // 点击第一个按钮
tabHost.setCurrentTab(0); // 显示第一个选项卡,即跳到MainLeft
break;
case R.id.lift_id:
tabHost.setCurrentTab(1);// 跳到MainCenter
break;
case R.id.more_id:
tabHost.setCurrentTab(2);// 跳到MainRight
break;
}
}
}
 来自CODE的代码片
snippet_file_0.txt

代码有详细注解,就不多解释了。里面的button1,是用来显示提醒信息的。开始的时候,没有用该button,而是直接用了首页这个RadioButton,可以显示提醒信息,但是,界面的切换会失效。后面只能用了一个透明的button覆盖在上面,用来显示信息,而不是用RadioButton来显示。(大家可能没明白我在说什么,请看我的另外一篇文章,android实现提醒信息:链接)

提醒信息的实现主要是方法:remind()方法实现,配置好相应的属性,就ok了。



切换界面代码:

MainCenter.java

<a target=_blank id="L1" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;">  1</a><a target=_blank id="L2" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;">  2</a><a target=_blank id="L3" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;">  3</a><a target=_blank id="L4" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;">  4</a><a target=_blank id="L5" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;">  5</a><a target=_blank id="L6" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;">  6</a><a target=_blank id="L7" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;">  7</a><a target=_blank id="L8" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;">  8</a><a target=_blank id="L9" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;">  9</a><a target=_blank id="L10" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a><a target=_blank id="L11" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a><a target=_blank id="L12" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a><a target=_blank id="L13" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a><a target=_blank id="L14" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a><a target=_blank id="L15" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a>
package com.hck.ui;
import com.hck.tabhost.R;
import android.app.Activity;
import android.os.Bundle;
public class MainCenter extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main_center);
}
}
 来自CODE的代码片
snippet_file_0.txt
其他2个代码一样,就加载了一个布局文件而已



BadgeView.java :

别人写的一个类,用来实现提醒信息的,相当好用,具体怎么实现什么的,没去看了。知道怎么用,也差不多了。

(用法在MainActivity里面的remind()方法)。

<a target=_blank id="L1" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;">   1</a><a target=_blank id="L2" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;">   2</a><a target=_blank id="L3" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;">   3</a><a target=_blank id="L4" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;">   4</a><a target=_blank id="L5" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;">   5</a><a target=_blank id="L6" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;">   6</a><a target=_blank id="L7" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;">   7</a><a target=_blank id="L8" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;">   8</a><a target=_blank id="L9" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;">   9</a><a target=_blank id="L10" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;">  10</a><a target=_blank id="L11" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;">  11</a><a target=_blank id="L12" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;">  12</a><a target=_blank id="L13" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;">  13</a><a target=_blank id="L14" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;">  14</a><a target=_blank id="L15" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;">  15</a><a target=_blank id="L16" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;">  16</a><a target=_blank id="L17" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;">  17</a><a target=_blank id="L18" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;">  18</a><a target=_blank id="L19" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;">  19</a><a target=_blank id="L20" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;">  20</a><a target=_blank id="L21" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;">  21</a><a target=_blank id="L22" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;">  22</a><a target=_blank id="L23" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;">  23</a><a target=_blank id="L24" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;">  24</a><a target=_blank id="L25" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;">  25</a><a target=_blank id="L26" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;">  26</a><a target=_blank id="L27" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;">  27</a><a target=_blank id="L28" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;">  28</a><a target=_blank id="L29" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;">  29</a><a target=_blank id="L30" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;">  30</a><a target=_blank id="L31" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L31" rel="#L31" style="color: rgb(102, 102, 102); text-decoration: none;">  31</a><a target=_blank id="L32" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L32" rel="#L32" style="color: rgb(102, 102, 102); text-decoration: none;">  32</a><a target=_blank id="L33" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L33" rel="#L33" style="color: rgb(102, 102, 102); text-decoration: none;">  33</a><a target=_blank id="L34" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L34" rel="#L34" style="color: rgb(102, 102, 102); text-decoration: none;">  34</a><a target=_blank id="L35" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L35" rel="#L35" style="color: rgb(102, 102, 102); text-decoration: none;">  35</a><a target=_blank id="L36" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L36" rel="#L36" style="color: rgb(102, 102, 102); text-decoration: none;">  36</a><a target=_blank id="L37" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L37" rel="#L37" style="color: rgb(102, 102, 102); text-decoration: none;">  37</a><a target=_blank id="L38" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L38" rel="#L38" style="color: rgb(102, 102, 102); text-decoration: none;">  38</a><a target=_blank id="L39" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L39" rel="#L39" style="color: rgb(102, 102, 102); text-decoration: none;">  39</a><a target=_blank id="L40" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L40" rel="#L40" style="color: rgb(102, 102, 102); text-decoration: none;">  40</a><a target=_blank id="L41" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L41" rel="#L41" style="color: rgb(102, 102, 102); text-decoration: none;">  41</a><a target=_blank id="L42" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L42" rel="#L42" style="color: rgb(102, 102, 102); text-decoration: none;">  42</a><a target=_blank id="L43" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L43" rel="#L43" style="color: rgb(102, 102, 102); text-decoration: none;">  43</a><a target=_blank id="L44" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L44" rel="#L44" style="color: rgb(102, 102, 102); text-decoration: none;">  44</a><a target=_blank id="L45" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L45" rel="#L45" style="color: rgb(102, 102, 102); text-decoration: none;">  45</a><a target=_blank id="L46" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L46" rel="#L46" style="color: rgb(102, 102, 102); text-decoration: none;">  46</a><a target=_blank id="L47" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L47" rel="#L47" style="color: rgb(102, 102, 102); text-decoration: none;">  47</a><a target=_blank id="L48" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L48" rel="#L48" style="color: rgb(102, 102, 102); text-decoration: none;">  48</a><a target=_blank id="L49" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L49" rel="#L49" style="color: rgb(102, 102, 102); text-decoration: none;">  49</a><a target=_blank id="L50" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L50" rel="#L50" style="color: rgb(102, 102, 102); text-decoration: none;">  50</a><a target=_blank id="L51" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L51" rel="#L51" style="color: rgb(102, 102, 102); text-decoration: none;">  51</a><a target=_blank id="L52" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L52" rel="#L52" style="color: rgb(102, 102, 102); text-decoration: none;">  52</a><a target=_blank id="L53" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L53" rel="#L53" style="color: rgb(102, 102, 102); text-decoration: none;">  53</a><a target=_blank id="L54" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L54" rel="#L54" style="color: rgb(102, 102, 102); text-decoration: none;">  54</a><a target=_blank id="L55" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L55" rel="#L55" style="color: rgb(102, 102, 102); text-decoration: none;">  55</a><a target=_blank id="L56" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L56" rel="#L56" style="color: rgb(102, 102, 102); text-decoration: none;">  56</a><a target=_blank id="L57" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L57" rel="#L57" style="color: rgb(102, 102, 102); text-decoration: none;">  57</a><a target=_blank id="L58" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L58" rel="#L58" style="color: rgb(102, 102, 102); text-decoration: none;">  58</a><a target=_blank id="L59" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L59" rel="#L59" style="color: rgb(102, 102, 102); text-decoration: none;">  59</a><a target=_blank id="L60" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L60" rel="#L60" style="color: rgb(102, 102, 102); text-decoration: none;">  60</a><a target=_blank id="L61" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L61" rel="#L61" style="color: rgb(102, 102, 102); text-decoration: none;">  61</a><a target=_blank id="L62" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L62" rel="#L62" style="color: rgb(102, 102, 102); text-decoration: none;">  62</a><a target=_blank id="L63" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L63" rel="#L63" style="color: rgb(102, 102, 102); text-decoration: none;">  63</a><a target=_blank id="L64" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L64" rel="#L64" style="color: rgb(102, 102, 102); text-decoration: none;">  64</a><a target=_blank id="L65" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L65" rel="#L65" style="color: rgb(102, 102, 102); text-decoration: none;">  65</a><a target=_blank id="L66" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L66" rel="#L66" style="color: rgb(102, 102, 102); text-decoration: none;">  66</a><a target=_blank id="L67" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L67" rel="#L67" style="color: rgb(102, 102, 102); text-decoration: none;">  67</a><a target=_blank id="L68" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L68" rel="#L68" style="color: rgb(102, 102, 102); text-decoration: none;">  68</a><a target=_blank id="L69" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L69" rel="#L69" style="color: rgb(102, 102, 102); text-decoration: none;">  69</a><a target=_blank id="L70" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L70" rel="#L70" style="color: rgb(102, 102, 102); text-decoration: none;">  70</a><a target=_blank id="L71" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L71" rel="#L71" style="color: rgb(102, 102, 102); text-decoration: none;">  71</a><a target=_blank id="L72" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L72" rel="#L72" style="color: rgb(102, 102, 102); text-decoration: none;">  72</a><a target=_blank id="L73" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L73" rel="#L73" style="color: rgb(102, 102, 102); text-decoration: none;">  73</a><a target=_blank id="L74" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L74" rel="#L74" style="color: rgb(102, 102, 102); text-decoration: none;">  74</a><a target=_blank id="L75" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L75" rel="#L75" style="color: rgb(102, 102, 102); text-decoration: none;">  75</a><a target=_blank id="L76" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L76" rel="#L76" style="color: rgb(102, 102, 102); text-decoration: none;">  76</a><a target=_blank id="L77" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L77" rel="#L77" style="color: rgb(102, 102, 102); text-decoration: none;">  77</a><a target=_blank id="L78" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L78" rel="#L78" style="color: rgb(102, 102, 102); text-decoration: none;">  78</a><a target=_blank id="L79" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L79" rel="#L79" style="color: rgb(102, 102, 102); text-decoration: none;">  79</a><a target=_blank id="L80" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L80" rel="#L80" style="color: rgb(102, 102, 102); text-decoration: none;">  80</a><a target=_blank id="L81" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L81" rel="#L81" style="color: rgb(102, 102, 102); text-decoration: none;">  81</a><a target=_blank id="L82" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L82" rel="#L82" style="color: rgb(102, 102, 102); text-decoration: none;">  82</a><a target=_blank id="L83" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L83" rel="#L83" style="color: rgb(102, 102, 102); text-decoration: none;">  83</a><a target=_blank id="L84" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L84" rel="#L84" style="color: rgb(102, 102, 102); text-decoration: none;">  84</a><a target=_blank id="L85" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L85" rel="#L85" style="color: rgb(102, 102, 102); text-decoration: none;">  85</a><a target=_blank id="L86" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L86" rel="#L86" style="color: rgb(102, 102, 102); text-decoration: none;">  86</a><a target=_blank id="L87" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L87" rel="#L87" style="color: rgb(102, 102, 102); text-decoration: none;">  87</a><a target=_blank id="L88" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L88" rel="#L88" style="color: rgb(102, 102, 102); text-decoration: none;">  88</a><a target=_blank id="L89" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L89" rel="#L89" style="color: rgb(102, 102, 102); text-decoration: none;">  89</a><a target=_blank id="L90" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L90" rel="#L90" style="color: rgb(102, 102, 102); text-decoration: none;">  90</a><a target=_blank id="L91" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L91" rel="#L91" style="color: rgb(102, 102, 102); text-decoration: none;">  91</a><a target=_blank id="L92" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L92" rel="#L92" style="color: rgb(102, 102, 102); text-decoration: none;">  92</a><a target=_blank id="L93" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L93" rel="#L93" style="color: rgb(102, 102, 102); text-decoration: none;">  93</a><a target=_blank id="L94" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L94" rel="#L94" style="color: rgb(102, 102, 102); text-decoration: none;">  94</a><a target=_blank id="L95" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L95" rel="#L95" style="color: rgb(102, 102, 102); text-decoration: none;">  95</a><a target=_blank id="L96" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L96" rel="#L96" style="color: rgb(102, 102, 102); text-decoration: none;">  96</a><a target=_blank id="L97" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L97" rel="#L97" style="color: rgb(102, 102, 102); text-decoration: none;">  97</a><a target=_blank id="L98" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L98" rel="#L98" style="color: rgb(102, 102, 102); text-decoration: none;">  98</a><a target=_blank id="L99" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L99" rel="#L99" style="color: rgb(102, 102, 102); text-decoration: none;">  99</a><a target=_blank id="L100" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L100" rel="#L100" style="color: rgb(102, 102, 102); text-decoration: none;"> 100</a><a target=_blank id="L101" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L101" rel="#L101" style="color: rgb(102, 102, 102); text-decoration: none;"> 101</a><a target=_blank id="L102" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L102" rel="#L102" style="color: rgb(102, 102, 102); text-decoration: none;"> 102</a><a target=_blank id="L103" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L103" rel="#L103" style="color: rgb(102, 102, 102); text-decoration: none;"> 103</a><a target=_blank id="L104" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L104" rel="#L104" style="color: rgb(102, 102, 102); text-decoration: none;"> 104</a><a target=_blank id="L105" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L105" rel="#L105" style="color: rgb(102, 102, 102); text-decoration: none;"> 105</a><a target=_blank id="L106" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L106" rel="#L106" style="color: rgb(102, 102, 102); text-decoration: none;"> 106</a><a target=_blank id="L107" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L107" rel="#L107" style="color: rgb(102, 102, 102); text-decoration: none;"> 107</a><a target=_blank id="L108" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L108" rel="#L108" style="color: rgb(102, 102, 102); text-decoration: none;"> 108</a><a target=_blank id="L109" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L109" rel="#L109" style="color: rgb(102, 102, 102); text-decoration: none;"> 109</a><a target=_blank id="L110" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L110" rel="#L110" style="color: rgb(102, 102, 102); text-decoration: none;"> 110</a><a target=_blank id="L111" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L111" rel="#L111" style="color: rgb(102, 102, 102); text-decoration: none;"> 111</a><a target=_blank id="L112" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L112" rel="#L112" style="color: rgb(102, 102, 102); text-decoration: none;"> 112</a><a target=_blank id="L113" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L113" rel="#L113" style="color: rgb(102, 102, 102); text-decoration: none;"> 113</a><a target=_blank id="L114" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L114" rel="#L114" style="color: rgb(102, 102, 102); text-decoration: none;"> 114</a><a target=_blank id="L115" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L115" rel="#L115" style="color: rgb(102, 102, 102); text-decoration: none;"> 115</a><a target=_blank id="L116" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L116" rel="#L116" style="color: rgb(102, 102, 102); text-decoration: none;"> 116</a><a target=_blank id="L117" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L117" rel="#L117" style="color: rgb(102, 102, 102); text-decoration: none;"> 117</a><a target=_blank id="L118" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L118" rel="#L118" style="color: rgb(102, 102, 102); text-decoration: none;"> 118</a><a target=_blank id="L119" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L119" rel="#L119" style="color: rgb(102, 102, 102); text-decoration: none;"> 119</a><a target=_blank id="L120" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L120" rel="#L120" style="color: rgb(102, 102, 102); text-decoration: none;"> 120</a><a target=_blank id="L121" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L121" rel="#L121" style="color: rgb(102, 102, 102); text-decoration: none;"> 121</a><a target=_blank id="L122" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L122" rel="#L122" style="color: rgb(102, 102, 102); text-decoration: none;"> 122</a><a target=_blank id="L123" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L123" rel="#L123" style="color: rgb(102, 102, 102); text-decoration: none;"> 123</a><a target=_blank id="L124" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L124" rel="#L124" style="color: rgb(102, 102, 102); text-decoration: none;"> 124</a><a target=_blank id="L125" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L125" rel="#L125" style="color: rgb(102, 102, 102); text-decoration: none;"> 125</a><a target=_blank id="L126" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L126" rel="#L126" style="color: rgb(102, 102, 102); text-decoration: none;"> 126</a><a target=_blank id="L127" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L127" rel="#L127" style="color: rgb(102, 102, 102); text-decoration: none;"> 127</a><a target=_blank id="L128" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L128" rel="#L128" style="color: rgb(102, 102, 102); text-decoration: none;"> 128</a><a target=_blank id="L129" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L129" rel="#L129" style="color: rgb(102, 102, 102); text-decoration: none;"> 129</a><a target=_blank id="L130" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L130" rel="#L130" style="color: rgb(102, 102, 102); text-decoration: none;"> 130</a><a target=_blank id="L131" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L131" rel="#L131" style="color: rgb(102, 102, 102); text-decoration: none;"> 131</a><a target=_blank id="L132" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L132" rel="#L132" style="color: rgb(102, 102, 102); text-decoration: none;"> 132</a><a target=_blank id="L133" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L133" rel="#L133" style="color: rgb(102, 102, 102); text-decoration: none;"> 133</a><a target=_blank id="L134" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L134" rel="#L134" style="color: rgb(102, 102, 102); text-decoration: none;"> 134</a><a target=_blank id="L135" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L135" rel="#L135" style="color: rgb(102, 102, 102); text-decoration: none;"> 135</a><a target=_blank id="L136" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L136" rel="#L136" style="color: rgb(102, 102, 102); text-decoration: none;"> 136</a><a target=_blank id="L137" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L137" rel="#L137" style="color: rgb(102, 102, 102); text-decoration: none;"> 137</a><a target=_blank id="L138" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L138" rel="#L138" style="color: rgb(102, 102, 102); text-decoration: none;"> 138</a><a target=_blank id="L139" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L139" rel="#L139" style="color: rgb(102, 102, 102); text-decoration: none;"> 139</a><a target=_blank id="L140" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L140" rel="#L140" style="color: rgb(102, 102, 102); text-decoration: none;"> 140</a><a target=_blank id="L141" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L141" rel="#L141" style="color: rgb(102, 102, 102); text-decoration: none;"> 141</a><a target=_blank id="L142" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L142" rel="#L142" style="color: rgb(102, 102, 102); text-decoration: none;"> 142</a><a target=_blank id="L143" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L143" rel="#L143" style="color: rgb(102, 102, 102); text-decoration: none;"> 143</a><a target=_blank id="L144" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L144" rel="#L144" style="color: rgb(102, 102, 102); text-decoration: none;"> 144</a><a target=_blank id="L145" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L145" rel="#L145" style="color: rgb(102, 102, 102); text-decoration: none;"> 145</a><a target=_blank id="L146" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L146" rel="#L146" style="color: rgb(102, 102, 102); text-decoration: none;"> 146</a><a target=_blank id="L147" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L147" rel="#L147" style="color: rgb(102, 102, 102); text-decoration: none;"> 147</a><a target=_blank id="L148" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L148" rel="#L148" style="color: rgb(102, 102, 102); text-decoration: none;"> 148</a><a target=_blank id="L149" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L149" rel="#L149" style="color: rgb(102, 102, 102); text-decoration: none;"> 149</a><a target=_blank id="L150" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L150" rel="#L150" style="color: rgb(102, 102, 102); text-decoration: none;"> 150</a><a target=_blank id="L151" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L151" rel="#L151" style="color: rgb(102, 102, 102); text-decoration: none;"> 151</a><a target=_blank id="L152" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L152" rel="#L152" style="color: rgb(102, 102, 102); text-decoration: none;"> 152</a><a target=_blank id="L153" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L153" rel="#L153" style="color: rgb(102, 102, 102); text-decoration: none;"> 153</a><a target=_blank id="L154" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L154" rel="#L154" style="color: rgb(102, 102, 102); text-decoration: none;"> 154</a><a target=_blank id="L155" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L155" rel="#L155" style="color: rgb(102, 102, 102); text-decoration: none;"> 155</a><a target=_blank id="L156" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L156" rel="#L156" style="color: rgb(102, 102, 102); text-decoration: none;"> 156</a><a target=_blank id="L157" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L157" rel="#L157" style="color: rgb(102, 102, 102); text-decoration: none;"> 157</a><a target=_blank id="L158" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L158" rel="#L158" style="color: rgb(102, 102, 102); text-decoration: none;"> 158</a><a target=_blank id="L159" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L159" rel="#L159" style="color: rgb(102, 102, 102); text-decoration: none;"> 159</a><a target=_blank id="L160" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L160" rel="#L160" style="color: rgb(102, 102, 102); text-decoration: none;"> 160</a><a target=_blank id="L161" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L161" rel="#L161" style="color: rgb(102, 102, 102); text-decoration: none;"> 161</a><a target=_blank id="L162" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L162" rel="#L162" style="color: rgb(102, 102, 102); text-decoration: none;"> 162</a><a target=_blank id="L163" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L163" rel="#L163" style="color: rgb(102, 102, 102); text-decoration: none;"> 163</a><a target=_blank id="L164" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L164" rel="#L164" style="color: rgb(102, 102, 102); text-decoration: none;"> 164</a><a target=_blank id="L165" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L165" rel="#L165" style="color: rgb(102, 102, 102); text-decoration: none;"> 165</a><a target=_blank id="L166" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L166" rel="#L166" style="color: rgb(102, 102, 102); text-decoration: none;"> 166</a><a target=_blank id="L167" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L167" rel="#L167" style="color: rgb(102, 102, 102); text-decoration: none;"> 167</a><a target=_blank id="L168" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L168" rel="#L168" style="color: rgb(102, 102, 102); text-decoration: none;"> 168</a><a target=_blank id="L169" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L169" rel="#L169" style="color: rgb(102, 102, 102); text-decoration: none;"> 169</a><a target=_blank id="L170" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L170" rel="#L170" style="color: rgb(102, 102, 102); text-decoration: none;"> 170</a><a target=_blank id="L171" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L171" rel="#L171" style="color: rgb(102, 102, 102); text-decoration: none;"> 171</a><a target=_blank id="L172" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L172" rel="#L172" style="color: rgb(102, 102, 102); text-decoration: none;"> 172</a><a target=_blank id="L173" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L173" rel="#L173" style="color: rgb(102, 102, 102); text-decoration: none;"> 173</a><a target=_blank id="L174" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L174" rel="#L174" style="color: rgb(102, 102, 102); text-decoration: none;"> 174</a><a target=_blank id="L175" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L175" rel="#L175" style="color: rgb(102, 102, 102); text-decoration: none;"> 175</a><a target=_blank id="L176" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L176" rel="#L176" style="color: rgb(102, 102, 102); text-decoration: none;"> 176</a><a target=_blank id="L177" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L177" rel="#L177" style="color: rgb(102, 102, 102); text-decoration: none;"> 177</a><a target=_blank id="L178" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L178" rel="#L178" style="color: rgb(102, 102, 102); text-decoration: none;"> 178</a><a target=_blank id="L179" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L179" rel="#L179" style="color: rgb(102, 102, 102); text-decoration: none;"> 179</a><a target=_blank id="L180" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L180" rel="#L180" style="color: rgb(102, 102, 102); text-decoration: none;"> 180</a><a target=_blank id="L181" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L181" rel="#L181" style="color: rgb(102, 102, 102); text-decoration: none;"> 181</a><a target=_blank id="L182" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L182" rel="#L182" style="color: rgb(102, 102, 102); text-decoration: none;"> 182</a><a target=_blank id="L183" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L183" rel="#L183" style="color: rgb(102, 102, 102); text-decoration: none;"> 183</a><a target=_blank id="L184" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L184" rel="#L184" style="color: rgb(102, 102, 102); text-decoration: none;"> 184</a><a target=_blank id="L185" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L185" rel="#L185" style="color: rgb(102, 102, 102); text-decoration: none;"> 185</a><a target=_blank id="L186" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L186" rel="#L186" style="color: rgb(102, 102, 102); text-decoration: none;"> 186</a><a target=_blank id="L187" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L187" rel="#L187" style="color: rgb(102, 102, 102); text-decoration: none;"> 187</a><a target=_blank id="L188" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L188" rel="#L188" style="color: rgb(102, 102, 102); text-decoration: none;"> 188</a><a target=_blank id="L189" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L189" rel="#L189" style="color: rgb(102, 102, 102); text-decoration: none;"> 189</a><a target=_blank id="L190" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L190" rel="#L190" style="color: rgb(102, 102, 102); text-decoration: none;"> 190</a><a target=_blank id="L191" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L191" rel="#L191" style="color: rgb(102, 102, 102); text-decoration: none;"> 191</a><a target=_blank id="L192" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L192" rel="#L192" style="color: rgb(102, 102, 102); text-decoration: none;"> 192</a><a target=_blank id="L193" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L193" rel="#L193" style="color: rgb(102, 102, 102); text-decoration: none;"> 193</a><a target=_blank id="L194" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L194" rel="#L194" style="color: rgb(102, 102, 102); text-decoration: none;"> 194</a><a target=_blank id="L195" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L195" rel="#L195" style="color: rgb(102, 102, 102); text-decoration: none;"> 195</a><a target=_blank id="L196" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L196" rel="#L196" style="color: rgb(102, 102, 102); text-decoration: none;"> 196</a><a target=_blank id="L197" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L197" rel="#L197" style="color: rgb(102, 102, 102); text-decoration: none;"> 197</a><a target=_blank id="L198" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L198" rel="#L198" style="color: rgb(102, 102, 102); text-decoration: none;"> 198</a><a target=_blank id="L199" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L199" rel="#L199" style="color: rgb(102, 102, 102); text-decoration: none;"> 199</a><a target=_blank id="L200" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L200" rel="#L200" style="color: rgb(102, 102, 102); text-decoration: none;"> 200</a><a target=_blank id="L201" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L201" rel="#L201" style="color: rgb(102, 102, 102); text-decoration: none;"> 201</a><a target=_blank id="L202" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L202" rel="#L202" style="color: rgb(102, 102, 102); text-decoration: none;"> 202</a><a target=_blank id="L203" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L203" rel="#L203" style="color: rgb(102, 102, 102); text-decoration: none;"> 203</a><a target=_blank id="L204" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L204" rel="#L204" style="color: rgb(102, 102, 102); text-decoration: none;"> 204</a><a target=_blank id="L205" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L205" rel="#L205" style="color: rgb(102, 102, 102); text-decoration: none;"> 205</a><a target=_blank id="L206" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L206" rel="#L206" style="color: rgb(102, 102, 102); text-decoration: none;"> 206</a><a target=_blank id="L207" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L207" rel="#L207" style="color: rgb(102, 102, 102); text-decoration: none;"> 207</a><a target=_blank id="L208" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L208" rel="#L208" style="color: rgb(102, 102, 102); text-decoration: none;"> 208</a><a target=_blank id="L209" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L209" rel="#L209" style="color: rgb(102, 102, 102); text-decoration: none;"> 209</a><a target=_blank id="L210" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L210" rel="#L210" style="color: rgb(102, 102, 102); text-decoration: none;"> 210</a><a target=_blank id="L211" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L211" rel="#L211" style="color: rgb(102, 102, 102); text-decoration: none;"> 211</a><a target=_blank id="L212" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L212" rel="#L212" style="color: rgb(102, 102, 102); text-decoration: none;"> 212</a><a target=_blank id="L213" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L213" rel="#L213" style="color: rgb(102, 102, 102); text-decoration: none;"> 213</a><a target=_blank id="L214" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L214" rel="#L214" style="color: rgb(102, 102, 102); text-decoration: none;"> 214</a><a target=_blank id="L215" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L215" rel="#L215" style="color: rgb(102, 102, 102); text-decoration: none;"> 215</a><a target=_blank id="L216" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L216" rel="#L216" style="color: rgb(102, 102, 102); text-decoration: none;"> 216</a><a target=_blank id="L217" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L217" rel="#L217" style="color: rgb(102, 102, 102); text-decoration: none;"> 217</a><a target=_blank id="L218" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L218" rel="#L218" style="color: rgb(102, 102, 102); text-decoration: none;"> 218</a><a target=_blank id="L219" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L219" rel="#L219" style="color: rgb(102, 102, 102); text-decoration: none;"> 219</a><a target=_blank id="L220" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L220" rel="#L220" style="color: rgb(102, 102, 102); text-decoration: none;"> 220</a><a target=_blank id="L221" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L221" rel="#L221" style="color: rgb(102, 102, 102); text-decoration: none;"> 221</a><a target=_blank id="L222" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L222" rel="#L222" style="color: rgb(102, 102, 102); text-decoration: none;"> 222</a><a target=_blank id="L223" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L223" rel="#L223" style="color: rgb(102, 102, 102); text-decoration: none;"> 223</a><a target=_blank id="L224" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L224" rel="#L224" style="color: rgb(102, 102, 102); text-decoration: none;"> 224</a><a target=_blank id="L225" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L225" rel="#L225" style="color: rgb(102, 102, 102); text-decoration: none;"> 225</a><a target=_blank id="L226" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L226" rel="#L226" style="color: rgb(102, 102, 102); text-decoration: none;"> 226</a><a target=_blank id="L227" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L227" rel="#L227" style="color: rgb(102, 102, 102); text-decoration: none;"> 227</a><a target=_blank id="L228" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L228" rel="#L228" style="color: rgb(102, 102, 102); text-decoration: none;"> 228</a><a target=_blank id="L229" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L229" rel="#L229" style="color: rgb(102, 102, 102); text-decoration: none;"> 229</a><a target=_blank id="L230" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L230" rel="#L230" style="color: rgb(102, 102, 102); text-decoration: none;"> 230</a><a target=_blank id="L231" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L231" rel="#L231" style="color: rgb(102, 102, 102); text-decoration: none;"> 231</a><a target=_blank id="L232" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L232" rel="#L232" style="color: rgb(102, 102, 102); text-decoration: none;"> 232</a><a target=_blank id="L233" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L233" rel="#L233" style="color: rgb(102, 102, 102); text-decoration: none;"> 233</a><a target=_blank id="L234" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L234" rel="#L234" style="color: rgb(102, 102, 102); text-decoration: none;"> 234</a><a target=_blank id="L235" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L235" rel="#L235" style="color: rgb(102, 102, 102); text-decoration: none;"> 235</a><a target=_blank id="L236" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L236" rel="#L236" style="color: rgb(102, 102, 102); text-decoration: none;"> 236</a><a target=_blank id="L237" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L237" rel="#L237" style="color: rgb(102, 102, 102); text-decoration: none;"> 237</a><a target=_blank id="L238" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L238" rel="#L238" style="color: rgb(102, 102, 102); text-decoration: none;"> 238</a><a target=_blank id="L239" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L239" rel="#L239" style="color: rgb(102, 102, 102); text-decoration: none;"> 239</a><a target=_blank id="L240" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L240" rel="#L240" style="color: rgb(102, 102, 102); text-decoration: none;"> 240</a><a target=_blank id="L241" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L241" rel="#L241" style="color: rgb(102, 102, 102); text-decoration: none;"> 241</a><a target=_blank id="L242" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L242" rel="#L242" style="color: rgb(102, 102, 102); text-decoration: none;"> 242</a><a target=_blank id="L243" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L243" rel="#L243" style="color: rgb(102, 102, 102); text-decoration: none;"> 243</a><a target=_blank id="L244" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L244" rel="#L244" style="color: rgb(102, 102, 102); text-decoration: none;"> 244</a><a target=_blank id="L245" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L245" rel="#L245" style="color: rgb(102, 102, 102); text-decoration: none;"> 245</a><a target=_blank id="L246" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L246" rel="#L246" style="color: rgb(102, 102, 102); text-decoration: none;"> 246</a><a target=_blank id="L247" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L247" rel="#L247" style="color: rgb(102, 102, 102); text-decoration: none;"> 247</a><a target=_blank id="L248" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L248" rel="#L248" style="color: rgb(102, 102, 102); text-decoration: none;"> 248</a><a target=_blank id="L249" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L249" rel="#L249" style="color: rgb(102, 102, 102); text-decoration: none;"> 249</a><a target=_blank id="L250" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L250" rel="#L250" style="color: rgb(102, 102, 102); text-decoration: none;"> 250</a><a target=_blank id="L251" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L251" rel="#L251" style="color: rgb(102, 102, 102); text-decoration: none;"> 251</a><a target=_blank id="L252" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L252" rel="#L252" style="color: rgb(102, 102, 102); text-decoration: none;"> 252</a><a target=_blank id="L253" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L253" rel="#L253" style="color: rgb(102, 102, 102); text-decoration: none;"> 253</a><a target=_blank id="L254" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L254" rel="#L254" style="color: rgb(102, 102, 102); text-decoration: none;"> 254</a><a target=_blank id="L255" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L255" rel="#L255" style="color: rgb(102, 102, 102); text-decoration: none;"> 255</a><a target=_blank id="L256" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L256" rel="#L256" style="color: rgb(102, 102, 102); text-decoration: none;"> 256</a><a target=_blank id="L257" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L257" rel="#L257" style="color: rgb(102, 102, 102); text-decoration: none;"> 257</a><a target=_blank id="L258" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L258" rel="#L258" style="color: rgb(102, 102, 102); text-decoration: none;"> 258</a><a target=_blank id="L259" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L259" rel="#L259" style="color: rgb(102, 102, 102); text-decoration: none;"> 259</a><a target=_blank id="L260" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L260" rel="#L260" style="color: rgb(102, 102, 102); text-decoration: none;"> 260</a><a target=_blank id="L261" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L261" rel="#L261" style="color: rgb(102, 102, 102); text-decoration: none;"> 261</a><a target=_blank id="L262" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L262" rel="#L262" style="color: rgb(102, 102, 102); text-decoration: none;"> 262</a><a target=_blank id="L263" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L263" rel="#L263" style="color: rgb(102, 102, 102); text-decoration: none;"> 263</a><a target=_blank id="L264" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L264" rel="#L264" style="color: rgb(102, 102, 102); text-decoration: none;"> 264</a><a target=_blank id="L265" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L265" rel="#L265" style="color: rgb(102, 102, 102); text-decoration: none;"> 265</a><a target=_blank id="L266" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L266" rel="#L266" style="color: rgb(102, 102, 102); text-decoration: none;"> 266</a><a target=_blank id="L267" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L267" rel="#L267" style="color: rgb(102, 102, 102); text-decoration: none;"> 267</a><a target=_blank id="L268" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L268" rel="#L268" style="color: rgb(102, 102, 102); text-decoration: none;"> 268</a><a target=_blank id="L269" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L269" rel="#L269" style="color: rgb(102, 102, 102); text-decoration: none;"> 269</a><a target=_blank id="L270" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L270" rel="#L270" style="color: rgb(102, 102, 102); text-decoration: none;"> 270</a><a target=_blank id="L271" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L271" rel="#L271" style="color: rgb(102, 102, 102); text-decoration: none;"> 271</a><a target=_blank id="L272" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L272" rel="#L272" style="color: rgb(102, 102, 102); text-decoration: none;"> 272</a><a target=_blank id="L273" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L273" rel="#L273" style="color: rgb(102, 102, 102); text-decoration: none;"> 273</a><a target=_blank id="L274" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L274" rel="#L274" style="color: rgb(102, 102, 102); text-decoration: none;"> 274</a><a target=_blank id="L275" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L275" rel="#L275" style="color: rgb(102, 102, 102); text-decoration: none;"> 275</a><a target=_blank id="L276" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L276" rel="#L276" style="color: rgb(102, 102, 102); text-decoration: none;"> 276</a><a target=_blank id="L277" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L277" rel="#L277" style="color: rgb(102, 102, 102); text-decoration: none;"> 277</a><a target=_blank id="L278" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L278" rel="#L278" style="color: rgb(102, 102, 102); text-decoration: none;"> 278</a><a target=_blank id="L279" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L279" rel="#L279" style="color: rgb(102, 102, 102); text-decoration: none;"> 279</a><a target=_blank id="L280" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L280" rel="#L280" style="color: rgb(102, 102, 102); text-decoration: none;"> 280</a><a target=_blank id="L281" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L281" rel="#L281" style="color: rgb(102, 102, 102); text-decoration: none;"> 281</a><a target=_blank id="L282" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L282" rel="#L282" style="color: rgb(102, 102, 102); text-decoration: none;"> 282</a><a target=_blank id="L283" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L283" rel="#L283" style="color: rgb(102, 102, 102); text-decoration: none;"> 283</a><a target=_blank id="L284" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L284" rel="#L284" style="color: rgb(102, 102, 102); text-decoration: none;"> 284</a><a target=_blank id="L285" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L285" rel="#L285" style="color: rgb(102, 102, 102); text-decoration: none;"> 285</a><a target=_blank id="L286" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L286" rel="#L286" style="color: rgb(102, 102, 102); text-decoration: none;"> 286</a><a target=_blank id="L287" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L287" rel="#L287" style="color: rgb(102, 102, 102); text-decoration: none;"> 287</a><a target=_blank id="L288" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L288" rel="#L288" style="color: rgb(102, 102, 102); text-decoration: none;"> 288</a><a target=_blank id="L289" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L289" rel="#L289" style="color: rgb(102, 102, 102); text-decoration: none;"> 289</a><a target=_blank id="L290" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L290" rel="#L290" style="color: rgb(102, 102, 102); text-decoration: none;"> 290</a><a target=_blank id="L291" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L291" rel="#L291" style="color: rgb(102, 102, 102); text-decoration: none;"> 291</a><a target=_blank id="L292" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L292" rel="#L292" style="color: rgb(102, 102, 102); text-decoration: none;"> 292</a><a target=_blank id="L293" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L293" rel="#L293" style="color: rgb(102, 102, 102); text-decoration: none;"> 293</a><a target=_blank id="L294" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L294" rel="#L294" style="color: rgb(102, 102, 102); text-decoration: none;"> 294</a><a target=_blank id="L295" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L295" rel="#L295" style="color: rgb(102, 102, 102); text-decoration: none;"> 295</a><a target=_blank id="L296" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L296" rel="#L296" style="color: rgb(102, 102, 102); text-decoration: none;"> 296</a><a target=_blank id="L297" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L297" rel="#L297" style="color: rgb(102, 102, 102); text-decoration: none;"> 297</a><a target=_blank id="L298" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L298" rel="#L298" style="color: rgb(102, 102, 102); text-decoration: none;"> 298</a><a target=_blank id="L299" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L299" rel="#L299" style="color: rgb(102, 102, 102); text-decoration: none;"> 299</a><a target=_blank id="L300" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L300" rel="#L300" style="color: rgb(102, 102, 102); text-decoration: none;"> 300</a><a target=_blank id="L301" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L301" rel="#L301" style="color: rgb(102, 102, 102); text-decoration: none;"> 301</a><a target=_blank id="L302" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L302" rel="#L302" style="color: rgb(102, 102, 102); text-decoration: none;"> 302</a><a target=_blank id="L303" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L303" rel="#L303" style="color: rgb(102, 102, 102); text-decoration: none;"> 303</a><a target=_blank id="L304" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L304" rel="#L304" style="color: rgb(102, 102, 102); text-decoration: none;"> 304</a><a target=_blank id="L305" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L305" rel="#L305" style="color: rgb(102, 102, 102); text-decoration: none;"> 305</a><a target=_blank id="L306" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L306" rel="#L306" style="color: rgb(102, 102, 102); text-decoration: none;"> 306</a><a target=_blank id="L307" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L307" rel="#L307" style="color: rgb(102, 102, 102); text-decoration: none;"> 307</a><a target=_blank id="L308" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L308" rel="#L308" style="color: rgb(102, 102, 102); text-decoration: none;"> 308</a><a target=_blank id="L309" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L309" rel="#L309" style="color: rgb(102, 102, 102); text-decoration: none;"> 309</a><a target=_blank id="L310" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L310" rel="#L310" style="color: rgb(102, 102, 102); text-decoration: none;"> 310</a><a target=_blank id="L311" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L311" rel="#L311" style="color: rgb(102, 102, 102); text-decoration: none;"> 311</a><a target=_blank id="L312" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L312" rel="#L312" style="color: rgb(102, 102, 102); text-decoration: none;"> 312</a><a target=_blank id="L313" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L313" rel="#L313" style="color: rgb(102, 102, 102); text-decoration: none;"> 313</a><a target=_blank id="L314" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L314" rel="#L314" style="color: rgb(102, 102, 102); text-decoration: none;"> 314</a><a target=_blank id="L315" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L315" rel="#L315" style="color: rgb(102, 102, 102); text-decoration: none;"> 315</a><a target=_blank id="L316" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L316" rel="#L316" style="color: rgb(102, 102, 102); text-decoration: none;"> 316</a><a target=_blank id="L317" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L317" rel="#L317" style="color: rgb(102, 102, 102); text-decoration: none;"> 317</a><a target=_blank id="L318" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L318" rel="#L318" style="color: rgb(102, 102, 102); text-decoration: none;"> 318</a><a target=_blank id="L319" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L319" rel="#L319" style="color: rgb(102, 102, 102); text-decoration: none;"> 319</a><a target=_blank id="L320" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L320" rel="#L320" style="color: rgb(102, 102, 102); text-decoration: none;"> 320</a><a target=_blank id="L321" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L321" rel="#L321" style="color: rgb(102, 102, 102); text-decoration: none;"> 321</a><a target=_blank id="L322" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L322" rel="#L322" style="color: rgb(102, 102, 102); text-decoration: none;"> 322</a><a target=_blank id="L323" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L323" rel="#L323" style="color: rgb(102, 102, 102); text-decoration: none;"> 323</a><a target=_blank id="L324" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L324" rel="#L324" style="color: rgb(102, 102, 102); text-decoration: none;"> 324</a><a target=_blank id="L325" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L325" rel="#L325" style="color: rgb(102, 102, 102); text-decoration: none;"> 325</a><a target=_blank id="L326" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L326" rel="#L326" style="color: rgb(102, 102, 102); text-decoration: none;"> 326</a><a target=_blank id="L327" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L327" rel="#L327" style="color: rgb(102, 102, 102); text-decoration: none;"> 327</a><a target=_blank id="L328" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L328" rel="#L328" style="color: rgb(102, 102, 102); text-decoration: none;"> 328</a><a target=_blank id="L329" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L329" rel="#L329" style="color: rgb(102, 102, 102); text-decoration: none;"> 329</a><a target=_blank id="L330" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L330" rel="#L330" style="color: rgb(102, 102, 102); text-decoration: none;"> 330</a><a target=_blank id="L331" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L331" rel="#L331" style="color: rgb(102, 102, 102); text-decoration: none;"> 331</a><a target=_blank id="L332" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L332" rel="#L332" style="color: rgb(102, 102, 102); text-decoration: none;"> 332</a><a target=_blank id="L333" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L333" rel="#L333" style="color: rgb(102, 102, 102); text-decoration: none;"> 333</a><a target=_blank id="L334" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L334" rel="#L334" style="color: rgb(102, 102, 102); text-decoration: none;"> 334</a><a target=_blank id="L335" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L335" rel="#L335" style="color: rgb(102, 102, 102); text-decoration: none;"> 335</a><a target=_blank id="L336" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L336" rel="#L336" style="color: rgb(102, 102, 102); text-decoration: none;"> 336</a><a target=_blank id="L337" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L337" rel="#L337" style="color: rgb(102, 102, 102); text-decoration: none;"> 337</a><a target=_blank id="L338" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L338" rel="#L338" style="color: rgb(102, 102, 102); text-decoration: none;"> 338</a><a target=_blank id="L339" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L339" rel="#L339" style="color: rgb(102, 102, 102); text-decoration: none;"> 339</a><a target=_blank id="L340" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L340" rel="#L340" style="color: rgb(102, 102, 102); text-decoration: none;"> 340</a><a target=_blank id="L341" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L341" rel="#L341" style="color: rgb(102, 102, 102); text-decoration: none;"> 341</a><a target=_blank id="L342" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L342" rel="#L342" style="color: rgb(102, 102, 102); text-decoration: none;"> 342</a><a target=_blank id="L343" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L343" rel="#L343" style="color: rgb(102, 102, 102); text-decoration: none;"> 343</a><a target=_blank id="L344" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L344" rel="#L344" style="color: rgb(102, 102, 102); text-decoration: none;"> 344</a><a target=_blank id="L345" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L345" rel="#L345" style="color: rgb(102, 102, 102); text-decoration: none;"> 345</a><a target=_blank id="L346" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L346" rel="#L346" style="color: rgb(102, 102, 102); text-decoration: none;"> 346</a><a target=_blank id="L347" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L347" rel="#L347" style="color: rgb(102, 102, 102); text-decoration: none;"> 347</a><a target=_blank id="L348" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L348" rel="#L348" style="color: rgb(102, 102, 102); text-decoration: none;"> 348</a><a target=_blank id="L349" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L349" rel="#L349" style="color: rgb(102, 102, 102); text-decoration: none;"> 349</a><a target=_blank id="L350" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L350" rel="#L350" style="color: rgb(102, 102, 102); text-decoration: none;"> 350</a><a target=_blank id="L351" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L351" rel="#L351" style="color: rgb(102, 102, 102); text-decoration: none;"> 351</a><a target=_blank id="L352" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L352" rel="#L352" style="color: rgb(102, 102, 102); text-decoration: none;"> 352</a><a target=_blank id="L353" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L353" rel="#L353" style="color: rgb(102, 102, 102); text-decoration: none;"> 353</a><a target=_blank id="L354" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L354" rel="#L354" style="color: rgb(102, 102, 102); text-decoration: none;"> 354</a><a target=_blank id="L355" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L355" rel="#L355" style="color: rgb(102, 102, 102); text-decoration: none;"> 355</a><a target=_blank id="L356" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L356" rel="#L356" style="color: rgb(102, 102, 102); text-decoration: none;"> 356</a><a target=_blank id="L357" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L357" rel="#L357" style="color: rgb(102, 102, 102); text-decoration: none;"> 357</a><a target=_blank id="L358" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L358" rel="#L358" style="color: rgb(102, 102, 102); text-decoration: none;"> 358</a><a target=_blank id="L359" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L359" rel="#L359" style="color: rgb(102, 102, 102); text-decoration: none;"> 359</a><a target=_blank id="L360" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L360" rel="#L360" style="color: rgb(102, 102, 102); text-decoration: none;"> 360</a><a target=_blank id="L361" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L361" rel="#L361" style="color: rgb(102, 102, 102); text-decoration: none;"> 361</a><a target=_blank id="L362" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L362" rel="#L362" style="color: rgb(102, 102, 102); text-decoration: none;"> 362</a><a target=_blank id="L363" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L363" rel="#L363" style="color: rgb(102, 102, 102); text-decoration: none;"> 363</a><a target=_blank id="L364" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L364" rel="#L364" style="color: rgb(102, 102, 102); text-decoration: none;"> 364</a><a target=_blank id="L365" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L365" rel="#L365" style="color: rgb(102, 102, 102); text-decoration: none;"> 365</a><a target=_blank id="L366" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L366" rel="#L366" style="color: rgb(102, 102, 102); text-decoration: none;"> 366</a><a target=_blank id="L367" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L367" rel="#L367" style="color: rgb(102, 102, 102); text-decoration: none;"> 367</a><a target=_blank id="L368" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L368" rel="#L368" style="color: rgb(102, 102, 102); text-decoration: none;"> 368</a><a target=_blank id="L369" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L369" rel="#L369" style="color: rgb(102, 102, 102); text-decoration: none;"> 369</a><a target=_blank id="L370" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L370" rel="#L370" style="color: rgb(102, 102, 102); text-decoration: none;"> 370</a><a target=_blank id="L371" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L371" rel="#L371" style="color: rgb(102, 102, 102); text-decoration: none;"> 371</a><a target=_blank id="L372" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L372" rel="#L372" style="color: rgb(102, 102, 102); text-decoration: none;"> 372</a><a target=_blank id="L373" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L373" rel="#L373" style="color: rgb(102, 102, 102); text-decoration: none;"> 373</a><a target=_blank id="L374" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L374" rel="#L374" style="color: rgb(102, 102, 102); text-decoration: none;"> 374</a><a target=_blank id="L375" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L375" rel="#L375" style="color: rgb(102, 102, 102); text-decoration: none;"> 375</a><a target=_blank id="L376" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L376" rel="#L376" style="color: rgb(102, 102, 102); text-decoration: none;"> 376</a><a target=_blank id="L377" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L377" rel="#L377" style="color: rgb(102, 102, 102); text-decoration: none;"> 377</a><a target=_blank id="L378" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L378" rel="#L378" style="color: rgb(102, 102, 102); text-decoration: none;"> 378</a><a target=_blank id="L379" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L379" rel="#L379" style="color: rgb(102, 102, 102); text-decoration: none;"> 379</a><a target=_blank id="L380" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L380" rel="#L380" style="color: rgb(102, 102, 102); text-decoration: none;"> 380</a><a target=_blank id="L381" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L381" rel="#L381" style="color: rgb(102, 102, 102); text-decoration: none;"> 381</a><a target=_blank id="L382" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L382" rel="#L382" style="color: rgb(102, 102, 102); text-decoration: none;"> 382</a><a target=_blank id="L383" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L383" rel="#L383" style="color: rgb(102, 102, 102); text-decoration: none;"> 383</a><a target=_blank id="L384" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L384" rel="#L384" style="color: rgb(102, 102, 102); text-decoration: none;"> 384</a><a target=_blank id="L385" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L385" rel="#L385" style="color: rgb(102, 102, 102); text-decoration: none;"> 385</a><a target=_blank id="L386" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L386" rel="#L386" style="color: rgb(102, 102, 102); text-decoration: none;"> 386</a><a target=_blank id="L387" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L387" rel="#L387" style="color: rgb(102, 102, 102); text-decoration: none;"> 387</a><a target=_blank id="L388" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L388" rel="#L388" style="color: rgb(102, 102, 102); text-decoration: none;"> 388</a><a target=_blank id="L389" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L389" rel="#L389" style="color: rgb(102, 102, 102); text-decoration: none;"> 389</a><a target=_blank id="L390" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L390" rel="#L390" style="color: rgb(102, 102, 102); text-decoration: none;"> 390</a><a target=_blank id="L391" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L391" rel="#L391" style="color: rgb(102, 102, 102); text-decoration: none;"> 391</a><a target=_blank id="L392" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L392" rel="#L392" style="color: rgb(102, 102, 102); text-decoration: none;"> 392</a><a target=_blank id="L393" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L393" rel="#L393" style="color: rgb(102, 102, 102); text-decoration: none;"> 393</a><a target=_blank id="L394" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L394" rel="#L394" style="color: rgb(102, 102, 102); text-decoration: none;"> 394</a><a target=_blank id="L395" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L395" rel="#L395" style="color: rgb(102, 102, 102); text-decoration: none;"> 395</a><a target=_blank id="L396" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L396" rel="#L396" style="color: rgb(102, 102, 102); text-decoration: none;"> 396</a><a target=_blank id="L397" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L397" rel="#L397" style="color: rgb(102, 102, 102); text-decoration: none;"> 397</a><a target=_blank id="L398" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L398" rel="#L398" style="color: rgb(102, 102, 102); text-decoration: none;"> 398</a><a target=_blank id="L399" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L399" rel="#L399" style="color: rgb(102, 102, 102); text-decoration: none;"> 399</a><a target=_blank id="L400" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L400" rel="#L400" style="color: rgb(102, 102, 102); text-decoration: none;"> 400</a><a target=_blank id="L401" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L401" rel="#L401" style="color: rgb(102, 102, 102); text-decoration: none;"> 401</a><a target=_blank id="L402" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L402" rel="#L402" style="color: rgb(102, 102, 102); text-decoration: none;"> 402</a><a target=_blank id="L403" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L403" rel="#L403" style="color: rgb(102, 102, 102); text-decoration: none;"> 403</a><a target=_blank id="L404" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L404" rel="#L404" style="color: rgb(102, 102, 102); text-decoration: none;"> 404</a><a target=_blank id="L405" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L405" rel="#L405" style="color: rgb(102, 102, 102); text-decoration: none;"> 405</a><a target=_blank id="L406" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L406" rel="#L406" style="color: rgb(102, 102, 102); text-decoration: none;"> 406</a><a target=_blank id="L407" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L407" rel="#L407" style="color: rgb(102, 102, 102); text-decoration: none;"> 407</a><a target=_blank id="L408" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L408" rel="#L408" style="color: rgb(102, 102, 102); text-decoration: none;"> 408</a><a target=_blank id="L409" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L409" rel="#L409" style="color: rgb(102, 102, 102); text-decoration: none;"> 409</a><a target=_blank id="L410" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L410" rel="#L410" style="color: rgb(102, 102, 102); text-decoration: none;"> 410</a><a target=_blank id="L411" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L411" rel="#L411" style="color: rgb(102, 102, 102); text-decoration: none;"> 411</a><a target=_blank id="L412" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L412" rel="#L412" style="color: rgb(102, 102, 102); text-decoration: none;"> 412</a><a target=_blank id="L413" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L413" rel="#L413" style="color: rgb(102, 102, 102); text-decoration: none;"> 413</a><a target=_blank id="L414" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L414" rel="#L414" style="color: rgb(102, 102, 102); text-decoration: none;"> 414</a><a target=_blank id="L415" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L415" rel="#L415" style="color: rgb(102, 102, 102); text-decoration: none;"> 415</a><a target=_blank id="L416" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L416" rel="#L416" style="color: rgb(102, 102, 102); text-decoration: none;"> 416</a><a target=_blank id="L417" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L417" rel="#L417" style="color: rgb(102, 102, 102); text-decoration: none;"> 417</a><a target=_blank id="L418" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L418" rel="#L418" style="color: rgb(102, 102, 102); text-decoration: none;"> 418</a><a target=_blank id="L419" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L419" rel="#L419" style="color: rgb(102, 102, 102); text-decoration: none;"> 419</a><a target=_blank id="L420" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L420" rel="#L420" style="color: rgb(102, 102, 102); text-decoration: none;"> 420</a><a target=_blank id="L421" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L421" rel="#L421" style="color: rgb(102, 102, 102); text-decoration: none;"> 421</a><a target=_blank id="L422" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L422" rel="#L422" style="color: rgb(102, 102, 102); text-decoration: none;"> 422</a><a target=_blank id="L423" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L423" rel="#L423" style="color: rgb(102, 102, 102); text-decoration: none;"> 423</a><a target=_blank id="L424" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L424" rel="#L424" style="color: rgb(102, 102, 102); text-decoration: none;"> 424</a><a target=_blank id="L425" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L425" rel="#L425" style="color: rgb(102, 102, 102); text-decoration: none;"> 425</a><a target=_blank id="L426" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L426" rel="#L426" style="color: rgb(102, 102, 102); text-decoration: none;"> 426</a><a target=_blank id="L427" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L427" rel="#L427" style="color: rgb(102, 102, 102); text-decoration: none;"> 427</a><a target=_blank id="L428" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L428" rel="#L428" style="color: rgb(102, 102, 102); text-decoration: none;"> 428</a><a target=_blank id="L429" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L429" rel="#L429" style="color: rgb(102, 102, 102); text-decoration: none;"> 429</a><a target=_blank id="L430" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L430" rel="#L430" style="color: rgb(102, 102, 102); text-decoration: none;"> 430</a><a target=_blank id="L431" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L431" rel="#L431" style="color: rgb(102, 102, 102); text-decoration: none;"> 431</a><a target=_blank id="L432" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L432" rel="#L432" style="color: rgb(102, 102, 102); text-decoration: none;"> 432</a><a target=_blank id="L433" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L433" rel="#L433" style="color: rgb(102, 102, 102); text-decoration: none;"> 433</a><a target=_blank id="L434" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L434" rel="#L434" style="color: rgb(102, 102, 102); text-decoration: none;"> 434</a><a target=_blank id="L435" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L435" rel="#L435" style="color: rgb(102, 102, 102); text-decoration: none;"> 435</a><a target=_blank id="L436" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L436" rel="#L436" style="color: rgb(102, 102, 102); text-decoration: none;"> 436</a><a target=_blank id="L437" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L437" rel="#L437" style="color: rgb(102, 102, 102); text-decoration: none;"> 437</a><a target=_blank id="L438" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L438" rel="#L438" style="color: rgb(102, 102, 102); text-decoration: none;"> 438</a><a target=_blank id="L439" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L439" rel="#L439" style="color: rgb(102, 102, 102); text-decoration: none;"> 439</a><a target=_blank id="L440" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L440" rel="#L440" style="color: rgb(102, 102, 102); text-decoration: none;"> 440</a><a target=_blank id="L441" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L441" rel="#L441" style="color: rgb(102, 102, 102); text-decoration: none;"> 441</a><a target=_blank id="L442" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L442" rel="#L442" style="color: rgb(102, 102, 102); text-decoration: none;"> 442</a><a target=_blank id="L443" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L443" rel="#L443" style="color: rgb(102, 102, 102); text-decoration: none;"> 443</a><a target=_blank id="L444" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L444" rel="#L444" style="color: rgb(102, 102, 102); text-decoration: none;"> 444</a><a target=_blank id="L445" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L445" rel="#L445" style="color: rgb(102, 102, 102); text-decoration: none;"> 445</a><a target=_blank id="L446" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L446" rel="#L446" style="color: rgb(102, 102, 102); text-decoration: none;"> 446</a><a target=_blank id="L447" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L447" rel="#L447" style="color: rgb(102, 102, 102); text-decoration: none;"> 447</a><a target=_blank id="L448" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L448" rel="#L448" style="color: rgb(102, 102, 102); text-decoration: none;"> 448</a><a target=_blank id="L449" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L449" rel="#L449" style="color: rgb(102, 102, 102); text-decoration: none;"> 449</a><a target=_blank id="L450" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L450" rel="#L450" style="color: rgb(102, 102, 102); text-decoration: none;"> 450</a><a target=_blank id="L451" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L451" rel="#L451" style="color: rgb(102, 102, 102); text-decoration: none;"> 451</a><a target=_blank id="L452" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L452" rel="#L452" style="color: rgb(102, 102, 102); text-decoration: none;"> 452</a><a target=_blank id="L453" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L453" rel="#L453" style="color: rgb(102, 102, 102); text-decoration: none;"> 453</a><a target=_blank id="L454" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L454" rel="#L454" style="color: rgb(102, 102, 102); text-decoration: none;"> 454</a><a target=_blank id="L455" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L455" rel="#L455" style="color: rgb(102, 102, 102); text-decoration: none;"> 455</a><a target=_blank id="L456" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L456" rel="#L456" style="color: rgb(102, 102, 102); text-decoration: none;"> 456</a><a target=_blank id="L457" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L457" rel="#L457" style="color: rgb(102, 102, 102); text-decoration: none;"> 457</a><a target=_blank id="L458" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L458" rel="#L458" style="color: rgb(102, 102, 102); text-decoration: none;"> 458</a><a target=_blank id="L459" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L459" rel="#L459" style="color: rgb(102, 102, 102); text-decoration: none;"> 459</a><a target=_blank id="L460" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L460" rel="#L460" style="color: rgb(102, 102, 102); text-decoration: none;"> 460</a><a target=_blank id="L461" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L461" rel="#L461" style="color: rgb(102, 102, 102); text-decoration: none;"> 461</a><a target=_blank id="L462" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L462" rel="#L462" style="color: rgb(102, 102, 102); text-decoration: none;"> 462</a><a target=_blank id="L463" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L463" rel="#L463" style="color: rgb(102, 102, 102); text-decoration: none;"> 463</a><a target=_blank id="L464" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L464" rel="#L464" style="color: rgb(102, 102, 102); text-decoration: none;"> 464</a><a target=_blank id="L465" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L465" rel="#L465" style="color: rgb(102, 102, 102); text-decoration: none;"> 465</a><a target=_blank id="L466" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L466" rel="#L466" style="color: rgb(102, 102, 102); text-decoration: none;"> 466</a>
package com.hck.ui;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.RoundRectShape;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewParent;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.DecelerateInterpolator;
import android.widget.FrameLayout;
import android.widget.TabWidget;
import android.widget.TextView;
/**
* A simple text label view that can be applied as a "badge" to any given {@link android.view.View}.
* This class is intended to be instantiated at runtime rather than included in XML layouts.
*
* @author Jeff Gilfelt
*/
public class BadgeView extends TextView {
public static final int POSITION_TOP_LEFT = 1;
public static final int POSITION_TOP_RIGHT = 2;
public static final int POSITION_BOTTOM_LEFT = 3;
public static final int POSITION_BOTTOM_RIGHT = 4;
public static final int POSITION_CENTER = 5;
private static final int DEFAULT_MARGIN_DIP = 5;
private static final int DEFAULT_LR_PADDING_DIP = 5;
private static final int DEFAULT_CORNER_RADIUS_DIP = 8;
private static final int DEFAULT_POSITION = POSITION_TOP_RIGHT;
private static final int DEFAULT_BADGE_COLOR = Color.parseColor("#CCFF0000"); //Color.RED;
private static final int DEFAULT_TEXT_COLOR = Color.WHITE;
private static Animation fadeIn;
private static Animation fadeOut;
private Context context;
private View target;
private int badgePosition;
private int badgeMarginH;
private int badgeMarginV;
private int badgeColor;
private boolean isShown;
private ShapeDrawable badgeBg;
private int targetTabIndex;
public BadgeView(Context context) {
this(context, (AttributeSet) null, android.R.attr.textViewStyle);
}
public BadgeView(Context context, AttributeSet attrs) {
this(context, attrs, android.R.attr.textViewStyle);
}
/**
* Constructor -
*
* create a new BadgeView instance attached to a target {@link android.view.View}.
*
* @param context context for this view.
* @param target the View to attach the badge to.
*/
public BadgeView(Context context, View target) {
this(context, null, android.R.attr.textViewStyle, target, 0);
}
/**
* Constructor -
*
* create a new BadgeView instance attached to a target {@link android.widget.TabWidget}
* tab at a given index.
*
* @param context context for this view.
* @param target the TabWidget to attach the badge to.
* @param index the position of the tab within the target.
*/
public BadgeView(Context context, TabWidget target, int index) {
this(context, null, android.R.attr.textViewStyle, target, index);
}
public BadgeView(Context context, AttributeSet attrs, int defStyle) {
this(context, attrs, defStyle, null, 0);
}
public BadgeView(Context context, AttributeSet attrs, int defStyle, View target, int tabIndex) {
super(context, attrs, defStyle);
init(context, target, tabIndex);
}
private void init(Context context, View target, int tabIndex) {
this.context = context;
this.target = target;
this.targetTabIndex = tabIndex;
// apply defaults
badgePosition = DEFAULT_POSITION;
badgeMarginH = dipToPixels(DEFAULT_MARGIN_DIP);
badgeMarginV = badgeMarginH;
badgeColor = DEFAULT_BADGE_COLOR;
setTypeface(Typeface.DEFAULT_BOLD);
int paddingPixels = dipToPixels(DEFAULT_LR_PADDING_DIP);
setPadding(paddingPixels, 0, paddingPixels, 0);
setTextColor(DEFAULT_TEXT_COLOR);
fadeIn = new AlphaAnimation(0, 1);
fadeIn.setInterpolator(new DecelerateInterpolator());
fadeIn.setDuration(200);
fadeOut = new AlphaAnimation(1, 0);
fadeOut.setInterpolator(new AccelerateInterpolator());
fadeOut.setDuration(200);
isShown = false;
if (this.target != null) {
applyTo(this.target);
} else {
show();
}
}
private void applyTo(View target) {
LayoutParams lp = target.getLayoutParams();
ViewParent parent = target.getParent();
FrameLayout container = new FrameLayout(context);
if (target instanceof TabWidget) {
// set target to the relevant tab child container
//target = ((TabWidget) target).getChildTabViewAt(1);
//this.target = target;
Log.i("hck", "target>>>>>> "+target);
((ViewGroup) target).addView(container,
new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
this.setVisibility(View.GONE);
container.addView(this);
} else {
// TODO verify that parent is indeed a ViewGroup
ViewGroup group = (ViewGroup) parent;
int index = group.indexOfChild(target);
group.removeView(target);
group.addView(container, index, lp);
container.addView(target);
this.setVisibility(View.GONE);
container.addView(this);
group.invalidate();
}
}
/**
* Make the badge visible in the UI.
*
*/
public void show() {
show(false, null);
}
/**
* Make the badge visible in the UI.
*
* @param animate flag to apply the default fade-in animation.
*/
public void show(boolean animate) {
show(animate, fadeIn);
}
/**
* Make the badge visible in the UI.
*
* @param anim Animation to apply to the view when made visible.
*/
public void show(Animation anim) {
show(true, anim);
}
/**
* Make the badge non-visible in the UI.
*
*/
public void hide() {
hide(false, null);
}
/**
* Make the badge non-visible in the UI.
*
* @param animate flag to apply the default fade-out animation.
*/
public void hide(boolean animate) {
hide(animate, fadeOut);
}
/**
* Make the badge non-visible in the UI.
*
* @param anim Animation to apply to the view when made non-visible.
*/
public void hide(Animation anim) {
hide(true, anim);
}
/**
* Toggle the badge visibility in the UI.
*
*/
public void toggle() {
toggle(false, null, null);
}
/**
* Toggle the badge visibility in the UI.
*
* @param animate flag to apply the default fade-in/out animation.
*/
public void toggle(boolean animate) {
toggle(animate, fadeIn, fadeOut);
}
/**
* Toggle the badge visibility in the UI.
*
* @param animIn Animation to apply to the view when made visible.
* @param animOut Animation to apply to the view when made non-visible.
*/
public void toggle(Animation animIn, Animation animOut) {
toggle(true, animIn, animOut);
}
private void show(boolean animate, Animation anim) {
if (getBackground() == null) {
if (badgeBg == null) {
badgeBg = getDefaultBackground();
}
setBackgroundDrawable(badgeBg);
}
applyLayoutParams();
if (animate) {
this.startAnimation(anim);
}
this.setVisibility(View.VISIBLE);
isShown = true;
}
private void hide(boolean animate, Animation anim) {
this.setVisibility(View.GONE);
if (animate) {
this.startAnimation(anim);
}
isShown = false;
}
private void toggle(boolean animate, Animation animIn, Animation animOut) {
if (isShown) {
hide(animate && (animOut != null), animOut);
} else {
show(animate && (animIn != null), animIn);
}
}
/**
* Increment the numeric badge label. If the current badge label cannot be converted to
* an integer value, its label will be set to "0".
*
* @param offset the increment offset.
*/
public int increment(int offset) {
CharSequence txt = getText();
int i;
if (txt != null) {
try {
i = Integer.parseInt(txt.toString());
} catch (NumberFormatException e) {
i = 0;
}
} else {
i = 0;
}
i = i + offset;
setText(String.valueOf(i));
return i;
}
/**
* Decrement the numeric badge label. If the current badge label cannot be converted to
* an integer value, its label will be set to "0".
*
* @param offset the decrement offset.
*/
public int decrement(int offset) {
return increment(-offset);
}
private ShapeDrawable getDefaultBackground() {
int r = dipToPixels(DEFAULT_CORNER_RADIUS_DIP);
float[] outerR = new float[] {r, r, r, r, r, r, r, r};
RoundRectShape rr = new RoundRectShape(outerR, null, null);
ShapeDrawable drawable = new ShapeDrawable(rr);
drawable.getPaint().setColor(badgeColor);
return drawable;
}
private void applyLayoutParams() {
FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
switch (badgePosition) {
case POSITION_TOP_LEFT:
lp.gravity = Gravity.LEFT | Gravity.TOP;
lp.setMargins(badgeMarginH, badgeMarginV, 0, 0);
break;
case POSITION_TOP_RIGHT:
lp.gravity = Gravity.RIGHT | Gravity.TOP;
lp.setMargins(0, badgeMarginV, badgeMarginH, 0);
break;
case POSITION_BOTTOM_LEFT:
lp.gravity = Gravity.LEFT | Gravity.BOTTOM;
lp.setMargins(badgeMarginH, 0, 0, badgeMarginV);
break;
case POSITION_BOTTOM_RIGHT:
lp.gravity = Gravity.RIGHT | Gravity.BOTTOM;
lp.setMargins(0, 0, badgeMarginH, badgeMarginV);
break;
case POSITION_CENTER:
lp.gravity = Gravity.CENTER;
lp.setMargins(0, 0, 0, 0);
break;
default:
break;
}
setLayoutParams(lp);
}
/**
* Returns the target View this badge has been attached to.
*
*/
public View getTarget() {
return target;
}
/**
* Is this badge currently visible in the UI?
*
*/
@Override
public boolean isShown() {
return isShown;
}
/**
* Returns the positioning of this badge.
*
* one of POSITION_TOP_LEFT, POSITION_TOP_RIGHT, POSITION_BOTTOM_LEFT, POSITION_BOTTOM_RIGHT, POSTION_CENTER.
*
*/
public int getBadgePosition() {
return badgePosition;
}
/**
* Set the positioning of this badge.
*
* @param layoutPosition one of POSITION_TOP_LEFT, POSITION_TOP_RIGHT, POSITION_BOTTOM_LEFT, POSITION_BOTTOM_RIGHT, POSTION_CENTER.
*
*/
public void setBadgePosition(int layoutPosition) {
this.badgePosition = layoutPosition;
}
/**
* Returns the horizontal margin from the target View that is applied to this badge.
*
*/
public int getHorizontalBadgeMargin() {
return badgeMarginH;
}
/**
* Returns the vertical margin from the target View that is applied to this badge.
*
*/
public int getVerticalBadgeMargin() {
return badgeMarginV;
}
/**
* Set the horizontal/vertical margin from the target View that is applied to this badge.
*
* @param badgeMargin the margin in pixels.
*/
public void setBadgeMargin(int badgeMargin) {
this.badgeMarginH = badgeMargin;
this.badgeMarginV = badgeMargin;
}
/**
* Set the horizontal/vertical margin from the target View that is applied to this badge.
*
* @param horizontal margin in pixels.
* @param vertical margin in pixels.
*/
public void setBadgeMargin(int horizontal, int vertical) {
this.badgeMarginH = horizontal;
this.badgeMarginV = vertical;
}
/**
* Returns the color value of the badge background.
*
*/
public int getBadgeBackgroundColor() {
return badgeColor;
}
/**
* Set the color value of the badge background.
*
* @param badgeColor the badge background color.
*/
public void setBadgeBackgroundColor(int badgeColor) {
this.badgeColor = badgeColor;
badgeBg = getDefaultBackground();
}
private int dipToPixels(int dip) {
Resources r = getResources();
float px = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, r.getDisplayMetrics());
return (int) px;
}
}
 来自CODE的代码片
snippet_file_0.txt



main.xml: 

<a target=_blank id="L1" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;">   1</a><a target=_blank id="L2" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;">   2</a><a target=_blank id="L3" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;">   3</a><a target=_blank id="L4" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;">   4</a><a target=_blank id="L5" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;">   5</a><a target=_blank id="L6" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;">   6</a><a target=_blank id="L7" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;">   7</a><a target=_blank id="L8" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;">   8</a><a target=_blank id="L9" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;">   9</a><a target=_blank id="L10" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;">  10</a><a target=_blank id="L11" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;">  11</a><a target=_blank id="L12" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;">  12</a><a target=_blank id="L13" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;">  13</a><a target=_blank id="L14" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;">  14</a><a target=_blank id="L15" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;">  15</a><a target=_blank id="L16" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;">  16</a><a target=_blank id="L17" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;">  17</a><a target=_blank id="L18" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;">  18</a><a target=_blank id="L19" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;">  19</a><a target=_blank id="L20" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;">  20</a><a target=_blank id="L21" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;">  21</a><a target=_blank id="L22" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;">  22</a><a target=_blank id="L23" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;">  23</a><a target=_blank id="L24" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;">  24</a><a target=_blank id="L25" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;">  25</a><a target=_blank id="L26" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;">  26</a><a target=_blank id="L27" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;">  27</a><a target=_blank id="L28" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;">  28</a><a target=_blank id="L29" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;">  29</a><a target=_blank id="L30" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;">  30</a><a target=_blank id="L31" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L31" rel="#L31" style="color: rgb(102, 102, 102); text-decoration: none;">  31</a><a target=_blank id="L32" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L32" rel="#L32" style="color: rgb(102, 102, 102); text-decoration: none;">  32</a><a target=_blank id="L33" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L33" rel="#L33" style="color: rgb(102, 102, 102); text-decoration: none;">  33</a><a target=_blank id="L34" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L34" rel="#L34" style="color: rgb(102, 102, 102); text-decoration: none;">  34</a><a target=_blank id="L35" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L35" rel="#L35" style="color: rgb(102, 102, 102); text-decoration: none;">  35</a><a target=_blank id="L36" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L36" rel="#L36" style="color: rgb(102, 102, 102); text-decoration: none;">  36</a><a target=_blank id="L37" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L37" rel="#L37" style="color: rgb(102, 102, 102); text-decoration: none;">  37</a><a target=_blank id="L38" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L38" rel="#L38" style="color: rgb(102, 102, 102); text-decoration: none;">  38</a><a target=_blank id="L39" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L39" rel="#L39" style="color: rgb(102, 102, 102); text-decoration: none;">  39</a><a target=_blank id="L40" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L40" rel="#L40" style="color: rgb(102, 102, 102); text-decoration: none;">  40</a><a target=_blank id="L41" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L41" rel="#L41" style="color: rgb(102, 102, 102); text-decoration: none;">  41</a><a target=_blank id="L42" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L42" rel="#L42" style="color: rgb(102, 102, 102); text-decoration: none;">  42</a><a target=_blank id="L43" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L43" rel="#L43" style="color: rgb(102, 102, 102); text-decoration: none;">  43</a><a target=_blank id="L44" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L44" rel="#L44" style="color: rgb(102, 102, 102); text-decoration: none;">  44</a><a target=_blank id="L45" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L45" rel="#L45" style="color: rgb(102, 102, 102); text-decoration: none;">  45</a><a target=_blank id="L46" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L46" rel="#L46" style="color: rgb(102, 102, 102); text-decoration: none;">  46</a><a target=_blank id="L47" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L47" rel="#L47" style="color: rgb(102, 102, 102); text-decoration: none;">  47</a><a target=_blank id="L48" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L48" rel="#L48" style="color: rgb(102, 102, 102); text-decoration: none;">  48</a><a target=_blank id="L49" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L49" rel="#L49" style="color: rgb(102, 102, 102); text-decoration: none;">  49</a><a target=_blank id="L50" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L50" rel="#L50" style="color: rgb(102, 102, 102); text-decoration: none;">  50</a><a target=_blank id="L51" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L51" rel="#L51" style="color: rgb(102, 102, 102); text-decoration: none;">  51</a><a target=_blank id="L52" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L52" rel="#L52" style="color: rgb(102, 102, 102); text-decoration: none;">  52</a><a target=_blank id="L53" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L53" rel="#L53" style="color: rgb(102, 102, 102); text-decoration: none;">  53</a><a target=_blank id="L54" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L54" rel="#L54" style="color: rgb(102, 102, 102); text-decoration: none;">  54</a><a target=_blank id="L55" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L55" rel="#L55" style="color: rgb(102, 102, 102); text-decoration: none;">  55</a><a target=_blank id="L56" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L56" rel="#L56" style="color: rgb(102, 102, 102); text-decoration: none;">  56</a><a target=_blank id="L57" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L57" rel="#L57" style="color: rgb(102, 102, 102); text-decoration: none;">  57</a><a target=_blank id="L58" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L58" rel="#L58" style="color: rgb(102, 102, 102); text-decoration: none;">  58</a><a target=_blank id="L59" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L59" rel="#L59" style="color: rgb(102, 102, 102); text-decoration: none;">  59</a><a target=_blank id="L60" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L60" rel="#L60" style="color: rgb(102, 102, 102); text-decoration: none;">  60</a><a target=_blank id="L61" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L61" rel="#L61" style="color: rgb(102, 102, 102); text-decoration: none;">  61</a><a target=_blank id="L62" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L62" rel="#L62" style="color: rgb(102, 102, 102); text-decoration: none;">  62</a><a target=_blank id="L63" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L63" rel="#L63" style="color: rgb(102, 102, 102); text-decoration: none;">  63</a><a target=_blank id="L64" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L64" rel="#L64" style="color: rgb(102, 102, 102); text-decoration: none;">  64</a><a target=_blank id="L65" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L65" rel="#L65" style="color: rgb(102, 102, 102); text-decoration: none;">  65</a><a target=_blank id="L66" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L66" rel="#L66" style="color: rgb(102, 102, 102); text-decoration: none;">  66</a><a target=_blank id="L67" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L67" rel="#L67" style="color: rgb(102, 102, 102); text-decoration: none;">  67</a><a target=_blank id="L68" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L68" rel="#L68" style="color: rgb(102, 102, 102); text-decoration: none;">  68</a><a target=_blank id="L69" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L69" rel="#L69" style="color: rgb(102, 102, 102); text-decoration: none;">  69</a><a target=_blank id="L70" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L70" rel="#L70" style="color: rgb(102, 102, 102); text-decoration: none;">  70</a><a target=_blank id="L71" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L71" rel="#L71" style="color: rgb(102, 102, 102); text-decoration: none;">  71</a><a target=_blank id="L72" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L72" rel="#L72" style="color: rgb(102, 102, 102); text-decoration: none;">  72</a><a target=_blank id="L73" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L73" rel="#L73" style="color: rgb(102, 102, 102); text-decoration: none;">  73</a><a target=_blank id="L74" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L74" rel="#L74" style="color: rgb(102, 102, 102); text-decoration: none;">  74</a><a target=_blank id="L75" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L75" rel="#L75" style="color: rgb(102, 102, 102); text-decoration: none;">  75</a><a target=_blank id="L76" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L76" rel="#L76" style="color: rgb(102, 102, 102); text-decoration: none;">  76</a><a target=_blank id="L77" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L77" rel="#L77" style="color: rgb(102, 102, 102); text-decoration: none;">  77</a><a target=_blank id="L78" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L78" rel="#L78" style="color: rgb(102, 102, 102); text-decoration: none;">  78</a><a target=_blank id="L79" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L79" rel="#L79" style="color: rgb(102, 102, 102); text-decoration: none;">  79</a><a target=_blank id="L80" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L80" rel="#L80" style="color: rgb(102, 102, 102); text-decoration: none;">  80</a><a target=_blank id="L81" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L81" rel="#L81" style="color: rgb(102, 102, 102); text-decoration: none;">  81</a><a target=_blank id="L82" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L82" rel="#L82" style="color: rgb(102, 102, 102); text-decoration: none;">  82</a><a target=_blank id="L83" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L83" rel="#L83" style="color: rgb(102, 102, 102); text-decoration: none;">  83</a><a target=_blank id="L84" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L84" rel="#L84" style="color: rgb(102, 102, 102); text-decoration: none;">  84</a><a target=_blank id="L85" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L85" rel="#L85" style="color: rgb(102, 102, 102); text-decoration: none;">  85</a><a target=_blank id="L86" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L86" rel="#L86" style="color: rgb(102, 102, 102); text-decoration: none;">  86</a><a target=_blank id="L87" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L87" rel="#L87" style="color: rgb(102, 102, 102); text-decoration: none;">  87</a><a target=_blank id="L88" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L88" rel="#L88" style="color: rgb(102, 102, 102); text-decoration: none;">  88</a><a target=_blank id="L89" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L89" rel="#L89" style="color: rgb(102, 102, 102); text-decoration: none;">  89</a><a target=_blank id="L90" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L90" rel="#L90" style="color: rgb(102, 102, 102); text-decoration: none;">  90</a><a target=_blank id="L91" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L91" rel="#L91" style="color: rgb(102, 102, 102); text-decoration: none;">  91</a><a target=_blank id="L92" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L92" rel="#L92" style="color: rgb(102, 102, 102); text-decoration: none;">  92</a><a target=_blank id="L93" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L93" rel="#L93" style="color: rgb(102, 102, 102); text-decoration: none;">  93</a><a target=_blank id="L94" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L94" rel="#L94" style="color: rgb(102, 102, 102); text-decoration: none;">  94</a><a target=_blank id="L95" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L95" rel="#L95" style="color: rgb(102, 102, 102); text-decoration: none;">  95</a><a target=_blank id="L96" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L96" rel="#L96" style="color: rgb(102, 102, 102); text-decoration: none;">  96</a><a target=_blank id="L97" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L97" rel="#L97" style="color: rgb(102, 102, 102); text-decoration: none;">  97</a><a target=_blank id="L98" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L98" rel="#L98" style="color: rgb(102, 102, 102); text-decoration: none;">  98</a><a target=_blank id="L99" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L99" rel="#L99" style="color: rgb(102, 102, 102); text-decoration: none;">  99</a><a target=_blank id="L100" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L100" rel="#L100" style="color: rgb(102, 102, 102); text-decoration: none;"> 100</a><a target=_blank id="L101" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L101" rel="#L101" style="color: rgb(102, 102, 102); text-decoration: none;"> 101</a><a target=_blank id="L102" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L102" rel="#L102" style="color: rgb(102, 102, 102); text-decoration: none;"> 102</a><a target=_blank id="L103" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L103" rel="#L103" style="color: rgb(102, 102, 102); text-decoration: none;"> 103</a><a target=_blank id="L104" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L104" rel="#L104" style="color: rgb(102, 102, 102); text-decoration: none;"> 104</a><a target=_blank id="L105" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L105" rel="#L105" style="color: rgb(102, 102, 102); text-decoration: none;"> 105</a><a target=_blank id="L106" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L106" rel="#L106" style="color: rgb(102, 102, 102); text-decoration: none;"> 106</a><a target=_blank id="L107" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L107" rel="#L107" style="color: rgb(102, 102, 102); text-decoration: none;"> 107</a><a target=_blank id="L108" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L108" rel="#L108" style="color: rgb(102, 102, 102); text-decoration: none;"> 108</a><a target=_blank id="L109" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L109" rel="#L109" style="color: rgb(102, 102, 102); text-decoration: none;"> 109</a><a target=_blank id="L110" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L110" rel="#L110" style="color: rgb(102, 102, 102); text-decoration: none;"> 110</a><a target=_blank id="L111" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L111" rel="#L111" style="color: rgb(102, 102, 102); text-decoration: none;"> 111</a><a target=_blank id="L112" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L112" rel="#L112" style="color: rgb(102, 102, 102); text-decoration: none;"> 112</a><a target=_blank id="L113" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L113" rel="#L113" style="color: rgb(102, 102, 102); text-decoration: none;"> 113</a><a target=_blank id="L114" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L114" rel="#L114" style="color: rgb(102, 102, 102); text-decoration: none;"> 114</a><a target=_blank id="L115" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L115" rel="#L115" style="color: rgb(102, 102, 102); text-decoration: none;"> 115</a><a target=_blank id="L116" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L116" rel="#L116" style="color: rgb(102, 102, 102); text-decoration: none;"> 116</a><a target=_blank id="L117" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L117" rel="#L117" style="color: rgb(102, 102, 102); text-decoration: none;"> 117</a><a target=_blank id="L118" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L118" rel="#L118" style="color: rgb(102, 102, 102); text-decoration: none;"> 118</a><a target=_blank id="L119" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L119" rel="#L119" style="color: rgb(102, 102, 102); text-decoration: none;"> 119</a><a target=_blank id="L120" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L120" rel="#L120" style="color: rgb(102, 102, 102); text-decoration: none;"> 120</a><a target=_blank id="L121" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L121" rel="#L121" style="color: rgb(102, 102, 102); text-decoration: none;"> 121</a><a target=_blank id="L122" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L122" rel="#L122" style="color: rgb(102, 102, 102); text-decoration: none;"> 122</a><a target=_blank id="L123" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L123" rel="#L123" style="color: rgb(102, 102, 102); text-decoration: none;"> 123</a><a target=_blank id="L124" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L124" rel="#L124" style="color: rgb(102, 102, 102); text-decoration: none;"> 124</a><a target=_blank id="L125" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L125" rel="#L125" style="color: rgb(102, 102, 102); text-decoration: none;"> 125</a><a target=_blank id="L126" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L126" rel="#L126" style="color: rgb(102, 102, 102); text-decoration: none;"> 126</a><a target=_blank id="L127" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L127" rel="#L127" style="color: rgb(102, 102, 102); text-decoration: none;"> 127</a><a target=_blank id="L128" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L128" rel="#L128" style="color: rgb(102, 102, 102); text-decoration: none;"> 128</a><a target=_blank id="L129" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L129" rel="#L129" style="color: rgb(102, 102, 102); text-decoration: none;"> 129</a><a target=_blank id="L130" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L130" rel="#L130" style="color: rgb(102, 102, 102); text-decoration: none;"> 130</a>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<!-- 影藏TabWidget,太丑了,用我们的radiobutton代替 -->
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:focusable="false"
android:visibility="gone" >
</TabWidget>
<!-- activity中间显示类容 -->
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/RadioG" >
</FrameLayout>
<!-- 代替TabWidget,实现按钮选项卡 -->
<RadioGroup
android:id="@+id/RadioG"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:gravity="bottom"
android:orientation="horizontal" >
<!-- 第一个RadioButton android:layout_weight="1",3个按钮都是1,则是平分手机宽度,适应不同手机分辨率
style是values文件下面的一个xml文件,控制RadioButton的属性用
android:background 值是一个selector形式的xml,当该按钮呗选中时候,会自动切换背景
android:drawableTop 值是在控件上面加上一个图片,这里使用的是selector形式的xml,里面配置有2张图片,选中和非选中时候,会自动换图片
-->
<RadioButton
android:id="@+id/home_id"
style="@style/main_radio_botton"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="@drawable/bar_selector"
android:checked="true"
android:drawableTop="@drawable/bar_ico_selector1"
android:gravity="center"
android:text="首页"
android:textSize="12sp" />
<!-- 第2个RadioButton -->
<RadioButton
android:id="@+id/lift_id"
style="@style/main_radio_botton"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="@drawable/bar_center_bg_seletor"
android:drawableTop="@drawable/bar_ico_seletor2"
android:gravity="center"
android:text="大厅"
android:textSize="12sp" />
<!-- 第3个RadioButton -->
<RadioButton
android:id="@+id/more_id"
style="@style/main_radio_botton"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="@drawable/bar_selector"
android:drawableTop="@drawable/bar_ico_seletor3"
android:gravity="center"
android:text="更多"
android:textSize="12sp" />
</RadioGroup>
<!-- 实现提醒信息用的 -->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:background="#00000000"
android:layout_alignParentBottom="true"
>
<!-- 显示提醒信息的button android:layout_weight=1 是3个butto,平分手机界面的宽度-->
<Button
android:id="@+id/bt"
android:layout_height="fill_parent"
android:layout_width="0dp"
android:layout_weight="1"
android:background="#00000000"
/>
<!-- 占位置的button,以便适应不同分辨率手机 -->
<Button
android:visibility="invisible"
android:layout_height="fill_parent"
android:layout_width="0dp"
android:layout_weight="1"
/>
<!-- 占位置的button,以便适应不同分辨率手机 -->
<Button
android:visibility="invisible"
android:layout_height="fill_parent"
android:layout_width="0dp"
android:layout_weight="1"
/>
</LinearLayout>
</RelativeLayout>
</TabHost>
</RelativeLayout>
 来自CODE的代码片
snippet_file_0.txt

里面有简单注解的


styles.xml


<a target=_blank id="L1" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;">  1</a><a target=_blank id="L2" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;">  2</a><a target=_blank id="L3" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;">  3</a><a target=_blank id="L4" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;">  4</a><a target=_blank id="L5" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;">  5</a><a target=_blank id="L6" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;">  6</a><a target=_blank id="L7" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;">  7</a><a target=_blank id="L8" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;">  8</a><a target=_blank id="L9" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;">  9</a><a target=_blank id="L10" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a><a target=_blank id="L11" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a><a target=_blank id="L12" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a><a target=_blank id="L13" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a><a target=_blank id="L14" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a><a target=_blank id="L15" href="http://blog.csdn.net/hhhccckkk/article/details/16981561#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a>
<resources>
<style name="main_radio_botton">
<item name="android:gravity">bottom</item>
<!-- 让dadiobutton不显示那个button -->
<item name="android:button">@null</item>
<item name="android:paddingTop">6dp</item>
<item name="android:textSize">12sp</item>
<!--让3个button一样大小-->
<item name="android:layout_weight">1.0</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">#ffffff</item>
</style>
</resources>
 来自CODE的代码片
snippet_file_0.txt


注意 :在提醒button  xml 布局加上 android:focusable="false"  不然可能,点击切换按钮,不切换


//-------------------------------自己-----------------------------------------

如原作者所说的办法,使用Button遮挡住,然后BadgeView绑定到Button上面。

(1)还有几个比较小的问题,如何使红点显示的位置比较好。

比如显示在这里RadioButton的DrawTop的图片上。由于这里RadioButton的是屏幕宽度的1/3,所以直接设置
badge.setBadgePosition(BadgeView.POSITION_TOP_RIGHT);

必然是红点不在图片上。

自己的做法是:badge.setBadgeMargin(w_screen / 6 - 30, 0); // 圆心位置

屏幕宽度的1/3就是RadioButton的宽度,然后RadioButton的1/2,此时位置为图片的水平中心,再减去30,差不多就是图片的最右边了。


求更好的方法。


0 0
原创粉丝点击