查看(按钮)没有得到时可见安卓targetSdkVersion =" 17"在manifest.xml的为Android 4.1.2未指定(三星Galaxy S2 GT-I9100

2023-09-08 10:18:01 作者:迩何曾让涐懂

我用的片段和显示文本动画中的每个片段。在我的片段活动我已经采取了下一步按钮,并取得了不可见。之后,文字动画在片段结束后,我提出的按钮可见和应用TranslateAnimation。当我和果冻豆测试上三星Galaxy S2,按钮是没有得到明显的首位。这发生在我删除属性,

I have used Fragments and displaying a text animation in each fragment. Inside my Fragment activity I have taken a "next" button and have made it invisible. After the text animation is finished in a fragment, I am making the button visible and applying TranslateAnimation. When I test it on Samsung Galaxy s2 with Jelly Bean, the button is not getting visible on the first place. This happens when I remove the attribute,

 android:targetSdkVersion="17"

从清单文件。当我指定它回来,动画工作正常,按钮变得明显了。然而,它的工作原理找到任何其他设备与果冻豆,甚至三星Galaxy S2,上面有ICS,即使没有指定targetSdkVersion。

from the manifest file. When I specify it back, the animation works fine and button gets visible too. However, it works find on any other device with Jelly Bean or even Samsung Galaxy s2 with ICS on it, even without specifying targetSdkVersion.

我不知道其他人是否也面临着同样的问题,这可能问题会。

I wonder if anyone else is also facing the same problem and what could the problem be.

编辑:除了我提到的问题,我还观察到,在不指定targetSdkVersion是,与内存不足的错误改变几页(片段),在他们的图像后,应用程序崩溃。这也是特别为Android操作系统版本4.1.2(果冻豆)。

In addition to the problem I mentioned, I also observed that when targetSdkVersion is not specified, the application crashes with outOfMemory error after changing several pages(Fragments) with Images in them. This is also particularly for Android OS version 4.1.2 (Jelly Bean).

推荐答案

每一个移动不与核Android的到来。它是专为特定的手机。 所以它是提供分和Android的清单中最大的版本总是最佳实践

Every mobile is not coming with core Android. it is customized for specified mobiles. so it is always best practices to provide min and max version of android in manifest