English 中文(简体)
习俗形象 对第7号及以下段落的答复中缺失的意见
原标题:Custom ImageViews missing when running app in API 7 and below

我面临一个棘手的问题。 我的安乐施应用在我的电话上(Android edition 2.3.5, AP 9),涉及我的一些支持者(Android edition >= 2.2,APIC >=8,在APIC8、13、15上测试,而不是在我的其他支持者(Android edition < 2.2,APIC <8,在4、7上测试)。 摄像机中带有APIC和APIC的摄像机;8,但我的一些习俗图像在屏幕上消失。 否则,一切照样工作。

我使用了该工具的最新版本lint,以确定我是否使用过任何未经APIC <支持的方法;8,但我确定的唯一情况是,我使用一种方法,要求第4号,在设定和roid时不使用有关APIC的错误信息:minSdkVersion=4, 和roid:targetSdkVersion=4,并针对4。

我还研究了,因为这一错误似乎发生在APIC7至8之间,但找不到任何东西。 我也检查了我对开发商的《形象评论》中的所有方法,以便了解是否有任何方法需要APIC >7。

是否有人对问题可能是什么提出任何其他建议?

<><>Edit>:

我的主要卷宗是:

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"
  android:id="@+id/gameLayoutID"
  >  

<fragment
    android:id="@+id/groundMenuID"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    class="com.foo.bar.someClass"/>

<fragment
    android:id="@+id/topLeftMenuID"
    android:layout_width="@dimen/TopLeftRightMenu_width"
    android:layout_height="@dimen/TopMenu_height"
    android:layout_alignParentTop="true"
    android:layout_alignParentLeft="true"
    class="com.foo.bar.someClass"/>

<fragment
    android:id="@+id/topRightMenuID"
    android:layout_width="@dimen/TopLeftRightMenu_width"
    android:layout_height="@dimen/TopMenu_height"
    android:layout_alignParentTop="true"
    android:layout_alignParentRight="true"
    class="com.foo.bar.someClass"/>

<fragment
    android:id="@+id/leftMenuID"
    android:layout_width="wrap_content"
    android:layout_height="fill_parent"
    android:layout_alignParentLeft="true"
    android:layout_above="@id/groundMenuID"
    android:layout_below="@id/topLeftMenuID"
    class="com.foo.bar.someClass"/>

<fragment
    android:id="@+id/rightMenuID"
    android:layout_width="wrap_content"
    android:layout_height="fill_parent"
    android:layout_alignParentRight="true"
    android:layout_above="@id/groundMenuID"
    android:layout_below="@id/topRightMenuID"
    class="com.foo.bar.someClass"/> 

<fragment
    android:id="@+id/topMenuID"
    android:layout_width="fill_parent"
    android:layout_height="@dimen/TopMenu_height"
    android:layout_alignParentTop="true"
    android:layout_toRightOf="@id/topLeftMenuID"
    android:layout_toLeftOf="@id/topRightMenuID"
    class="com.foo.bar.someClass"/>

<com.foo.bar.CustomImageViewLayout
    android:id="@+id/wheelMenuID"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"   
    android:layout_toRightOf="@id/leftMenuID"
    android:layout_toLeftOf="@id/rightMenuID"
    android:layout_below="@id/topMenuID"
    android:layout_above="@id/groundMenuID"/> 

<fragment
    android:id="@+id/figurePassageID"
    android:layout_width="fill_parent"
    android:layout_height="@dimen/figurePassage_height"
    android:layout_above="@id/groundMenuID"
    class="com.foo.bar.someClass"/>


</RelativeLayout>

这些碎块通过在CreateView方法上的标准分级被压缩,不管其是APIC。 至于“习俗形象”类......它有很多法典,我不相信我是否愿意在公开场合(这是我的主要知识产权)。 我确信这一错误没有发生,但我将再次加以核实。 如果我不这样做,我就将努力遵守某些法典。

问题回答

Try changing all your usage of match_parent to fill_parent.





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签