我做了个计算器,
但是显示结果的EditText样式没有设置好,请问一下,如果想像拨号那样的样式,不自动换行,应该怎么设置,
我的XML设置如下:
<EditText android:id="@+id/result" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"
android:layout_span="4" android:textSize="48sp" android:gravity="right|center_vertical"
android:cursorVisible="false" android:editable="false" android:lines="1" /> 以下为我写的计算器源码
http://blog.csdn.net/zhanghaidang/archive/2011/04/27/6366771.aspx
但是显示结果的EditText样式没有设置好,请问一下,如果想像拨号那样的样式,不自动换行,应该怎么设置,
我的XML设置如下:
<EditText android:id="@+id/result" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"
android:layout_span="4" android:textSize="48sp" android:gravity="right|center_vertical"
android:cursorVisible="false" android:editable="false" android:lines="1" /> 以下为我写的计算器源码
http://blog.csdn.net/zhanghaidang/archive/2011/04/27/6366771.aspx
解决方案 »
- 求问大神如何解决从后台获取数据是中文乱码问题?
- Eclipse安装AVD遇到问题!
- 推荐款反编译工具
- 关于android模拟器的横屏竖屏切换问题
- android代码删除联系人
- Android 使用 sqlite3 数据库进行编程
- 求助关于DDMS的devices下显示进程数的问题
- 关于安卓
- android访问链接时候报java.net.MalformedURLException: Protocol not found
- 有关android 使用rest+wcf通信问题,使用json作为数据类型,接收时json字符串不完整。
- 如何实现两个Activity类之间的跳转??????????????
- sqlite导入导出Excel或csv数据或其他数据怎么做
android:singleLine="true"