在写这个问题之前,我已经阅读了以下答案/文章:
Android软键盘默认设置为平移,这意味着它将保持键盘上方的所有可编辑区域.然而,它不泛不够.当我运行它并按下靠近屏幕底部的edittext时,键盘出现并且edittext向上移动但不足以查看其中键入的内容.我用过/试过以下内容:
android:windowSoftInputMode="adjustPan"在活动的清单中.这没有任何区别.我也试图把价值观adjustUnspecified和adjustResize太.它们都不起作用.
<uses-sdk android:minSdkVersion="3" />在清单文件中.我的应用程序针对sdk 2.1及更高版本.尽管如此,我尝试过它并没有奏效.
使用ScrollView.也不起作用.
有没有办法手动管理按下特定编辑文本时键盘执行多少"平移".
下面是我的xml文件.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff">
<ImageView
android:id="@+id/header"
android:layout_width="320dip"
android:layout_height="86dip"
android:background="@drawable/header_bg">
</ImageView>
<ImageView
android:layout_width="320dip"
android:layout_height="200dip"
android:layout_alignParentBottom="true"
android:background="@drawable/bg1_btm">
</ImageView>
<TextView android:text="Hostname"
android:id="@+id/lbl_hostname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/header"/>
<TextView android:text="(Current)"
android:id="@+id/lbl_hostname_current"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/lbl_hostname"
android:layout_below="@id/header" />
<EditText android:text="EditText"
android:id="@+id/editText_hostname"
android:layout_below="@id/lbl_hostname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLength="25">
</EditText>
<TextView android:text="Registration URL"
android:id="@+id/lbl_registration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/editText_hostname" />
<TextView android:text="(Current)"
android:id="@+id/lbl_registration_current"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/editText_hostname"
android:layout_toRightOf="@id/lbl_registration" />
<TextView android:text="http://"
android:id="@+id/lbl_url_prefiz" …Run Code Online (Sandbox Code Playgroud) 我正在查看设备上的日志以查找我的应用程序,但是,我看到很多由AwesomePlayer生成的日志.这是播放视频的应用使用的默认媒体播放器吗?我不知道为什么会这样.这是一个默认的Android应用程序吗?下面是一个样本,看看它是什么样的.
设备:Android 3.2 Galaxy 10.1
任何提示将不胜感激.谢谢
02-09 02:23:08.660: D/AwesomePlayer(240): getPosition
02-09 02:23:08.660: D/AwesomePlayer(240): positionUs = mVideoTimeUs
02-09 02:23:08.660: I/AwesomePlayer(240): position is : 440560000
02-09 02:23:08.660: D/AwesomePlayer(240): getTimeForOffset
02-09 02:23:08.660: D/AwesomePlayer(240): notifyListener_l
02-09 02:23:08.660: D/AwesomePlayer(240): getCachedDuration_l
02-09 02:23:08.660: D/AwesomePlayer(240): getBitrate
02-09 02:23:08.660: D/AwesomePlayer(240): getBitrate
02-09 02:23:08.660: D/AwesomePlayer(240): postBufferingEvent_l
02-09 02:23:09.080: D/AwesomePlayer(240): isPlaying
02-09 02:23:09.080: D/AwesomePlayer(240): getPosition
02-09 02:23:09.080: D/AwesomePlayer(240): positionUs = mVideoTimeUs
02-09 02:23:09.080: I/AwesomePlayer(240): position is : 440960000
02-09 02:23:09.590: E/AwesomePlayer(240): on video lag update
02-09 02:23:09.660: D/AwesomePlayer(240): onBufferingUpdate
02-09 …Run Code Online (Sandbox Code Playgroud) 我正在尝试配置quilt以便能够进行make并进行安装以便在mac上构建csipsimple(http://code.google.com/p/csipsimple/wiki/HowToBuild),但是,我遇到了以下问题当我尝试配置被子.我安装了macports.
Sorry, you have a version of sed which doesn't understand constructs
of the form (foo|bar). quilt needs it. If you have access to
a version of sed which does understand such constructs, you can supply
its path with the '--with-sed=' option.
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助.