First, Block The concept of:Nickname: code snippets, blocks, closures, is the Apple company added to OC in the language. function: Saves a piece of code while the program is running, and this code can be passed. application: Used for communication
1. In the background to maintain an Android version number, every time you enter the app, on the Welcome screen, go to query the latest version number. Compare with the current version of the app.2. Place the latest app (the latest version number)
Nsnotification is notification, you can implement an object to send notifications, multiple objects receive notifications.Work Flow:Add a notification hub (singleton) to the class that needs to send notifications.Send a notification in the class
Android development needs to quickly locate the problem, print log on the Android screen, is a good channelBasic idea: Start Logservice read the specified log, use WindowManager to display on the screenDirectly on the codepublic class Logservice
OrderThe Careplicatorlayer can copy layers of its own child layer, and the copied layer has the same dynamic effect as the original child. Then by setting some properties, you can do cool results, very powerful.EffectLove_music.gifdemoIt is
Public classlogutils{private static Final BooleanVERBOSE=true;private static Final BooleanDEBUG=true;private static Final BooleanINFO=true;private static Final BooleanWARN=true;private static Final BooleanERROR=true;private static
Because the project is running on Android, it is cumbersome to use plugins. You can change the trigger condition without a plugin.1. Download Fingergestures plugin Click to open link2. Import the plugin, create the scene drag the preset finger
Inspired by Slidingmenu Android adds Drawerlayout to implement the swipe menuDrawerlayout is inherited from the ViewGroup, where you can place the child view. Drawerlayout the main content area and menu areaUse the following method1. Same as the
1. Why does the page lag?In the development we often encounter the layout of the more complex cells, when sliding will lead to the interface is not smooth, the phenomenon of lag, this is due to CPU computing and GPU rendering, not in time to
1, from the understanding of the basis of the user summaryOriginal: HTTP://DIYCODE.CC/TOPICS/72ServiceManager, Activitymanager, Packagemanager, *****manager all figured out?Binder's got it figured out?Did the IPC get it?Every class in the FrameWork
For a long time did not write a blog, recently busy graduation. In fact, I have always wanted to write a picture of the compression of the blog, blogging is actually to tidy up the knowledge and ideas I have learned as a record.Image compression for
Then the previous article on the Android JNI/NDK development of the basic posture native the method, as well as the native call java layer method, the previous article we have completed the compilation work, today we will learn how to call, Before
In order to be able to clearly see this effect, I do not hesitate to spend a lot of money to the crowd in the distribution of red envelopes, to see red envelopes to receive the details of the animation effect of the interface, QQ effectIn the
Volkswagen entrepreneurship, innovation, the Prime Minister flap arm, the internet wind homeopathy, regardless of the pig dog four feet away from the ground, the wind, the wind, after, everywhere Xiaoran, looks as if now become the world of apps,
Android System ArchitectureAndroid can be roughly divided into four-tier architectures, five-block areas1.Linux Core LayerThe Android system is based on the Linux kernel, which provides the underlying drivers for various hardware on Android devices,
公司App里面有个需求,即所有界面都是竖屏,且不允许横屏切换,唯独有一个播放视频的界面允许横屏,大家都知道视频播放适配最大的播放屏幕那样是最好的。从网上多方查找资料,查到了这么一篇文章:
Ultimately, this needs to be handled as follows: first, make sure that the app itself should allow the switch to be turned on:
The
I. OverviewThis article mainly answers some problems which are worth studying in the course of studying and working in peacetime.Two. Questionswhen was the 1.DecorView created?It was created in the Generatedecor of Phonewindow.protectedgenerateDecor(
The code for the activity to be posted first:@ContentView(R.layout.activity_main) Public class mainactivity extends appcompatactivity { @ViewInject(R.id.text_view)PrivateTextView TextView;@OnClick(R.id.text_view)Private void OnClick(View view)
1.EventBus Pros and conseventbus, as a common framework in Android development, has many advantages:
Flexible scheduling. Do not rely on the context, the use of the same as the broadcast focus on the context of the injection and delivery.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service