首页 新闻 会员 周边 捐助

求助 蠢新 安卓 图片渐变淡出效果错误

0
[待解决问题]

设置图片的渐变淡出 效果
新建 xml
在Activity中无法引用 报错:
'default' is not a best match for any device/locale combination.
[2016-09-09 15:34:27 - Pro_UserInfo] Displaying it with ', , Locale Language ___Region __, Left To Right, sw320dp, w320dp, h533dp, Normal Screen, Long screen aspect ratio, Portrait Orientation, Normal, Day time, High Density, Finger-based touchscreen, Soft keyboard, No keyboard, Exposed navigation, Trackball navigation, Screen resolution 800x480, API Level 20' which is compatible, but will actually be displayed with another more specific version of the layout.

Activity:
public class AuditActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    ViewFlipper viewFilpper = (ViewFlipper) findViewById(R.drawable.gezhi);
    viewFilpper.setInAnimation(AnimationUtils.loadAnimation(this,R.anim.push_in));
    viewFilpper.setOutAnimation(AnimationUtils.loadAnimation(this,
    R.anim.push_out));
    viewFilpper.startFlipping();
}

}

咕咕叽的主页 咕咕叽 | 菜鸟二级 | 园豆:214
提问于:2016-09-09 16:08
< >
分享
所有回答(1)
0

你的代码中ViewFlipper为什么findviewbyid后面是R.drawable呢 应该是id不是?

程序员大亨 | 园豆:286 (菜鸟二级) | 2016-09-09 19:52

id 也无法引用

支持(0) 反对(0) 咕咕叽 | 园豆:214 (菜鸟二级) | 2016-09-12 10:18
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册