English 中文(简体)
清单 观点集中
原标题:Android ListView is loosing focus

www.un.org/Depts/DGACM/index_spanish.htm Hi

我的布局包括<>ListView。 本清单意见中的每一种观点(行文)都是一条线性文件,其中载有3项意见——Box,图像。 意见和案文(Horizontal)

我的问题就是这样——如果我利用球球标突出的一行的话,它就发挥了作用(背景颜色是 Orange色)。 我在强调一行时点击球,把目前展示的布局转向另一个排球(字句)。 现在,如果重新展示《名单》的原始布局(我储存着重新编造该词的场合,它不会再重造!)的话,被着重指出的行号是NOT。 据Google说,这是K,而且亮点一旦我使用球,就会立即回头。

真正的问题是,即使我现在利用球球跳出或缩小名单,名单文中也没有提及其他行文。 相反,在每一行中,由于滚动而应当加以强调,案文意见被选定,我知道,既然我把案文意见定在准时(TruncateAt.MAR RequestE)。

ONLY>/strong> 如果ICLICK 轨道球,那么该亮点就可追溯到目前其文本意见的行文。

我试图解决这一问题,将案文意见确定为不可集中、不可点击和残疾。 我甚至试图在《名单》上设定目标,但都没有成功。

Please help me... Thank you!

问题回答

I have a layout which contains a ListView. Each View (row) in this ListView is a LinearLayout which contains 3 Views - CheckBox, ImageView and a TextView (Horizontal)

相反,使用<代码>CheckedTextView和>tmageView,并使用<代码>android:choiceMode,附在<代码>上。

Now, if re-displays the original layout with the ListView (I store its instance for re-displaying it, it is not being re-created!), the highlighted row is NOT highlighted anymore.

不要这样做。 使用<条码> 密码<<>,或改变<条码>的可见度,以及如果你认为有必要在<>条码>中保留所有内容,则不论你重新显示,或说什么。 或者,正如Lew先生所建议的那样,在你点击<条码>ListView时,再发射另一条<代号>

我怀疑这些结合将有助于解决你的问题。





相关问题
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 ...