android bug fix
16lz
2021-01-23
android widgets:
1: AutoCompleteTextView
1.1 AutoCompleteTextView dropdown item can not be shown correctly .
in 320*240 phonens it may show above AutoCompleteTextView not bellow.
this problem is caused by an attibute: android:layout_margin
this code will cause err showing as upper:
<AutoCompleteTextView android:id="@+id/wf_input_edit"android:layout_width="180dip" android:layout_height="wrap_content"android:textSize="14dip" android:layout_margin="20dip"android:layout_gravity="center"android:singleLine="true"android:completionThreshold="1"android:hint="@string/citysearch_hint2" />
after change it to follws every thing seems to be fine (on 320*240 & 800*480 ) the only thing i changed is the "layout_margin"
<AutoCompleteTextView android:id="@+id/wf_input_edit"android:layout_width="180dip" android:layout_height="wrap_content"android:textSize="14dip" android:layout_marginLeft="20dip"android:layout_marginRight="20dip"android:layout_gravity="center"android:singleLine="true"android:completionThreshold="1"android:hint="@string/citysearch_hint2" />
更多相关文章
- android 安卓 开发 图片库获得图片的绝对路径
- TableRow 背景问题以及修改对话框标题高度或者图片
- Android 把从网络获取的图片缓存到内存中
- Android 的网络编程(17)-android显示网络图片
- androidSDK下的图片资源
- 自定义RadioButton 文字在下,图片在上
- 自定义progressbar使用图片
- Shape实现圆形图片
- Android 异步加载图片