- 博客(166)
- 资源 (16)
- 收藏
- 关注
翻译 android-Animating Views Using Scenes and Transitions
Android includes the transitions framework, which enables you to easily animate changes between two view hierarchies. Note: For Android versions earlier than 4.4.2 (API level 19) but greater tha
2015-12-31 13:55:01 555
翻译 android-Displaying Graphics with OpenGL ES
The OpenGL ES APIs provided by the Android framework offers a set of tools for displaying high-end, animated graphics that are limited only by your imagination and can also benefit from the accelera
2015-12-31 10:35:43 1032
翻译 Android-Displaying Bitmaps Efficiently
Learn how to use common techniques to process and loadBitmap objects in a way that keeps your user interface (UI) components responsive and avoids exceeding your application memory limit.There
2015-12-30 20:45:45 683
转载 简单的WebView自适应并嵌套在ScrollView里
转载地址:http://blog.csdn.net/janronehoo/article/details/45100447http://solo.farbox.com/blog/simple-webview-adaptiveWebView in ScrollView我们都知道ScrollView和WebView都有滚动的效果,所以我们需要先屏蔽WebView的滚动事
2015-12-30 18:35:04 1348
翻译 android-Printing Content
In Android 4.4 (API level 19) and higher, the framework provides services for printing images and documents directly from Android applications. This training describes how to enable printing in your
2015-12-30 16:09:08 721
翻译 android-Capturing Photos
》Using the on-board cameras, your application can enable users to augment what they see around them, make unique avatars, look for zombies around the corner, or simply share their experiences.
2015-12-30 15:01:28 616
翻译 android-Managing Audio Playback
To ensure a great user experience, it’s also important that your app manages the audio focus to ensure multiple apps aren’t playing audio at the same time.Controlling Your App’s Volume and Pla
2015-12-30 14:00:55 772
翻译 android-sharing files with NFC
> Android allows you to transfer large files between devices using the Android Beam file transfer feature.This feature has a simple API and allows users to start the transfer process by simply touch
2015-12-30 12:32:35 778
翻译 android-share file
> In all cases, the only secure way to offer a file from your app to another app is to send the receiving app thefile's content URI and grant temporary access permissions to that URI. If you want
2015-12-30 12:04:00 919
翻译 android-share simple data
Sending and receiving data between applications with intents is most commonly used for social sharing of content. Intents allow users to share information quickly and easily, using their favorite ap
2015-12-30 11:10:11 757
翻译 android-Permissions Best Practices
If the user is running Android 6.0 (API level 23) or later, every time the user tries some new app feature that requires a permission, the app has to interrupt the user's work with a permission requ
2015-12-30 09:55:49 482
翻译 android-Working with System Permissions
> To protect the system's integrity and the user's privacy, Android runs each app in a limited access sandbox.Depending on the type of permission the app requests, the system may grant the permissio
2015-12-29 21:36:05 558
翻译 android-Allowing Other Apps to Start Your Activity(App之间进行交互)
To allow other apps to start your activity, you need to add an element in your manifest file for the corresponding element.The system may send a given Intent to an activity if that activity h
2015-12-29 20:05:04 612
翻译 android-Interacting with Other Apps
>To take the user from one activity to another, your app must use an Intent to define your app's "intent" to do something. When you pass an Intent to the system with a method such as startActivity(),
2015-12-29 20:02:30 638
翻译 android-Saving Data
> Saving Key-Value SetsLearn to use a shared preferences file for storing small amounts of information in key-value pairs. Saving FilesLearn to save a basic file, such as to store long sequen
2015-12-29 19:58:03 646
转载 Json串的单引号和双引号问题
》 今天遇到双引号和单引号的问题:json就是一段有格式的字符串,如果数据的封装与解析都是我们自己做的时候,单引号和双引号是没啥关系的,但是如果用到一些别的json相关的库的时候,或者像笔者这样是发给别人用的时候,这个就特别需要注意了!所以应该养成良好的习惯,用json的时候请用双引号吧!》 正确的JSON是这样的:属性名必须用双引号包裹 var json = '{"name
2015-12-29 19:56:17 46094 6
翻译 android-Building a Dynamic UI with Fragments
You can create these modules with the Fragment class, which behaves somewhat like a nested activity that can define its own layout and manage its own lifecycle.This class shows you how to create a
2015-12-28 20:38:30 480
翻译 android-Recreating an Activity
when the user presses the Back button or your activity signals its own destruction by calling finish(). The system may also destroy your activity if it's currently stopped and hasn't been used in
2015-12-28 19:46:03 496
转载 Android5.0下毛玻璃(磨砂)效果实现,图片高斯模糊blur
技术调研,可以给一些优缺点的对比.,目前主流实现毛玻璃效果(高斯模糊)分大致三种方法: 1.利用RenderScript接口利用现有Android结构,通过RenderScript调用底层接口实现高斯模糊计算.// Remix Blurprivate void blur(Bitmap bkg, View view) { … RenderScript rs = Render...
2015-12-28 18:00:36 3124
原创 android进阶-题目总结(进行中)
16)自定义动画玩过吗,里面的Matrix怎么控制。res里面的XML资源最终都要转化成JavaCode,怎么完全脱离 res,用纯代码的方式实现res资源的功能,怎么缩放一张点九图;> Matrix类:Translate—平移变换;Scale—缩放变换;Rotate—旋转变换;Skew————错切变换Matrix提供了一些方法来控制图片变换:setTranslate(float
2015-12-28 17:56:00 870
转载 android-Google Support Library及Android源码 兼容包下载
》Android一些SDK比较分裂,为此google官方提供了Android Support Library package 系列的包来保证高版本sdk开发的向下兼容性, 所以你可能经常看到v4,v7,v13等这些数字。support-v4用在API lever 4(即Android 1.6)或者更高版本之上。它包含了相对更多的内容,而且用的更为广泛,例如:Fragment
2015-12-28 15:03:58 2473
原创 android-判断当前Fragment是否可见(Visible)
判断当前Fragment是否可见public abstract class BaseFragment extends Fragment { /** Fragment当前状态是否可见 */ protected boolean isVisible; @Override public void setUserVisibleHin
2015-12-28 14:48:12 11138
翻译 Activity Lifecycle-Stopping and Restarting an Activity
There are a few of key scenarios in which your activity is stopped and restarted:The user opens the Recent Apps window and switches from your app to another app. The activity in your app that's cu
2015-12-28 13:54:12 493
翻译 android-Managing the Activity Lifecycle
Within the lifecycle callback methods, you can declare how your activity behaves when the user leaves and re-enters the activity. There is a sequence of callback methods that start up an activity an
2015-12-28 09:34:20 477
翻译 android-Supporting Different Devices
Some of the important variations that you should consider include different languages, screen sizes, and versions of the Android platform.> Supporting Different LanguagesLearn how to support m
2015-12-27 21:16:59 401
翻译 android-UI design(first app)
The graphical user interface for an Android app is built using a hierarchy of View and ViewGroup objects. View objects are usually UI widgets such as buttons or text fields. ViewGroupobjects are
2015-12-27 20:11:07 650
翻译 androi-Verifying App Behavior on the Android Runtime (ART)
With Android 4.4, we are beginning to roll out a new Android runtime, ART. This runtime offers a number of new features that improve performance and smoothness of the Android platform and apps.At
2015-12-26 03:13:51 774
翻译 android-Supporting Tablets and Handsets
Typically, all you need to do is design your UI to be flexible and optimize some elements for different sizes by providingalternative resources (such as alternative layouts that reposition some view
2015-12-26 02:14:00 656
翻译 android-Screen Compatibility Mode
>Notice: If you've developed an application for a version of Android lower than Android 3.0, but it does resize properly for larger screens such as tablets, you should disable screen compatibility m
2015-12-26 01:51:06 731
翻译 android-Distributing to Specific Screens
Although we recommend that you design your application to function properly on multiple configurations of screen size and density, you can instead choose to limit the distribution of your applicatio
2015-12-26 01:15:49 381
翻译 Supporting Multiple Screens
Android runs on a variety of devices that offer different screen sizes and densities. For applications, the Android system provides a consistent development environment across devices and handles mo
2015-12-25 22:52:32 345
转载 App权限问题
》AppOps默认给用户提供了两个设置选项:允许该项权限 / 禁止该项权限。其实代码逻辑里,有三种可选项:允许 / 禁止 /提示用户选择“提示”选项,则该app在执行这一操作时,系统会给用户相应的提示,待用户选择后app继续执行。AppOps总体概览 核心服务: AppOpsService系统服务,系统启动时该服务会启动运行
2015-12-25 18:11:21 1259
转载 ViewPager+Fragment取消预加载(延迟加载)
在项目中,都或多或少地使用的Tab布局,所以大都会用到ViewPager+Fragment,但是Fragment有个不好或者太好的地方。例如你在ViewPager中添加了三个Fragment,当加载ViewPager中第一个Fragment时,它会默认帮你预先加载了第二个Fragment,当你加载第二个Fragment时,它会帮你加载第三个Fragment。这样虽然有时很好,但是用户只需看一个Fr
2015-12-25 16:00:16 774
转载 Java.lang.IllegalStateException Activity has been destroyed(Fragment+ViewPage)
03-04 12:01:05.468: E/AndroidRuntime(2474): FATAL EXCEPTION: mainjava.lang.IllegalStateException: Activity has been destroyed at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.j
2015-12-25 15:56:57 2562
翻译 android-Copy and Paste(text and input)
Android provides a powerful clipboard-based framework for copying and pasting. It supports both simple and complex data types, including text strings, complex data structures, text and binary stream d
2015-12-25 09:55:45 1361
翻译 android-app Administration and Device Administration
If you are an enterprise administrator, you can take advantage of APIs and system capabilities to manage Android devices and control access.Android 2.2 introduces support for enterprise applications
2015-12-24 23:01:27 750
翻译 Android-Spelling Checker Framework
The Android platform offers a spelling checker framework that lets you implement and access spell checking in your application. The framework is one of the Text Service APIs offered by the Android p
2015-12-24 22:48:23 645
翻译 Android-Creating an Input Method(IME)
An input method editor (IME) is a user control that enables users to enter text. Android provides an extensible input-method framework that allows applications to provide users alternative input met
2015-12-24 21:44:37 741
转载 android 滑动事件冲突解决 Touch事件处理机制
要不要拦截当前的按键以及触摸事件??android中的事件类型分为按键事件和屏幕触摸事件,Touch事件是屏幕触摸事件的基础事件,有必要对它进行深入的了解。 一个最简单的屏幕触摸动作触发了一系列Touch事件:ACTION_DOWN->ACTION_MOVE->ACTION_MOVE->ACTION_MOVE...->ACTION_MOVE->ACTION_UP当屏幕中包含一个View
2015-12-24 15:35:46 904
HttpClient _legacy.jar
2021-02-24
NetEase QA Emmagee
2018-05-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人