android bug fix

本文介绍了解决Android中AutoCompleteTextView下拉菜单显示不正确的问题,特别是在320*240分辨率设备上的异常表现。通过调整布局属性,确保了下拉列表能够正确显示。

  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"  />

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值