android常见问题合集1

一. listview滑动时,显示数据混乱。

方法:

     View accountListView = null;
        ListViewHandler handler = new ListViewHandler();
//        if (convertView != null){
            accountListView = convertView;
//        }else
//        {

accountListView = LayoutInflater.from(context).inflate(R.layout.accountlist_item_layout, null);

}

 

android:cacheColorHint="#00000000"  去掉滑动时产生的黑色背景

 

 

//设置窗体全屏

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

 

//设置窗体始终点亮

getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,

      WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

 

//设置窗体背景模糊

getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
                WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

你可能感兴趣的:(滑动混乱)