{"id":259409,"date":"2015-06-16T12:39:02","date_gmt":"2015-06-16T08:39:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=259409"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=259409","title":{"rendered":"Material Design \u0438 \u043f\u043e\u0438\u0441\u043a \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f-\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430"},"content":{"rendered":"<p>     \t<b>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/b><br \/>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u044f \u043f\u0438\u0441\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0430 \u0425\u0430\u0431\u0440 \u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438-\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0435 \u043f\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435 \u0434\u043b\u044f Android, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0442\u0430\u043b\u043e \u043c\u043e\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0434\u043b\u044f GooglePlay. \u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u043e\u0433\u043b\u044f\u0434\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430\u0437\u0430\u0434 \u043d\u0430 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0445\u0430\u0431\u0440\u0430\u043f\u043e\u0441\u0442 \u0438 \u043f\u0440\u043e\u0448\u043b\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043c\u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u0448\u043d\u043e (\u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0434\u0440\u043e\u0433\u043d\u0443\u0442\u044c\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u043d\u0438\u0436\u0435). \u0417\u0430 \u043f\u0440\u043e\u0448\u0435\u0434\u0435\u0448\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043c\u043d\u043e\u0433\u043e\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c: AndroidMarket \u0441\u0442\u0430\u043b \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f GooglePlay \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u043c, \u0432\u044b\u0445\u043e\u0434\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u041e\u0421, \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u0435\u043a\u0430\u044f \u043e\u0431\u0449\u0430\u044f google-\u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u043a \u0434\u0438\u0437\u0430\u0439\u043d\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 material-design, \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u043e\u0432\u044b\u0435 \u0441\u0440\u0435\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0434\u0430 \u0438 \u0425\u0430\u0431\u0440 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f. <\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u043c, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043d\u0435\u0433\u043e \u043f\u043e\u0438\u0441\u043a, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c \u043a\u0430\u043a\u0443\u044e \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412\u043e\u043e\u0431\u0449\u0435, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e <s>\u0441\u0435\u0440\u044c\u0451\u0437\u043d\u044b\u0445<\/s> \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0437\u0430 \u0432\u0440\u0435\u043c\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f. \u041a\u0440\u0430\u0442\u043a\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043e\u043d\u043e \u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u0445:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d02\/476\/d9e\/d02476d9e2a942669867ca6a9b6218e6.png\"\/><\/p>\n<p>  <b>Material Design<\/b><br \/>  \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f material design. \u041a\u0443\u0434\u0430 \u0436\u0435 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u043e\u0434 android? \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u0442\u0430\u043a \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0434\u0435\u043b\u0430\u0442\u044c, \u0432 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u043e\u043d\u0438 \u043d\u0435 \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043d\u0435\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0438\u043a\u043e\u043d\u043a\u0438 \u0431\u043e\u043a\u043e\u0432\u043e\u0433\u043e \u043c\u0435\u043d\u044e:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/006\/84d\/2a9\/00684d2a9fb54bdd8c9d3121e83f62cb.png\"\/><br \/>  \u0412 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u0438\u043a\u043e\u043d\u043e\u043a \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 <a href=\"http:\/\/romannurik.github.io\/AndroidAssetStudio\/icons-launcher.html\">asset studio<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c, \u043f\u043e\u043c\u0438\u043c\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e, \u0435\u0449\u0451 \u0438 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u043d\u0435\u043f\u043b\u043e\u0445\u0438\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b long shadow \u0438 dog-ear. \u0412 \u043e\u0431\u0449\u0435\u043c, asset studio \u2014 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438. \u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 asset studio \u0431\u044b\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u043d\u043e\u0432\u044b\u0435 material-\u0438\u043a\u043e\u043d\u043a\u0438 \u0434\u043b\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043f\u0438\u0432\u0430 \u0438 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/cf6\/bcd\/696\/cf6bcd696dff4c76bdc423373e3f9998.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/790\/b64\/620\/790b64620e534a90983ac1c12a83def7.png\"\/><br \/>  \u0415\u0441\u043b\u0438 \u043f\u0438\u0432\u043e \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u043e \u0442\u043e \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u043d\u0438\u0436\u043d\u0435\u043c \u0443\u0433\u043b\u0443 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f sold out:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/0d5\/ffb\/f84\/0d5ffbf84d7b44078519af0e4866819e.png\"\/><\/p>\n<p>  \u0418\u043a\u043e\u043d\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0437\u0434\u0435\u0441\u044c \u0443\u0436\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044c Photoshop \u0438 \u043f\u043e\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/029\/04d\/030\/02904d030a7d492a80f6ab27f9fc3556.png\"\/><br \/>  \u0421\u0430\u043c\u043e\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0435 \u043f\u043e\u0437\u0430\u0434\u0438, \u043e \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043c \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c FloatingActionButton. \u0412 \u043f\u0430\u043f\u043a\u0435 <i>values\/<\/i> \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 themes.xml \u043e\u043f\u0438\u0448\u0435\u043c \u0434\u0432\u0435 \u0442\u0435\u043c\u044b \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Light \u0438 Dark:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">themes.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;resources&gt;      &lt;style name=&quot;LightTheme&quot; parent=&quot;Theme.AppCompat.Light.DarkActionBar&quot;&gt;         &lt;item name=&quot;colorPrimary&quot;&gt;@color\/greenPrimary1&lt;\/item&gt;         &lt;item name=&quot;colorPrimaryDark&quot;&gt;@color\/greenPrmrDark1&lt;\/item&gt;         &lt;item name=&quot;android:windowBackground&quot;&gt;@color\/mn_bck1&lt;\/item&gt;         &lt;item name=&quot;colorAccent&quot;&gt;@color\/fabBckgrnd1&lt;\/item&gt;     &lt;\/style&gt;      &lt;style name=&quot;DarkTheme&quot; parent=&quot;ThemeOverlay.AppCompat.Dark.ActionBar&quot;&gt;         &lt;item name=&quot;colorPrimary&quot;&gt;@color\/greyPrimary1&lt;\/item&gt;         &lt;item name=&quot;colorPrimaryDark&quot;&gt;@color\/greyPrmrDark1&lt;\/item&gt;         &lt;item name=&quot;android:windowBackground&quot;&gt;@color\/mn_bck2&lt;\/item&gt;         &lt;item name=&quot;colorAccent&quot;&gt;@color\/fabBckgrnd2&lt;\/item&gt;     &lt;\/style&gt;  &lt;\/resources&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 colorPrimary, colorPrimaryDark, colorAccent \u0445\u043e\u0440\u043e\u0448\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e <a href=\"http:\/\/habrahabr.ru\/post\/241479\/\">\u0442\u0443\u0442<\/a> \u0438 <a href=\"https:\/\/developer.android.com\/training\/material\/theme.html\">\u0442\u0443\u0442<\/a>. \u0410 \u0432\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u044d\u0442\u0438 \u0442\u0435\u043c\u044b \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ff7\/0e0\/a01\/ff70e0a016d04d17b23b369d1ce2d2fc.png\"\/><\/p>\n<p>  \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0442\u0435\u043f\u0435\u0440\u044c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0442\u0435\u043c\u0443 \u0441\u0440\u0430\u0437\u0443 \u043a\u043e \u0432\u0441\u0435\u043c Activity \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c BaseActivity \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043e\u0442 ActionBarActivity (\u0435\u0451 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u0432 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0435 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0435\u0451 xml-\u0444\u0430\u0439\u043b \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438), \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 onCreate() \u0434\u0430\u043d\u043d\u043e\u0439 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c setTheme() \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">BaseActivity.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class BaseActivity extends ActionBarActivity {      public static final String NAME_PREFERENCES = &quot;mysetting&quot;;     public static final String THEME_SWITCHER = &quot;thmswtch&quot;;     public static final int THM_SWTCHR_DFLT = 0;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         SharedPreferences mSet = getSharedPreferences(NAME_PREFERENCES, Context.MODE_PRIVATE);         \/** \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0442\u0435\u043c\u043d\u0443\u044e \u0442\u0435\u043c\u0443, \u0435\u0441\u043b\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0431\u044b\u043b \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0451\u043d \u0435\u0451 \u0432\u044b\u0431\u043e\u0440 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 LightTheme) *\/         if(mSet.getInt(THEME_SWITCHER, THM_SWTCHR_DFLT) == 1){             \/** \u0435\u0441\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e c LOLLIPOP \u0438 \u0432\u044b\u0448\u0435 - \u0440\u0430\u0441\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441-\u0431\u0430\u0440 *\/             if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.LOLLIPOP) {                 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);                 getWindow().setStatusBarColor(getResources().getColor(R.color.greyPrmrDark1));             }             setTheme(R.style.DarkTheme);         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0443 \u0430 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 Activity \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0442 BaseActivity:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/433\/506\/d56\/433506d561944889a3c82d3c71859365.png\"\/><\/p>\n<p>  \u041f\u0440\u0438 \u043f\u043e\u0434\u0431\u043e\u0440\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439 \u0446\u0432\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0442\u0435\u043c\u044b \u0432 \u0441\u0442\u0438\u043b\u0435 material \u043c\u043e\u0436\u0435\u0442 \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u043f\u043e\u043c\u043e\u0447\u044c \u0440\u0435\u0441\u0443\u0440\u0441 <a href=\"http:\/\/www.materialpalette.com\/\">materialpalette.com<\/a>, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u0430\u044f \u0446\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u043f\u0430\u043b\u0438\u0442\u0440\u0430 \u0434\u043b\u044f \u0442\u0435\u043c\u044b \u043f\u043e \u0434\u0432\u0443\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c \u0432\u0430\u043c\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043e\u0442\u0442\u0435\u043d\u043a\u0430\u043c.<\/p>\n<p>  \u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0432\u0430 \u043a\u0440\u0443\u0433\u043b\u044b\u0445 \u0438\u043a\u043e\u043d\u043e\u043a \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a href=\"http:\/\/github.com\/amulyakhare\/TextDrawable\">TextDrawable<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043b\u0435\u0433\u043a\u0430 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0440\u0443\u0433\u043b\u044b\u0435 \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 (\u043a\u0430\u043a \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u0445), \u043d\u043e \u0438 \u0438\u043a\u043e\u043d\u043a\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u043e\u0440\u043c, \u0446\u0432\u0435\u0442\u043e\u0432, \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0438 \u0434\u0430\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u043d\u0438\u0445.   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f TextDrawable \u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">            TextDrawable drawable = null;             if(position==0)  drawable = TextDrawable.builder().beginConfig().bold().endConfig().buildRound(&quot;dx&quot;, context.getResources().getColor((curr_theme==1) ? R.color.mn_dvdr_dark : R.color.mn_dvdr_lght));             if(position==1)  drawable = TextDrawable.builder().beginConfig().bold().endConfig().buildRound(&quot;lim&quot;,context.getResources().getColor((curr_theme==1) ? R.color.mn_dvdr_dark : R.color.mn_dvdr_lght));              <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <a href=\"http:\/\/www.google.com\/design\/spec\/components\/buttons-floating-action-button.html#\">Floating Action Button<\/a> (\u0434\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u043c \u043d\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0451 fab) \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0435\u0441\u0442\u0438 \u0432 \u0441\u0435\u0431\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0412 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438-\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0435 \u044d\u0442\u043e \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u043f\u043e\u0438\u0441\u043a. \u0422.\u043e. \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043f\u043e \u043a\u043d\u043e\u043f\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u0430\u0434\u0430\u0442\u044c SearchView. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b fab \u043f\u0440\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u043d\u0438\u0437\/\u0432\u0432\u0435\u0440\u0445 \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u0438\u0441\u0447\u0435\u0437\u0430\u043b\u0430\/\u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0430\u0441\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/github.com\/makovkastar\/FloatingActionButton\">FloatingActionButton<\/a>.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f FloatingActionButton<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">FloatingActionButton fab; ListView MainListView; LinearLayout searchLayout; SearchView searchView; ...         searchLayout  = (LinearLayout) findViewById(R.id.search_view);         searchView = (SearchView) findViewById(R.id.search);         MainListView  = (ListView) findViewById(android.R.id.list);         fab = (FloatingActionButton) findViewById(R.id.fab);         \/\/ \u041f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0435\u043c fab \u043a MainListView.          \/\/ \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u043d\u0438\u0437 fab \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u0447\u0435\u0437\u0430\u0442\u044c, \u0430 \u043f\u0440\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u0435 \u0432\u0432\u0435\u0440\u0445 - \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f         fab.attachToListView(MainListView);          fab.setShadow(true);         fab.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 Animation openSearch = AnimationUtils.loadAnimation(context, R.anim.search_down);                 searchLayout.startAnimation(openSearch);                 searchLayout.setVisibility(View.VISIBLE);                 Animation hideFab = AnimationUtils.loadAnimation(context, R.anim.s_down);                 fab.startAnimation(hideFab);                 fab.setVisibility(View.GONE);                 \/\/ \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0443 \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c searchView                 searchView.requestFocus();                 openKeyboard();             }         }); ... <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e material\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  <b>\u041f\u043e\u0438\u0441\u043a<\/b><br \/>  \u0422\u0430\u043a \u043a\u0430\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 html-\u0444\u0430\u0439\u043b\u0430\u0445, \u0442\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043d\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e:  <\/p>\n<ul>\n<li> \u041f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0441\u0430\u043c\u0438\u043c\u0438 html-\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u2014 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 <a href=\"http:\/\/htmlbook.ru\/samhtml\/yakorya\">\u044f\u043a\u043e\u0440\u044f<\/a> \u0432 \u0442\u0435 \u043c\u0435\u0441\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430.<\/li>\n<li> \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e FTS-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 (\u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"http:\/\/sqlite.org\/fts3.html\">\u0442\u0443\u0442 (\u0430\u043d\u0433\u043b.)<\/a> \u0438 <a href=\"http:\/\/xbb.uz\/db\/SQLite-FTS3-i-FTS4\/\">\u0442\u0443\u0442 (\u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c)<\/a>. \u0415\u0441\u043b\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043a\u0440\u0430\u0442\u043a\u043e, \u0442\u043e FTS \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432).<\/li>\n<\/ul>\n<p>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 (KEY_INPUT) \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445\u0441\u044f \u0432 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0435, \u0438\u043d\u0430\u0447\u0435 \u0433\u043e\u0432\u043e\u0440\u044f \u2014 \u044d\u0442\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 (KEY_ANKER) \u2014 \u0441\u043f\u0438\u0441\u043e\u043a html-\u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u044f\u043a\u043e\u0440\u044f\u043c\u0438 (\u0442.\u0435. \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u0439 \u0432 \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u0430\u0445), \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u044d\u0442\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c. \u041a\u0430\u043a \u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 SQLite, \u043a\u0430\u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445, \u0442\u0430\u043a \u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0445, \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446 FTS \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 SELECT:  <\/p>\n<pre><code class=\"java\">String query = &quot;SELECT docid as _id,&quot; + KEY_INPUT + &quot;,&quot; + KEY_ANKER + &quot; FROM &quot; + FTS_VIRTUAL_TABLE + &quot; WHERE &quot; +  KEY_INPUT + &quot; MATCH '&quot; + inputText + &quot;';&quot;; <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0438\u0441\u043a \u043f\u043e FTS-\u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b. \u041f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \u043f\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u044f\u043a\u043e\u0440\u044e. \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u043d\u0438\u0436\u0435:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f4d\/db0\/dbc\/f4ddb0dbc5f54871a90f6d539d04ce7b.png\" alt=\"image\"\/>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">SearchDbAdapter.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class SearchDbAdapter {     private static final String DATABASE_NAME = &quot;mhdb&quot;;     private static final String FTS_VIRTUAL_TABLE = &quot;srcht&quot;;     private static final int DATABASE_VERSION = 1;     public static final String KEY_INPUT = &quot;rqst&quot;;     public static final String KEY_ANKER = &quot;ankr&quot;;      private static final String DATABASE_CREATE = &quot;CREATE VIRTUAL TABLE &quot; + FTS_VIRTUAL_TABLE + &quot; USING fts3(&quot; + KEY_INPUT + &quot;,&quot; + KEY_ANKER + &quot;);&quot;;      private final Context mCtx;      \/\/ \u041c\u0430\u0441\u0441\u0438\u0432 \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 (\u0442\u0435\u043c\u0430\u043c\u0438 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c\u0438, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u043c\u0438\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0430\u0445)     public static final String search_arr[] = {&quot;data1 request 1&quot;,&quot;data1 request 2&quot;,&quot;data2 request 3&quot;,&quot;data2 request 4&quot;};     \/\/ \u041c\u0430\u0441\u0441\u0438\u0432 \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0438\u043c html-\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0441 \u044f\u043a\u043e\u0440\u044f\u043c\u0438 (\u0444\u0430\u0439\u043b\u044b \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0435 assets \u043f\u0440\u043e\u0435\u043a\u0442\u0430)     public static final String ankers_arr[] = {&quot;file1.html#an1&quot;,&quot;file2.html#an2&quot;,&quot;file1.html#an3&quot;,&quot;file1.html#an4&quot;};      private static class DatabaseHelper extends SQLiteOpenHelper {         DatabaseHelper(Context context) {             super(context, DATABASE_NAME, null, DATABASE_VERSION);         }         @Override         public void onCreate(SQLiteDatabase db) {              db.execSQL(DATABASE_CREATE);             int LNGTH = search_arr.length;             ContentValues initValues = new ContentValues();             for(int i=0; i&lt;LNGTH; i++){                 initValues.put(KEY_INPUT, search_arr[i]);                 initValues.put(KEY_ANKER, ankers_arr[i]);                 db.insert(FTS_VIRTUAL_TABLE, null, initValues);                 initValues.clear();             }          }         @Override         public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {             db.execSQL(&quot;DROP TABLE IF EXISTS &quot; + FTS_VIRTUAL_TABLE);             onCreate(db);         }     }      public SearchDbAdapter(Context ctx) {         this.mCtx = ctx;     }      public SearchDbAdapter open() throws SQLException {         mDbHelper = new DatabaseHelper(mCtx);         mDb = mDbHelper.getWritableDatabase();         return this;     }      public void close() {         if (mDbHelper != null) {             mDbHelper.close();         }     }      public Cursor searchAnker(String inputText) throws SQLException {         inputText = inputText.toLowerCase();         String query = &quot;SELECT docid as _id,&quot; + KEY_INPUT + &quot;,&quot; + KEY_ANKER + &quot; FROM &quot; + FTS_VIRTUAL_TABLE + &quot; WHERE &quot; +  KEY_INPUT + &quot; MATCH '&quot; + inputText + &quot;';&quot;;         Cursor mCursor = mDb.rawQuery(query,null);         if (mCursor != null) {             mCursor.moveToFirst();         }         return mCursor;     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <b>1<\/b>. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u043e\u0434\u0438\u0442 \u0432 SearchView \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u00abdata2\u00bb. \u0421\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u044c SearchView \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 searchAnker() \u043a\u043b\u0430\u0441\u0441\u0430 SearchDbAdapter, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u0443\u0440\u0441\u043e\u0440 (mCursor), \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043d\u0430 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u044d\u0442\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c html-\u0444\u0430\u0439\u043b\u044b \u0441 \u044f\u043a\u043e\u0440\u044f\u043c\u0438: <br \/>   data2 request 3 \u2014 file1.html#an3<br \/>   data2 request 4 \u2014 file2.html#an4 <br \/>  <b>2<\/b>. \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435\u0441\u044f \u0432 mCursor \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435: data2 request 3, data2 request 4.<br \/>  <b>3<\/b>. \u041f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043f\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a ViewActivity, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441 \u0438\u043d\u0442\u0435\u043d\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0438\u043c\u044f html-\u0444\u0430\u0439\u043b\u0430 \u0441 \u044f\u043a\u043e\u0440\u0435\u043c \u0438\u0437 mCursor: file1.html#an3<\/p>\n<p>  <b>\u0420\u0435\u043a\u043b\u0430\u043c\u0430 \u0438 \u0441\u043a\u0440\u044b\u0442\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/b><br \/>  \u0414\u0430 \u043d\u0443\u0436\u043d\u0430 \u043b\u0438 \u043e\u043d\u0430, \u0440\u0435\u043a\u043b\u0430\u043c\u0430? \u041e\u043d\u0430 \u043f\u043e\u0440\u0442\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0430 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441\u0438\u043b \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0441\u0442\u0430\u043b \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c. \u0421\u0435\u0439\u0447\u0430\u0441 \u0447\u0442\u043e-\u0442\u043e \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e, \u0438\u043c\u0435\u044f \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043b\u0438\u0431\u043e \u043d\u0430 \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0439 \u0431\u0430\u043d\u043d\u0435\u0440\u043d\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a:   <\/p>\n<ul>\n<li> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430;<\/li>\n<li> \u0441\u0442\u0430\u0434\u0438\u044f \u0432\u044b\u0436\u0438\u0434\u0430\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043d\u044f\u043b \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442;<\/li>\n<li> \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435: \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u0432\u0435\u0440\u0445 \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0432\u044b\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u044e\u0442 \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0435 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0435 \u0431\u0430\u043d\u043d\u0435\u0440\u044b \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d, \u043d\u0435 \u043a\u043b\u0438\u043a\u043d\u0443\u0442\u044c \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u2014 \u0442\u0440\u0443\u0434\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430.<\/li>\n<\/ul>\n<p>  \u0421\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439, \u0442\u0430\u043a\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430, \u043c\u044f\u0433\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f. \u042f \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0430\u0432\u043d\u043e \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0442 \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0440\u0435\u043a\u043b\u0430\u043c\u044b \u0432 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0435, \u0438 \u0431\u043e\u043b\u044c\u0448\u0435, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0434\u043e\u043d\u0430\u0442 \u2014 \u043f\u043e\u043a\u0443\u043f\u043a\u0443 \u043f\u0438\u0432\u0430 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ac2\/3ad\/df0\/ac23addf0446412a9cfd3bfd5bc15bb0.jpg\"\/><br \/>  \u041f\u043e\u043a\u0443\u043f\u043a\u0430 \u043f\u0438\u0432\u0430 \u043b\u0435\u0433\u043a\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <a href=\"http:\/\/developer.android.com\/google\/play\/billing\/billing_integrate.html\">In-app Billing<\/a>. \u0414\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043f\u0440\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0440\u0430\u0437 \u043f\u0438\u0441\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 <a href=\"https:\/\/github.com\/serso\/android-checkout\">\u0442\u0443\u0442<\/a> \u0438 <a href=\"https:\/\/github.com\/anjlab\/android-inapp-billing-v3\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u043a-\u0442\u043e \u043e\u0436\u0438\u0432\u0438\u0442\u044c \u043d\u0430\u0448\u0443 Activity \u0441 \u0434\u043e\u043d\u0430\u0442\u043e\u043c, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u043a\u0430\u00bb. \u041f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043f\u043e \u043b\u044e\u0431\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u043d\u0438\u0436\u043d\u0435\u043c \u0443\u0433\u043b\u0443 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f Android, \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u044f\u044e\u0449\u0438\u0439 \u043e \u043f\u0438\u0432\u0435. <br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/456\/e12\/6b6\/456e126b600048609aa221a53465dd68.png\"\/><br \/>  \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u0432\u043e\u0442 \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u0442\u0432\u043e. <s>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043b\u0443\u0447\u0448\u0435 \u0447\u0442\u043e\u0431\u044b \u0432 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0431\u044b\u043b \u0414\u0436\u0438\u043c\u043c\u0438 \u0423\u044d\u0439\u043b\u0441<\/s>.     \t<\/p>\n<div class=\"clear\"><\/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\/post\/260045\/\"> http:\/\/habrahabr.ru\/post\/260045\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<b>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/b><br \/>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u044f \u043f\u0438\u0441\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0430 \u0425\u0430\u0431\u0440 \u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438-\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0435 \u043f\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435 \u0434\u043b\u044f Android, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0442\u0430\u043b\u043e \u043c\u043e\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0434\u043b\u044f GooglePlay. \u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u043e\u0433\u043b\u044f\u0434\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430\u0437\u0430\u0434 \u043d\u0430 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0445\u0430\u0431\u0440\u0430\u043f\u043e\u0441\u0442 \u0438 \u043f\u0440\u043e\u0448\u043b\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043c\u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u0448\u043d\u043e (\u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0434\u0440\u043e\u0433\u043d\u0443\u0442\u044c\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u043d\u0438\u0436\u0435). \u0417\u0430 \u043f\u0440\u043e\u0448\u0435\u0434\u0435\u0448\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043c\u043d\u043e\u0433\u043e\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c: AndroidMarket \u0441\u0442\u0430\u043b \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f GooglePlay \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u043c, \u0432\u044b\u0445\u043e\u0434\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u041e\u0421, \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u0435\u043a\u0430\u044f \u043e\u0431\u0449\u0430\u044f google-\u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u043a \u0434\u0438\u0437\u0430\u0439\u043d\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 material-design, \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u043e\u0432\u044b\u0435 \u0441\u0440\u0435\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0434\u0430 \u0438 \u0425\u0430\u0431\u0440 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f. <\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u043c, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043d\u0435\u0433\u043e \u043f\u043e\u0438\u0441\u043a, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c \u043a\u0430\u043a\u0443\u044e \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.  <\/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-259409","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259409","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=259409"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259409\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}