【发布时间】:2014-04-13 21:56:45
【问题描述】:
我的目标是 Android 4.2.2 级别 17 和 Eclipse 4.3.1.v20130911-1000。我创建了一个 AVD,它使用HAXM 模拟 Intel Atom (x86)。这是它的样子......
还有,这是我的活动代码的 sn-p...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="1" >
<ImageView
android:id="@+id/bannerImage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:contentDescription="@string/banner"
android:scaleType="fitXY"
android:src="@drawable/logo" >
</ImageView>
<CheckBox android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/expiredcheckBox" android:text="@string/show_me_expired_content"></CheckBox>
<TextView android:id="@+id/textLabel1" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/category_"></TextView>
<Spinner android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/comboBox" android:entries="@array/Spinner_array" android:prompt="@string/spinnerPrompt"></Spinner>
<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="visible" >
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/linearLayoutScroll" android:orientation="vertical"></LinearLayout>
</ScrollView>
</LinearLayout>
活动代码动态地将 TextView 对象添加到 ScrollView 内的“linearLayoutScroll”。我启动模拟器,调试我的程序,但是,模拟器不会用鼠标中键滚动。我以前遇到过这个问题,但是,对于我的生活,我不记得如何解决它。有人能解释一下吗?
【问题讨论】:
-
哼..用鼠标中键?您是否尝试按鼠标左键滚动?我不确定是否清楚地了解您的问题。
-
嗯,鼠标中键在 AVD AFAIK 中没有任何作用。就像上面所说的 Fllo 一样,只需使用鼠标左键并按住它的同时上下拖动鼠标即可滚动。
-
@Fllo 我正在尝试使用鼠标中键滚动视图。滚动条显示,但没有滚动。
-
@ChuongPham 我会尝试并报告。
-
按照建议,在移动鼠标的同时按住左键会滚动。我不确定为什么不支持滚轮滚动。
标签: android eclipse android-emulator