摘要:
下列码表含有全部 128 个 ASCII 十进制 (dec) 、八进制 (oct) 、十六进制 (hex) 及字符 (ch) 编码。 阅读全文
摘要:
1,使用开源库 BadgeView (*推荐) https://github.com/stefanjauker/BadgeView 比较轻巧,功能也够用。不用在布局写代码就可以给任意一个View添加一个通知角标,下面是基本步骤和示例,注意listview的 BagdeView要缓存一个,不要每个it 阅读全文
摘要:
Re-using Layouts with THIS LESSON TEACHES YOU TOCreate a Re-usable LayoutUse the TagUse the TagYOU SHOULD ALSO READLayout Resources Although Androi... 阅读全文
摘要:
1. 主Fragment 设置一个主Fragment,其它fragment得到它就可以了。 示例如下: 1 val ft = fragmentManager?.beginTransaction() 2 val maiFrgmt = MainFrgmt() 3 ft?.replace(R.id.mai 阅读全文
摘要:
onInterceptTouchEvent可在onTouchEvent()前拦截触摸事件, ViewConfiguration得到触摸的属性如速度,距离等, TouchDelegate控制view展开 Managing Touch Events in a ViewGroup Handling tou 阅读全文
摘要:
1.Use Touch to Perform Scaling As discussed in Detecting Common Gestures, GestureDetector helps you detect common gestures used by Android such as scr 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Animating a Scroll Gesture In Android, scrolling is typically achieved by using the ScrollView class. Any standard layout that might extend beyond the 阅读全文
摘要:
Tracking Movement This lesson describes how to track movement in touch events. A new onTouchEvent() is triggered with an ACTION_MOVE event whenever th 阅读全文
摘要:
简介 基本步骤: Detecting Common Gestures A "touch gesture" occurs when a user places one or more fingers on the touch screen, and your application interpret 阅读全文
摘要:
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 阅读全文
摘要:
1.屏幕单位 名称 单位缩写 单位全拼 介绍 屏幕尺寸 '' 或 in inch 屏幕的大小,通常用屏幕对角线的长度表示.单位是寸 屏幕分辨率 px pixels 整个屏幕的像素数,一般用屏幕的像素宽度(水平像素数)乘以像素高度表示,形如1280x720, 反之分辨率为1280x720的屏幕,像素宽 阅读全文
摘要:
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 ... 阅读全文
摘要:
Supporting Different Platform Versions While the latest versions of Android often provide great APIs for your app, you should continue to support old... 阅读全文