项目中遇到的问题
lu_pan_feng
这个作者很懒,什么都没留下…
展开
-
格式化时遇到的问题
问题描述: 平仓时,当数量大于1000时,改变完平仓价格后,平仓按钮变得不可点击. 原因: 在弹出平仓框的时候,往数量的输入框填数据的时候,格式化成了标准计数法的格式. NumberFormat coinFormatter = NumberFormat.getNumberInstance(Locale.US); 当改变价格的时候,会判断价格和数量都必须要大于0,否则平仓按钮置灰,原创 2016-04-24 14:29:22 · 260 阅读 · 0 评论 -
widget点击进入应用遇到的问题
问题 : 小组件 点击进入MainActivity MainActivity的启动模式是singleTop 如果进入应用后,在其他activity下home键,再次点击小组件进入应用,这样就在栈中存在了多个重复的Activity Hist #10: ActivityRecord{43107738 u0 应用包名/.ui.margin.MarginActivity t28}原创 2016-04-24 14:37:44 · 498 阅读 · 0 评论 -
widget 更新时遇到的问题
问题: widget报的崩溃异常 java.lang.RuntimeException: Unable to start service 应用包名.service.UpdateWidgetWhiteService@42e81dc0 with Intent { cmp=应用包名.service.UpdateWidgetWhiteService }: java.util.ConcurrentMod原创 2016-04-24 14:52:52 · 405 阅读 · 0 评论 -
SpannableString 长按崩溃
问题: SpannableString 长按崩溃 在小米手机和魅族5.0以上系统中遇到 java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.Editor$SelectionModifierCursorController.getMinTouchOffset()' on a nul原创 2016-04-24 14:59:10 · 2513 阅读 · 1 评论 -
Error:(710) Apostrophe not preceded by \ (in )
Error:(710) Apostrophe not preceded by \ (in ) 是因为在xml文件的文本中含有 ' 或者 % java.lang.IllegalAccessException: access to constructor not allowed 构造方法不是public java.lang.RuntimeException:原创 2016-08-23 20:00:18 · 433 阅读 · 0 评论 -
java.lang.IllegalArgumentException parameter must be a descendant of this view
java.lang.IllegalArgumentException: parameter must be a descendant of this view at android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:5335) at android.view.ViewGroup.offsetDesce原创 2016-08-24 08:14:11 · 3052 阅读 · 0 评论 -
PopupWindow 设置动画无效
PopupWindow 设置动画的方式,网上教程一搜一片,不在复制. 但是设置后发现动画无效, 发现: popupWindow.setAnimationStyle(R.style.PopupAnimation); popupWindow.showAtLocation(findViewById(R.id.parent), Gravity.CENTER| Gravity.CENTER, 0, 0)原创 2017-04-24 20:12:24 · 2271 阅读 · 0 评论