* horizontal pixels. Display common resolutions such as 800*600, 1024*768, 1280*720, 1600*900, 1920*1080, in px
[Note] the pixel-related knowledge step is now
If the retina screen exists, note that the screen resolution refers to the device pixel, not the ideal viewport.
[HD and 4 K]
Currently, the two most popular keywords for mobile devices and Smart TVs are HD and 4 K. Both of them are used to describe the resolution standards of display devices.
, pixels per inch ). As the name suggests, the number of pixel points per inch. The higher the value, the more delicate the display. If we know that the resolution of a mobile phone is 1080 × 1920 and the screen size is 5 inch, Can you calculate the screen density? Haha, the hook theorem of middle school comes in handy! Through the width of 1080 and the height of 1920, according to the stock theorem, we can
Android gdb debugging and androidgdb debugging[1]. Set the terminal directory to: proj. android[2] add-g-ststabs + to the compilation option of the. make file.[3]. Execute the compilation Script: sh./build_native.sh NDK_DEBUG = 1[4]. push the generated gdbserver to the mobile phone and find a writable directory: adb push./libs/armeabi/gdbserver data/tmp[5]. Start the app[6]. Terminal: adb shell[7]. Terminal: su[8]. Terminal: cd data/tmp (to the directory where gdbserver is stored)[9]. Obtain the
NEXUS6 Original Density value:2k Screen 560Each step:Using the RE File manager, edit System/build.prop. The "ro.sif.lcd_density=" parameter is rewritten as a value to be modified and saved.Calculation of density:Density value to be modified = original density value/(1440/1080)1440 is the original resolution, 1080 is the resolution you want to change, 560/(1440/1080
matter how you adjust the controls in layout, the phone with the corresponding resolution has no effect. Note: Due to the different Android version, some versions do not support Xlargescreens, you can directly remove the android:xlargescreens= "true".Apricot's general code is also adapted to the screen in this way Private voidLayoutadjust () {ecmlog.i_ui (Class_tag,"Layoutadjust called ..."); Relativelayout.layoutparams params=(Relativelayout.layoutparams) logoiv.getlayoutparams (); Params.w
Download ffmpeg-20141204-git-5fe026f-win32-staticFind the Ffmpeg.exe inside the bin folderCodeImport OSOs.popen3 (' f:/ffmpeg.exe-i f:/static/media/video/1080.avi F:/static/media/ffvideo/1080.mov ')You can turn the source file 1080.avi into 1080.mov.Tangled for almost a day, do not know where to start. Looking at all k
Server-side Installation shadowsocks#
First install the shadowsocks on the server (such as VPS) and configure and enable it according to the Shadownsocks installation instructions.Local Install shadowsocks#
On this machine, we also need a shadowsocks client. Usually installed as server-side, Shadowsocks provides sslocal command after installation.
Take my OpenSUSE 13.2 as an example, after installing Shadowsocks-libev, modify the/etc/shadowsocks/shadowsocks-libev-config.json file based on the
unit that never changes size.
The SP and DP are alike, but they can be scaled. The font size defined by the SP will be affected if the user makes the text larger in the device settings.
Yahoo News Digest
The 9 patch is a format that allows for large and small components, which can greatly reduce the volume of a file. For example, it can be used as a button with a shadow. Click on the link to see the specifics.
9 Patch picture (the one on the left) can be dramatically
external host when recursion
-l,–relative only tracks relative links
-i,–include-directories=list List of allowed directories
-x,–exclude-directories=list is not included in the list of directories
-np,–no-parent do not trace back to the parent directory
Wget-s–spider URL does not download only display procedure
4. Use instance:
Example 1: Download a single file using wget
Command:
wget Http://www.minjieren.com/wordpress-3.1-zh_CN.zip
Description
The followin
, and we use the CentOS 6 system as an example to install the system's own package directly.# yum Install-y haproxy
# haproxy-v
ha-proxy version 1.5.4 2014/09/02Second, prepare the Haproxy configuration filecd/etc/haproxy vimhaproxy.cfg Global log127.0.0.1local2 chroot/var/lib/haproxy pidfile /var/run/haproxy.pid maxconn4000 userhaproxy group Haproxy daemon Defaults modetcp logglobal optionhttplog option Dontlognull retries3 timeouthttp-request10s timeout Queue1m timeoutconnect10s timeou
1. ADB devices2. ADB push/pullAdb-s emulator-5554 Push 2.jpg/sdcard/Adb-s emulator pull/sdcard/2.jpg./temp/22.jpg3. ADB forwardADB forward tcp:1080 tcp:1080//Port redirection redirect 1080 ports on the PC side to device-side 1080 ports4. ADB start-server/kill-serverThe computer end hit sever kill, through the ADB start
and content smaller (window default is 96DPI). At last we saw the words that the ants crawled. So Apple can increase the resolution by four times times, but the display text, the icon does not shrink or see, because the Apple uses the absolute value points point to define the element, the non-Retina screen 1 points represents 1 pixels, the retina, 1 points represents 4 pixels. Of course, the content displayed on the screen did not increase.Let's look at the number of points that Apple has defin
Android screen adaptationOfficial address: http://developer.android.com/guide/practices/screens_support.htmlI. Recommendations on layout adaptation1, do not use absolute Layout 2, try to use match_parent instead of fill_parent. 3, can use the weight of the place as far as possible the use of weight (android:layout_weight) 4, if it is a solid color background, as far as possible using the shape of Android custom. 5. If you need to fit at a specific resolution, you can create a new Layout-hxw.xml
I. About layout adaptation1. Do not use absolute layout2, try to use match_parent instead of fill_parent. 3, can use the heavy place as far as possible to use the weight (android:layout_weight)4, if it is a solid color background, try to use the shape of android to Customize. 5. If you need to fit at a specific resolution, you can create a new layout-hxw.xml folder on the res directory . For example, to fit the 1080*1800 screen (Meizu MX3 with this re
10.201.70.68... the connection to the host cannot be opened. In port 1521: connection failure, run the command to view the current port status netstat-a-n C: \ Documents and Settings \ Administrator> netstat-a-n Active Connections Proto Local Address Foreign Address State TCP 0.0.0.0: 23 0.0.0.0: 0 listening tcp 0.0.0.0: 80 0.0.0.0: 0 listening tcp 0.0.0.0: 135 0.0.0.0: 0 listening tcp 0.0.0.0: 445 0.0.0.0: 0 LIS Tening tcp 0.0.0.0: 1025 0.0.0.0: 0 listening tcp 0.0.0.0: 1026 0.0.0.0: 0 listeni
Official address: http://developer.android.com/guide/practices/screens_support.htmlI. Recommendations on layout adaptation1, do not use absolute Layout 2, try to use match_parent instead of fill_parent. 3, can use the weight of the place as far as possible the use of weight (android:layout_weight) 4, if it is a solid color background, as far as possible using the shape of Android custom. 5. If you need to fit at a specific resolution, you can create a new Layout-hxw.xml folder on the Res directo
Say these several properties before I say my deviceMy device has two, a monitor with a height of 1080, a computer with a height of 800The first type: window.screen.heightThis method is to get the height of the user's computer screen, is not close to the browser or the top toolbar with the bottom toolbar heightWhen I print on the screen of my display with a height of 1080Window.screen.height theWhen I print on my ComputerWindow.screen.height -Yes, t
The article is reproduced prohibited for commercial purposes, and cannot be accompanied by virtual currency, points, registration and other additional conditions. Reprint shall be marked by the provenance Mulgore grassland and author @jiongbull.Android screen adaptation scheme
Statistical analysis 1. 2014q1 Active Android Device statsParameter table:
Model
resolution
pixel density
Screen Width
Samsung Galaxy Note2
720 *
xhdpi
What is HD?
"High Definition" in English, meaning "high resolution ". The definition of HD has four meanings: hd TV, HD device, HD format, and HD movie.
HDTV
HDTV, also known as "HDTV", is a standard high definition TV format determined by the Association of film and television engineers of the United States. Generally speaking, hd TV is the most representative. The definition of a TV is measured by the number of horizontal scanned lines. The following are common TV scanning formats:
D1 is i
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.