{"id":191910,"date":"2013-08-29T16:09:02","date_gmt":"2013-08-29T12:09:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=191910"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=191910","title":{"rendered":"<span class=\"post_title\">\u0412\u0435\u0440\u0441\u0442\u043a\u0430 Android \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0431\u0435\u0437 \u0431\u043e\u043b\u0438<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u2014 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430. \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c <a href=\"http:\/\/opensignal.com\/reports\/fragmentation.php\">\u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/a> \u0438 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 (DPI). \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u044b \u043e \u0432\u0435\u0440\u0441\u0442\u043a\u0435 \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 Layout, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u043c\u0430\u043a\u0435\u0442\u043e\u043c \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0430 \u043d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u044f\u0432\u043d\u044b\u0445 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0439 \u0434\u0438\u0437\u0430\u0439\u043d\u0430: \u0432\u044b\u0445\u043e\u0434\u0430 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b; \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0445 \u043f\u0443\u0441\u0442\u044b\u0445 \u043c\u0435\u0441\u0442 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/947\/a25\/fab\/947a25fab07572f4a80bd20335cfc74b.jpg\"\/><br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041d\u0430 iPhone layout \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0438 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0434 \u0434\u0432\u0430 \u044d\u043a\u0440\u0430\u043d\u0430 iPhone 4 \u0438 iPhone 5. \u0420\u0438\u0441\u0443\u0435\u043c \u0434\u0432\u0430 \u043c\u0430\u043a\u0435\u0442\u0430, \u043f\u0438\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u044b. \u041f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435\u0442, \u0432\u043e\u043b\u044f \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0430 \u044f\u0441\u043d\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0447\u0442\u043e \u043e\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u0430\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0438\u043b\u0438, \u0434\u0430\u0436\u0435, \u0431\u0438\u043b\u0434-\u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<p>  \u041f\u043e\u0434 Android \u0443 \u043d\u0430\u0441 \u0434\u0432\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b: \u043d\u0435\u043b\u044c\u0437\u044f \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0432\u0435\u0440\u0438\u0442\u044c \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043c\u0430\u043a\u0435\u0442\u043e\u0432. \u0414\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0436\u0435 \u0447\u0430\u0441\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u044b. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0441\u044f \u043a \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0442\u044c \u0445\u0430\u043e\u0441 \u043c\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 \u0432\u0435\u0440\u0441\u0442\u043a\u0438. \u041c\u0430\u043a\u0435\u0442\u044b \u0440\u0438\u0441\u0443\u044e\u0442\u0441\u044f \u0438 \u0432\u0435\u0440\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u0434 \u043b\u044e\u0431\u043e\u0439 \u0444\u043b\u0430\u0433\u043c\u0430\u043d\u0441\u043a\u0438\u0439 full-hd \u0442\u0435\u043b\u0435\u0444\u043e\u043d. \u041d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f. \u0413\u043e\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u043d\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u044f\u0445 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u043e\u0432. \u041c\u0435\u0442\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432, \u0434\u043b\u044f \u043f\u043b\u0430\u043d\u0448\u0435\u0442\u043e\u0432 (&gt;6.5 \u0434\u044e\u0439\u043c\u043e\u0432) \u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u043a\u0435\u0442\u044b \u0438 \u0432\u0435\u0440\u0441\u0442\u043a\u0430.<\/p>\n<p>  \u041f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439 \u0443 \u043c\u0435\u043d\u044f \u0442\u043e\u043b\u044c\u043a\u043e Nexus 4 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0435\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430.<\/p>\n<p>  \u041c\u0430\u043a\u0435\u0442\u044b \u043d\u0435\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f-\u043f\u043e\u0440\u0442\u0444\u043e\u043b\u0438\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u043c \u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c (\u043f\u043e\u043b\u043d\u043e\u0440\u0430\u0437\u043c\u0435\u0440\u043d\u044b\u0435 \u043f\u043e \u043a\u043b\u0438\u043a\u0443).<br \/>  <a href=\"http:\/\/habrastorage.org\/storage3\/cd4\/4c8\/586\/cd44c85864d05473ac9d0eef6052fc41.jpg\"><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/f0e\/28b\/d8c\/f0e28bd8c21da6c73c2648661046f2fa.jpg\" align=\"left\"\/><\/a><a href=\"http:\/\/habrastorage.org\/storage3\/f6f\/82b\/9fd\/f6f82b9fdc3c5ab0c62d57e875c47e05.jpg\"><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/2c7\/259\/884\/2c72598845f50f77a5338f78ad91c4f3.jpg\" align=\"left\"\/><\/a><a href=\"http:\/\/habrastorage.org\/storage3\/6a4\/e45\/c66\/6a4e45c665faced0eea97d830f90f0a2.jpg\"><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/adc\/192\/7b3\/adc1927b3fb6808976769c2a5c73a395.jpg\"\/><\/a><\/p>\n<h4>Layout<\/h4>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 LinearLayout. \u0420\u0430\u0437\u043c\u0435\u0440\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0431\u043b\u043e\u043a\u043e\u0432 \u0432 \u043f\u0438\u043a\u0441\u0435\u043b\u044f\u0445 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0441 \u043c\u0430\u043a\u0435\u0442\u0430 \u0432 weight \u0438 <a href=\"http:\/\/developer.android.com\/reference\/android\/widget\/LinearLayout.html#attr_android:weightSum\">weightSum<\/a> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041e\u0442\u0441\u0442\u0443\u043f\u044b \u0432\u0435\u0440\u0441\u0442\u0430\u0435\u043c FrameLayout \u0438\u043b\u0438 \u0432 \u043d\u0443\u0436\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <a href=\"http:\/\/developer.android.com\/reference\/android\/view\/Gravity.html\">Gravity<\/a>.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0441\u0432\u0435\u0440\u0441\u0442\u0430\u0435\u043c \u044f\u0447\u0435\u0439\u043a\u0443 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/ab7\/a3c\/d50\/ab7a3cd5059f914347bae21fecda48f9.png\"\/><\/p>\n<pre><code class=\"xml\">&lt;FrameLayout xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;     android:layout_width=&quot;match_parent&quot;     android:layout_height=&quot;match_parent&quot;&gt;      &lt;!-- 488 = 768 - 40 (\u043b\u0435\u0432\u044b\u0439 \u043e\u0442\u0441\u0442\u0443\u043f) - 40 (\u043f\u0440\u0430\u0432\u044b\u0439 \u043e\u0442\u0441\u0442\u0443\u043f) - 200 (\u0448\u0438\u0440\u0438\u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438) --&gt;     &lt;LinearLayout         android:id=&quot;@+id\/appLstItemLayout&quot;         android:orientation=&quot;horizontal&quot;         android:layout_width=&quot;0dp&quot;         android:layout_height=&quot;0dp&quot;         android:gravity=&quot;center&quot;         android:weightSum=&quot;488&quot;          android:background=&quot;@drawable\/bg_item&quot;&gt;          &lt;ImageView             android:id=&quot;@+id\/appImg&quot;             android:layout_width=&quot;wrap_content&quot;             android:layout_height=&quot;match_parent&quot;             android:adjustViewBounds=&quot;true&quot;             android:src=&quot;@drawable\/square&quot;\/&gt;          &lt;FrameLayout             android:layout_width=&quot;0dp&quot;             android:layout_height=&quot;0dp&quot;             android:layout_weight=&quot;20&quot;\/&gt;          &lt;!-- 130 = \u0432\u044b\u0441\u043e\u0442\u0430 \u044f\u0447\u0435\u0439\u043a\u0438 - 40 (\u0432\u044b\u0441\u043e\u0442\u0430 \u0437\u0432\u0435\u0437\u0434\u043e\u0447\u0435\u043a) --&gt;         &lt;LinearLayout             android:orientation=&quot;vertical&quot;             android:layout_width=&quot;0dp&quot;             android:layout_height=&quot;match_parent&quot;             android:layout_weight=&quot;428&quot;             android:gravity=&quot;center&quot;             android:weightSum=&quot;130&quot;&gt;              &lt;FrameLayout                 android:layout_width=&quot;0dp&quot;                 android:layout_height=&quot;0dp&quot;                 android:layout_weight=&quot;55&quot;\/&gt;              &lt;TextView                 android:id=&quot;@+id\/titleTxt&quot;                 android:layout_width=&quot;match_parent&quot;                 android:layout_height=&quot;wrap_content&quot;                 android:gravity=&quot;bottom&quot;\/&gt;              &lt;FrameLayout                     android:layout_width=&quot;0dp&quot;                     android:layout_height=&quot;0dp&quot;                     android:layout_weight=&quot;10&quot;\/&gt;              &lt;ru.touchin.MySimpleAndAwesomeRatingBar                 android:id=&quot;@+id\/appRatingBar&quot;                 android:layout_width=&quot;match_parent&quot;                 android:layout_height=&quot;wrap_content&quot;                 android:layout_gravity=&quot;center_vertical&quot;\/&gt;              &lt;FrameLayout                 android:layout_width=&quot;0dp&quot;                 android:layout_height=&quot;0dp&quot;                 android:layout_weight=&quot;25&quot;\/&gt;         &lt;\/LinearLayout&gt;     &lt;\/LinearLayout&gt; &lt;\/FrameLayout&gt;<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e DisplayMetrics-\u043c\u0430\u0433\u0438\u0438, \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e static helper.<\/p>\n<pre><code class=\"java\">public class S { \tprivate static final int ORIGINAL_VIEW_WIDTH = 768; \tprivate static final int ORIGINAL_VIEW_HEIGHT = 1184; \tprivate static final int ORIGINAL_VIEW_DIAGONAL = calcDiagonal(ORIGINAL_VIEW_WIDTH, ORIGINAL_VIEW_HEIGHT);  \tprivate static int mWidth; \tprivate static int mHeight; \tprivate static int mDiagonal; \tprivate static float mDensity;  \tstatic {     \tDisplayMetrics metrics = TouchinApp.getContext().getResources().getDisplayMetrics();     \tmWidth = metrics.widthPixels;     \tmHeight = metrics.heightPixels;     \tmDiagonal = calcDiagonal(mWidth, mHeight);     \tmDensity = metrics.density; \t}  \tpublic static int hScale(int value){     \treturn (int)Math.round(value * mWidth \/ (float) ORIGINAL_VIEW_WIDTH); \t}  \tpublic static int vScale(int value){     \treturn (int)Math.round(value * mHeight \/ (float) ORIGINAL_VIEW_HEIGHT); \t}  \tpublic static  int dScale(int value){     \treturn (int)Math.round(value * mDiagonal \/ (float) ORIGINAL_VIEW_DIAGONAL); \t}  \tpublic static  int pxFromDp(int dp){     \treturn (int)Math.round(dp * mDensity); \t}  \tprivate static int calcDiagonal(int width, int height){     \treturn (int)Math.round(Math.sqrt(width * width + height * height)); \t} }<\/code><\/pre>\n<p>  <b>1184<\/b> \u044d\u0442\u043e \u0432\u044b\u0441\u043e\u0442\u0430 Nexus 4 \u0431\u0435\u0437 \u043a\u043d\u043e\u043f\u043e\u043a, <b>768<\/b> \u2014 \u0448\u0438\u0440\u0438\u043d\u0430. \u042d\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0432\u044b\u0441\u043e\u0442\u0430 \u0438 \u0448\u0438\u0440\u0438\u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u044d\u0442\u0430\u043b\u043e\u043d\u043d\u043e\u0433\u043e.<\/p>\n<h5>ScrollView \u0438 List<\/h5>\n<p>  \u041f\u043e\u0434\u0445\u043e\u0434 \u0441 weightSum \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043c\u0438\u043c \u043a \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u043c\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c, \u0438\u0445 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0432\u0434\u043e\u043b\u044c \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d. \u0414\u043b\u044f \u0432\u0435\u0440\u0441\u0442\u043a\u0438 ScrollView \u0438 List \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u0442\u044c \u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0432 \u043a\u043e\u0434\u0435 (130 \u2014\u00a0\u0432\u044b\u0441\u043e\u0442\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0438\u0441\u043a\u0430).<\/p>\n<pre><code class=\"java\">if (view == null) {     view = mInflater.inflate(R.layout.item_app_list, viewGroup, false);     view.setLayoutParams(new AbsListView.LayoutParams (ViewGroup.LayoutParams.MATCH_PARENT, S.dScale(130)));  }<\/code><\/pre>\n<p>  \u0418 \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0442\u0440\u044e\u043a \u0441 weightSum.<\/p>\n<h4>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/h4>\n<p>  \u0420\u0430\u0437\u043c\u0435\u0440 \u0438\u043a\u043e\u043d\u043e\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435:<\/p>\n<pre><code class=\"java\">view.findViewById(R.id.appImg).setLayoutParams(new LinearLayout.LayoutParams(S.dScale(240) - S.pxFromDp(20), S.dScale(240) - S.pxFromDp(20)));<\/code><\/pre>\n<p>  \u0413\u0434\u0435 240 \u0432\u044b\u0441\u043e\u0442\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0438\u0441\u043a\u0430, 20 \u0432\u044b\u0441\u043e\u0442\u0430 \u043e\u0442\u0441\u0442\u0443\u043f\u0430 \u0441\u0432\u0435\u0440\u0445\u0443 \u0438 \u0441\u043d\u0438\u0437\u0443.<\/p>\n<h4>\u0428\u0440\u0438\u0444\u0442\u044b<\/h4>\n<p>  \u0410\u043d\u0434\u0440\u043e\u0438\u0434 \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u044d\u043a\u0440\u0430\u043d\u0430. \u0420\u0430\u0437\u043c\u0435\u0440\u044b \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430:  <\/p>\n<pre><code class=\"java\">textSizePx = originalTextSizePx * (deviceDiagonalPx \/ originalDeviceDiagonalPx )<\/code><\/pre>\n<p>  \u0414\u0430, \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0448\u0440\u0438\u0444\u0442\u0430 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u0434\u0435 (36 \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u0432 \u043f\u0438\u043a\u0441\u0435\u043b\u044f\u0445 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0430\u043a\u0435\u0442\u0435).  <\/p>\n<pre><code class=\"java\">titleTxt.setTextSize(TypedValue.COMPLEX_UNIT_PX, S.dScale(36));<\/code><\/pre>\n<p>  <\/p>\n<h4>\u0421\u043e\u0432\u0435\u0442\u044b \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0439<\/h4>\n<p>  1. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <a href=\"http:\/\/developer.android.com\/guide\/topics\/graphics\/2d-graphics.html#nine-patch\">Nine-patch<\/a> \u0432\u0435\u0437\u0434\u0435 \u0433\u0434\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0433\u0434\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u2014 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u0443\u0439\u0442\u0435 \u0434\u0438\u0437\u0430\u0439\u043d.<br \/>  2. \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0440\u0438\u0441\u0443\u0439\u0442\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"http:\/\/developer.android.com\/guide\/topics\/resources\/drawable-resource.html#Shape\">Shape<\/a><br \/>  3. \u0418\u0437\u0431\u0435\u0433\u0430\u0439\u0442\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432 runtime<\/p>\n<p>  Nine-patch \u044d\u0442\u043e \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432 \u0441\u0435\u0431\u0435 \u043c\u0435\u0442\u0430-\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c\u0441\u044f. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 <a href=\"http:\/\/developer.android.com\/guide\/topics\/graphics\/2d-graphics.html#nine-patch\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Android<\/a> \u0438\u043b\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/113623\/\">\u043d\u0430 \u0425\u0430\u0431\u0440\u0435<\/a>. <\/p>\n<p>  Nine-patch \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0440\u0435\u0437\u0430\u0442\u044c \u043f\u043e\u0434 \u0432\u0441\u0435 dpi: ldpi mdpi tvdpi hdpi, xhdpi, xxhdpi. \u0420\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044d\u0442\u043e \u043f\u043b\u043e\u0445\u043e, \u0430 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u043d\u0438\u0435 Nine-Patch \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u043c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u043c. \u041d\u0438 \u0432 \u043a\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432 Nine-patch \u043e\u0442\u0441\u0442\u0443\u043f\u044b, \u043e\u043d\u0438 \u043e\u0444\u043e\u0440\u043c\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 layout, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/eec\/9eb\/fc3\/eec9ebfc35156bb1ddf6fd2f7b7fe7b5.jpg\"\/><\/p>\n<h4>Shape<\/h4>\n<p>  \u0415\u0441\u043b\u0438 \u0440\u0435\u0441\u0443\u0440\u0441 \u043b\u0435\u0433\u043a\u043e \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0438\u0433\u0443\u0440\u044b \u0438 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b \u043b\u0443\u0447\u0448\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0430\u0440\u0435\u0437\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/developer.android.com\/guide\/topics\/resources\/drawable-resource.html#Shape\">xml-shape<\/a>. \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043d\u0430\u0440\u0438\u0441\u0443\u0435\u043c \u0444\u043e\u043d \u0440\u0430\u043c\u043a\u0443 \u0432\u043e\u043a\u0440\u0443\u0433 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0432\u044b\u0448\u0435 \u043d\u0430\u0440\u0435\u0437\u0430\u043b\u0438 \u043a\u0430\u043a Nine-patch.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/fdd\/2e7\/4ab\/fdd2e74ab5f4d02d6837d578c8851404.png\"\/><\/p>\n<pre><code class=\"xml\">&lt;layer-list xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot; &gt; \t&lt;!-- &quot;shadow&quot; --&gt; \t&lt;item&gt;     \t&lt;shape android:shape=&quot;rectangle&quot; &gt;         \t&lt;corners android:radius=&quot;5px&quot; \/&gt;         \t&lt;solid android:color=&quot;#08000000&quot;\/&gt;     \t&lt;\/shape&gt; \t&lt;\/item&gt; \t&lt;item     \tandroid:bottom=&quot;1px&quot;     \tandroid:right=&quot;1px&quot;     \tandroid:left=&quot;1px&quot;     \tandroid:top=&quot;1px&quot;&gt;     \t&lt;shape android:shape=&quot;rectangle&quot; &gt;         \t&lt;corners android:radius=&quot;4px&quot; \/&gt;         \t&lt;solid android:color=&quot;#10000000&quot;\/&gt;     \t&lt;\/shape&gt; \t&lt;\/item&gt; \t&lt;item     \tandroid:bottom=&quot;2px&quot;     \tandroid:right=&quot;2px&quot;     \tandroid:left=&quot;2px&quot;     \tandroid:top=&quot;2px&quot;&gt;     \t&lt;shape android:shape=&quot;rectangle&quot; &gt;         \t&lt;corners android:radius=&quot;3px&quot; \/&gt;         \t&lt;solid android:color=&quot;#10000000&quot;\/&gt;     \t&lt;\/shape&gt; \t&lt;\/item&gt; \t&lt;item     \tandroid:bottom=&quot;3px&quot;     \tandroid:right=&quot;3px&quot;     \tandroid:left=&quot;3px&quot;     \tandroid:top=&quot;3px&quot;&gt;     \t&lt;shape android:shape=&quot;rectangle&quot;&gt;         \t&lt;corners android:radius=&quot;2px&quot; \/&gt;         \t&lt;solid android:color=&quot;#ffffff&quot;\/&gt;     \t&lt;\/shape&gt; \t&lt;\/item&gt; &lt;\/layer-list&gt;<\/code><\/pre>\n<h5>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/h5>\n<p>  \u041c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0441\u0438\u043b\u0430\u043c\u0438 Android \u0442\u0440\u0443\u0434\u043e\u0435\u043c\u043a\u0430\u044f \u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u043d\u0430\u044f \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f. \u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 Android \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a bitmap. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0448 \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u0435 500&#215;500 \u0441\u043e \u0441\u043f\u043b\u0435\u0448\u0441\u043a\u0440\u0438\u043d\u0430 \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0435\u0442\u0441\u044f \u0432 bitmap \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 1\u043c\u0431 (<a href=\"http:\/\/developer.android.com\/reference\/android\/graphics\/Bitmap.Config.html\">4 \u0431\u0430\u0439\u0442\u0430 \u043d\u0430 \u043f\u0438\u043a\u0441\u0435\u043b\u044c<\/a>), \u043f\u0440\u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0435\u0449\u0435 \u043e\u0434\u0438\u043d bitmap, \u0441\u043a\u0430\u0436\u0435\u043c \u0432 500\u043a\u0431. \u0418\u043b\u0438 1,5\u043c\u0431 \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 <a href=\"http:\/\/stackoverflow.com\/questions\/8903340\/does-android-application-memory-limit-apply-to-entire-app-or-per-process-of-app\">24\u043c\u0431 \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441<\/a>. \u041c\u044b \u043d\u0435 \u0440\u0430\u0437 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u0431\u043e\u0433\u0430\u0442\u044b\u0445 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0438 Nine-patch \u043d\u0438 Shape \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043a\u0430\u043a \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u0432 \u043f\u0430\u043f\u043a\u0435 nodpi \u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (\u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430) \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>  \u0414\u043b\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0445 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u0438\u043a\u043e\u043d\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043d\u0430\u0448\u0438\u0445 \u043c\u0430\u043a\u0435\u0442\u0430\u0445) \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0435\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430. \u041a\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 <a href=\"http:\/\/touchin.ru\/portfolio\/omlet?utm_campaign=73\">Stream<\/a>. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0434\u043b\u044f \u044d\u043a\u0440\u0430\u043d\u0430 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430, \u0433\u0434\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e, \u0438 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0438\u0445 \u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<pre><code>http:\/\/media.omlet.ru\/media\/img\/movies\/vposter\/plain\/22741680\/&lt;\u043b\u044e\u0431\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 px&gt;_&lt;\u043b\u044e\u0431\u0430\u044f \u0432\u044b\u0441\u043e\u0442\u0430 px&gt;.jpg<\/code><\/pre>\n<p>  P.S. \u0441\u043e\u0432\u0435\u0442\u044b \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u044b \u0438 \u043e\u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0441\u0442\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430\u0448\u0438\u043c Android-\u0433\u0443\u0440\u0443 \u041b\u0435\u0448\u0435\u0439, \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0435\u043c\u0443 \u0441\u043f\u0430\u0441\u0438\u0431\u043e!<\/p>\n<p>  \u0410 \u043a\u0430\u043a \u0432\u044b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0435 \u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c \u043c\u0430\u043a\u0435\u0442\u044b \u043f\u043e\u0434 Android? \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0440\u0438\u0441\u0443\u0435\u0442 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440? \u041a\u0430\u043a \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438?<\/p>\n<hr\/>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0430\u0448 \u0445\u0430\u0431\u0440\u0430-\u0431\u043b\u043e\u0433 (\u043a\u043d\u043e\u043f\u043a\u0430 \u0441\u043f\u0440\u0430\u0432\u0430 \u0432\u0432\u0435\u0440\u0445\u0443). \u041a\u0430\u0436\u0434\u044b\u0439 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043e \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435, \u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 \u0438 \u0431\u0438\u0437\u043d\u0435\u0441\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0443\u0434\u0438\u0438. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f (5 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f) \u00abC# async \u043d\u0430 iOS \u0438 Android\u00bb    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/touchinstinct\/blog\/191910\/\"> http:\/\/habrahabr.ru\/company\/touchinstinct\/blog\/191910\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u2014 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430. \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c <a href=\"http:\/\/opensignal.com\/reports\/fragmentation.php\">\u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/a> \u0438 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 (DPI). \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u044b \u043e \u0432\u0435\u0440\u0441\u0442\u043a\u0435 \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 Layout, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u043c\u0430\u043a\u0435\u0442\u043e\u043c \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0430 \u043d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u044f\u0432\u043d\u044b\u0445 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0439 \u0434\u0438\u0437\u0430\u0439\u043d\u0430: \u0432\u044b\u0445\u043e\u0434\u0430 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b; \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0445 \u043f\u0443\u0441\u0442\u044b\u0445 \u043c\u0435\u0441\u0442 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/947\/a25\/fab\/947a25fab07572f4a80bd20335cfc74b.jpg\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-191910","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/191910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191910"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/191910\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}