上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 34 下一页
摘要: 下列码表含有全部 128 个 ASCII 十进制 (dec) 、八进制 (oct) 、十六进制 (hex) 及字符 (ch) 编码。 阅读全文
posted @ 2015-10-31 13:59 f9q 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1,使用开源库 BadgeView (*推荐) https://github.com/stefanjauker/BadgeView 比较轻巧,功能也够用。不用在布局写代码就可以给任意一个View添加一个通知角标,下面是基本步骤和示例,注意listview的 BagdeView要缓存一个,不要每个it 阅读全文
posted @ 2015-10-27 22:11 f9q 阅读(2320) 评论(0) 推荐(0) 编辑
摘要: Re-using Layouts with THIS LESSON TEACHES YOU TOCreate a Re-usable LayoutUse the TagUse the TagYOU SHOULD ALSO READLayout Resources Although Androi... 阅读全文
posted @ 2015-10-25 09:48 f9q 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1. 主Fragment 设置一个主Fragment,其它fragment得到它就可以了。 示例如下: 1 val ft = fragmentManager?.beginTransaction() 2 val maiFrgmt = MainFrgmt() 3 ft?.replace(R.id.mai 阅读全文
posted @ 2015-10-21 22:58 f9q 阅读(456) 评论(0) 推荐(0) 编辑
摘要: onInterceptTouchEvent可在onTouchEvent()前拦截触摸事件, ViewConfiguration得到触摸的属性如速度,距离等, TouchDelegate控制view展开 Managing Touch Events in a ViewGroup Handling tou 阅读全文
posted @ 2015-10-11 18:53 f9q 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 1.Use Touch to Perform Scaling As discussed in Detecting Common Gestures, GestureDetector helps you detect common gestures used by Android such as scr 阅读全文
posted @ 2015-10-08 18:06 f9q 阅读(1663) 评论(0) 推荐(1) 编辑
摘要: Dragging This lesson describes how to use touch gestures to drag, using onTouchEvent() to intercept touch events. 1.Drag an Object If you are targetin 阅读全文
posted @ 2015-10-07 19:23 f9q 阅读(531) 评论(0) 推荐(0) 编辑
摘要: Handling Multi-Touch Gestures A multi-touch gesture is when multiple pointers (fingers) touch the screen at the same time. This lesson describes how t 阅读全文
posted @ 2015-10-07 18:55 f9q 阅读(405) 评论(0) 推荐(0) 编辑
摘要: Animating a Scroll Gesture In Android, scrolling is typically achieved by using the ScrollView class. Any standard layout that might extend beyond the 阅读全文
posted @ 2015-10-07 18:44 f9q 阅读(428) 评论(0) 推荐(0) 编辑
摘要: Tracking Movement This lesson describes how to track movement in touch events. A new onTouchEvent() is triggered with an ACTION_MOVE event whenever th 阅读全文
posted @ 2015-10-07 17:18 f9q 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 简介 基本步骤: Detecting Common Gestures A "touch gesture" occurs when a user places one or more fingers on the touch screen, and your application interpret 阅读全文
posted @ 2015-10-07 11:38 f9q 阅读(562) 评论(0) 推荐(0) 编辑
摘要: docs/training/gestures/index.html Using Touch Gestures This class describes how to write apps that allow users to interact with an app via touch gestu 阅读全文
posted @ 2015-10-06 23:08 f9q 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 1.屏幕单位 名称 单位缩写 单位全拼 介绍 屏幕尺寸 '' 或 in inch 屏幕的大小,通常用屏幕对角线的长度表示.单位是寸 屏幕分辨率 px pixels 整个屏幕的像素数,一般用屏幕的像素宽度(水平像素数)乘以像素高度表示,形如1280x720, 反之分辨率为1280x720的屏幕,像素宽 阅读全文
posted @ 2015-10-04 23:41 f9q 阅读(1953) 评论(0) 推荐(0) 编辑
摘要: Supporting Different Languages It’s always a good practice to extract UI strings from your app code and keep them in an external file. Android makes ... 阅读全文
posted @ 2015-10-04 23:12 f9q 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Supporting Different Platform Versions While the latest versions of Android often provide great APIs for your app, you should continue to support old... 阅读全文
posted @ 2015-10-04 23:08 f9q 阅读(225) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 34 下一页