2 centigram centigram 于 2016.09.09 16:00 提问

在线等 蠢新 安卓 新建xml 求助

设置图片的渐变淡出 效果
新建 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();
}

}

2个回答

qq_32929105
qq_32929105   2016.09.09 16:34

图片说明

qq_32929105
qq_32929105 http://blog.csdn.net/fengyufuchen/article/details/44258613
一年多之前 回复
centigram
centigram 回复qq_32929105: 就上面 那段 额 xml文件
一年多之前 回复
qq_32929105
qq_32929105 回复centigram: 报的什么错误
一年多之前 回复
centigram
centigram R.id.XXX 也报错哦
一年多之前 回复
Marksinoberg
Marksinoberg   Ds   Rxr 2016.09.09 17:26
 creen resolution 800x480, API Level 20' which is compatible, but will actually be displayed with another more specific version of the layout.

不匹配引起的啊。换成API23的试试吧。

centigram
centigram
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!