What is URL Scheme? The scheme in Android is a kind of in-page jump protocol, is a very good implementation mechanism, by defining their own scheme protocol, can be very convenient to jump to the various pages of the app, through the scheme protocol, the server can be custom
How to use:
New Mycolor.xcs File
Copy and paste the following code, import files, modify your favorite fonts can be
[Mycolor]text=00ff80cyan (Bold) =00fffftext (bold) =e9e9e9magenta=c000c0green=80ff00green (bold) =3c5a38background= 042028cyan=00c0c0red (bold) =ff0000yellow=c0c000magenta (bold) =ff00ffyellow (bold) =ffff00red=ff4500white= C0c0c0blue (bold) =1e90ffwhite (bold) =fdf6e3black=000000blue=00bfffblack (bold) =808080[names]name0=mycolorcount=1Attached effect:Xshell
Ssb.setspan (new Relativesizespan (1.2f), 1, Ssb.length (), spannable.span_exclusive_exclusive); return SSB;}Effects such as:watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvtlvqvgjvevpiqg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center "/>Project Source: Https://github.com/nuptboyzhb/ViewPageAnimatorDemoNot for commercial purposes without consentOf course, you can also consider using the open source code: Https://github.com/astuetz/PagerSlidingTabStrip Copyright notice:
Android sets the background color to transparent, android background color
Set the background color to transparent for android
Method 1:
You only need to add
Android: theme = "@
Android implements the color-changing status bar and android color-changing status bar
First, we need to know what is the transparent status bar and what is the immersive status bar, and the difference. In China, the transparent status bar is called the immersive status bar, but the two are essentially different.
Let'
layout:Same as the top layout.Achieve true full screen display, picture under status barTo implement a picture that can be displayed under the status bar, such as an effect, you need to make the status bar Transparent, The second type above 5.0 does not make the status bar transparent, so if you use the first adaptation scheme, you can use it directly, if you use the second type of allocation is difficult, then you need to be in the corresponding ful
use the change of the pure color method to get the background color, of course, if your background image is also a solid color.
It's fun to play again.
Attention
The first scheme can draw a variety of styles, mainly to see your use of the drawable, but if the background map, if the pro
Android Color comparison, Android color
1. Android Color comparison
/** Calculates the constrast between two colors, using the algorithm provided by the WCAG v2. */ public static float computeContrastBetweenColors(int bg,
performance of the application
You can use XML drawings instead of bitmaps, such as rounded rectangles, color maps plotted with XML save space resources, and can be automatically adapted
using 9-patch,9-patch can be scaled, we can use very small 9-patch to populate very large UI controls, save space resources, improve application performance
Minimize the layout level of the XML, reduce the layout hierarchy to reduce the work done by
Recently, many apps have met the immersion notification bar, the so-called Immersion notification bar: is used to navigate the various interface operating space in the context of the main program content, through the relative "invisible" interface to maximize the user's visual range to use the content itself.
The latest Android 4.4 system's Notification bar immersion mode is in the software when the notification bar and the top of the software
Android browser cross-Origin data theft and Intent Scheme attacks
The vulnerability we will introduce next affects self-built browsers and some other specific Android browsers in Android versions earlier than 4.4. It allows hackers to read cookie database files in sqlite format, to steal cookies. Next, let's talk about
0x0 Introduction
We know that Intent-based attacks on Android are common. Such attacks may cause application crash, but may evolve the Elevation of Privilege Vulnerability. Of course, Intent-Based malicious samples are easily identified by static feature matching.
However, an Android Browser-based attack, Intent Scheme URLs, has recently emerged. This attack meth
and mobile terminals.Based on the decoding process in the FFMPEG open source code, this paper proposes a design scheme of the streaming media player on the mobile terminal based on the layered architecture. This design features differences in media stream processing when decoding different types of files at the underlying layer, and provides control functions for external camera devices, the player is finally implemented on the
0x0 Introduction We know that intent-based attacks on Android are common, and that this kind of attack can cause the application to crash, and that it may evolve to exploit the rights. Of course, intent-based's malicious samples can be easily identified by static feature matching. However, there has been a recent attack on an Android browser-based attack--intent Scheme
The benefit of custom URL scheme is that you canProgramOpen the application through this URL. For example, if application A registers a URL scheme: MyApp, you can use
There is a small difference between iOS and Android. In iOS, if the system registers URL scheme and installs that application, you can start the applic
of servers will be very large. A few of the frameworks mentioned later in this article, with the help of the Java NIO feature, alleviate the pressure and resource consumption on the server, but after all, there is a connection and cannot be compared with the traditional HTTP no-connect server in performance.OtherOther: In the mobile phone, in fact, you can also have text messages, mail and other ways to carry out information push. These methods because of the operator and mobile phone operating
Research on the implementation scheme of the source App after a friend clicks the shared content on the Android platform
Most of the time, after using the shared content, we hope that other users can click the shared content to jump to our App to achieve a closed loop. Such sharing is the most valuable. This requirement involves the interaction between different applications. Although the sharing SDK is pro
), daughter-in-law wide eyes asked me: What is the adaptation? FC, it seems that there is no such problem. Later I carefully asked, she told me, oh, this size ah, I am set to 20% ~ ~ traced, in fact, is a reason, the page provides a percentage calculation size.Similarly, after you get the UI to the design diagram, is not complaining about you are the PX, I project with DP, what, and UI staff explained that the UI sister does not understand. Then this example can also solve the contradiction betw
Android opens its own APP (scheme) through the web page, androidscheme
You can access a webpage through a browser (built-in or third-party) on your mobile phone. You can click a link to start your application and transmit data.
First, add a filter to the Activity to be started in the Mainifest file.
Receive data in MainActivity:
public class MainActivity extends Activity implements View.OnClickListener{
Android View implementation scheme of regional click-1. Based on the coordinate rangeAndroid View implementation scheme of regional click-1. Based on the coordinate range
Introduction
Well, I haven't updated my blog posts about Android for a long time. Some friends often ask me in the group or talk to me privately:Rea
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.