微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > 在阿拉伯语下,按menu键,菜单列表会从左刷新到右

在阿拉伯语下,按menu键,菜单列表会从左刷新到右

时间:10-02 整理:3721RD 点击:

[DESCRIPTION]

在阿拉伯语等RTL语言下,按menu键,菜单列表会从左刷新到右,出现闪烁(浏览器最明显,因为子菜单多)。

[SOLUTION]

请按如下方式修改:
\php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks\base\core\java\android\widget\AbsListView.java
public void ontouchModeChanged(boolean isInTouchMode) {
if (isInTouchMode) {
// Get rid of the selection when we enter touch mode
hideSelector();
// Layout, but only if we already have done so previously.
// (Otherwise may clobber a LAYOUT_SYNC layout that was requested to
restore
// state.)
if (getHeight() > 0 && getChildCount() > 0) {
// We do not lose focus initiating a touch (since AbsListView is focusable
in
// touch mode). Force an initial layout to get rid of the selection.
// layoutChildren(); // 註解掉這行
requestLayout(); // 加上這行
}
updateSelectorState();
...
}

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top