TabGroup 在切换tab时 动画效果时有时无 不知道有没有人遇到过这种情况 就是继承了TabHost然后在setCurrentTab()方法里调用动画效果

解决方案 »

  1.   

    http://blog.csdn.net/hellogv/article/details/6057174
    强烈建议楼主看看这篇文章。。
      

  2.   

     public void setViewImage(ImageView v, String value) {
         Bitmap bitmap = WebBitMap.getHttpBitmap(value);
         ((ImageView) v).setImageBitmap(bitmap);
        }     WebBitMap类,自定义,获取到BitMap
    public class WebBitMap {
    public static Bitmap getHttpBitmap(String url) {
    URL myFileUrl = null;
    Bitmap bitmap = null;
    try {
    //Log.d(TAG, url);
    myFileUrl = new URL(url);
    } catch (MalformedURLException e) {
    e.printStackTrace();
    }
    try {
    HttpURLConnection conn = (HttpURLConnection) myFileUrl
    .openConnection();
    conn.setConnectTimeout(0);
    conn.setDoInput(true);
    conn.connect();
    InputStream is = conn.getInputStream();
    bitmap = BitmapFactory.decodeStream(is);
    is.close();
    } catch (IOException e) {
    e.printStackTrace();
    }
    return bitmap;
    }
    }