{"id":283016,"date":"2016-12-26T09:10:03","date_gmt":"2016-12-26T06:10:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=283016"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=283016","title":{"rendered":"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0438\u043b\u0438 multiple backstack"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/fe0\/e2a\/d41\/fe0e2ad41e264166acb08935112c977a.jpg\"\/><\/p>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h3>\n<p>  \u0421 \u0432\u044b\u0445\u043e\u0434\u043e\u043c android 3.0 (Api Level 11) \u0432 android \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b, \u0438 \u0442\u0430\u043a \u0443\u0436 \u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 google \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u043d\u0438\u0445 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d backstack. \u041d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b \u0438 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0438 \u0445\u043e\u0442\u044f\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c. \u0410 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0442\u044f\u0442 \u043f\u043e\u043b\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e ios \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u0438\u0435 Tab Bar \u043d\u0430 android, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435. \u041d\u043e \u0443 \u043d\u0430\u0441 \u043e\u0434\u0438\u043d backstack, \u0438 \u0447\u0442\u043e \u0436\u0435 \u043d\u0430\u043c \u0434\u0435\u043b\u0430\u0442\u044c? \u0417\u0430\u0434\u0430\u0447\u0430 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>  <\/p>\n<blockquote><p>\u00ab\u0415\u0441\u043b\u0438 \u043d\u0435 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c, \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0443\u0437\u043d\u0430\u0435\u0448\u044c. \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0435\u0448\u044c, \u043d\u0443\u0436\u043d\u043e \u043b\u0438\u0448\u044c \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c.\u00bb<\/p><\/blockquote>\n<p>  \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u044d\u0442\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 <a href=\"https:\/\/material.io\/guidelines\/components\/bottom-navigation.html#bottom-navigation-style\">guide<\/a> (\u0441\u043c\u043e\u0442\u0440\u0438 Behavior), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u043d\u0438\u0437 \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. <br \/>  \u041d\u043e \u043a\u043e\u0433\u043e \u044d\u0442\u043e \u0432\u043e\u043b\u043d\u0443\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0447\u044c \u0438\u0434\u0451\u0442 \u043e\u0431 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f? \u041f\u043e\u043b\u043e\u0436\u0430 \u0440\u0443\u043a\u0443 \u043d\u0430 \u0441\u0435\u0440\u0434\u0446\u0435 \u0432\u044b \u043f\u0440\u0438\u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0442\u0430\u043a, \u043a\u0430\u043a \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u2014 \u0443\u0434\u043e\u0431\u043d\u0435\u0435?<\/p>\n<p>  \u0418 \u043a\u0430\u043a \u0436\u0435 \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0437-\u0437\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b? \u041d\u0430 \u0443\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043e\u0434\u0438\u043d \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0434\u0440\u0443\u0433\u043e\u0433\u043e, \u0430 \u043f\u043e\u0438\u0441\u043a \u0432 google \u0432\u044b\u0434\u0430\u0451\u0442 \u0438 \u0442\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0443\u0436\u0430\u0441\u043d\u044b\u0445 \u043a\u043e\u0441\u0442\u044b\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. <\/p>\n<p>  \u041d\u043e \u0437\u0430\u0447\u0435\u043c \u0433\u0430\u0434\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0443 Instagram? \u041a \u0441\u043b\u043e\u0432\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, Instagram \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430, \u0431\u044b\u043b\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0430, \u043a\u043e\u0433\u0434\u0430 \u0434\u0438\u0437\u0430\u0439\u043d Instagram \u0431\u044b\u043b \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0430\u043c\u0438, \u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043b\u0430\u0441\u044c.<\/p>\n<p>  \u0414\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c apk Instagram \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 apktool \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u0442\u0430\u043c. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 activity \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2014 com.instagram.android.activity.MainTabActivity, \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0442 \u0447\u0435\u0433\u043e \u043e\u043d\u0430 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0430, \u2014 \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 com\/instagram\/base\/activity\/tabactivity\/a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d \u043e\u0442 android\/app\/ActivityGroup. \u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u043a\u043e\u043f\u0430\u0442\u044c.<\/p>\n<p>  \u0422\u0430\u043a\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u044b, \u043a\u0430\u043a <a href=\"https:\/\/developer.android.com\/reference\/android\/app\/ActivityGroup.html\">ActivityGroup<\/a>, <a href=\"https:\/\/developer.android.com\/reference\/android\/app\/TabActivity.html\">TabActivity<\/a>, <a href=\"https:\/\/developer.android.com\/reference\/android\/app\/LocalActivityManager.html\">LocalActivityManager<\/a> \u2014 deprecated \u0441 13 Api Level, \u0442\u043e\u0435\u0441\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0441\u0440\u0430\u0437\u0443, \u043a\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b. \u041d\u0430 <a href=\"http:\/\/developer.android.com\">developer.android.com<\/a> \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<blockquote><p>This class was deprecated in API level 13.<br \/>  Use the new Fragment and FragmentManager APIs instead; these are also available on older platforms through the Android compatibility package.<\/p><\/blockquote>\n<p>  \u0412\u0441\u0435 \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c deprecated \u0432 \u043d\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u0442\u043a\u0435 \u043d\u0435\u0445\u043e\u0440\u043e\u0448\u043e. \u0412\u0441\u0435 \u0431\u0440\u043e\u0441\u0438\u043b\u0438\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u0445 \u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u0431\u044b\u043b\u0438 \u043f\u0440\u0435\u0434\u0430\u043d\u044b \u0437\u0430\u0431\u0432\u0435\u043d\u0438\u044e. <\/p>\n<h3>\u0420\u0435\u0448\u0435\u043d\u0438\u0435?<\/h3>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f7d\/8fd\/12a\/f7d8fd12a3094564bd38e54067ff23fa.png\"\/><br \/>  \u041f\u043e\u0436\u0430\u043b\u0443\u0439, \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u041e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439 (deprecated \u0432\u0435\u0434\u044c \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f). \u041b\u0438\u0447\u043d\u043e \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0431\u044b\u043b \u043f\u0440\u043e LocalActivityManager, \u0445\u043e\u0442\u044f \u043d\u0430\u0447\u0430\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0434 android \u0435\u0449\u0451 \u0432 \u0442\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430, \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432 \u0441 8 Api Level \u0431\u044b\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445, \u043d\u043e \u043e\u043d\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0432\u044b\u0442\u0435\u0441\u043d\u044f\u043b\u0438\u0441\u044c. <\/p>\n<p>  \u0412\u0435\u0437\u0434\u0435 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043f\u043e\u0440\u043d\u043e \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0442, \u0447\u0442\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u0448\u0435 \u0432\u0441\u0451, \u0430 \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 single activity application \u0441\u0442\u043e\u043b\u044c \u043d\u0435\u043f\u0440\u0435\u043b\u043e\u0436\u043d\u0430, \u0447\u0442\u043e \u0442\u0435, \u043a\u0442\u043e \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b\u0441\u044f \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u0430 android \u043f\u043e\u0441\u043b\u0435 2011, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0438 \u043d\u0435 \u0441\u043b\u044b\u0448\u0430\u043b\u0438 \u043e LocalActivityManager.<\/p>\n<p>  \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0433\u043b\u0443\u043f\u043e \u0438\u043c \u043d\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u044f activity \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c, \u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0441\u0432\u043e\u0438\u043c backstack&#8217;\u043e\u043c!<\/p>\n<h3>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430<\/h3>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c TabHost \u043f\u0440\u043e\u0441\u0442\u043e. \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0438\u0441\u043a\u0430\u0442\u044c, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0435\u0432\u043d\u0438\u0445 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u0432, \u043a\u0430\u043a \u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043f\u043e\u043c\u043d\u0438\u0442.<\/p>\n<p>  Layout \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e activity:  <\/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;TabHost         android:id=&quot;@android:id\/tabhost&quot;         android:layout_width=&quot;match_parent&quot;         android:layout_height=&quot;match_parent&quot;         android:layout_above=&quot;@+id\/bottom_bar&quot;         android:layout_below=&quot;@+id\/top&quot;&gt;          &lt;LinearLayout             android:layout_width=&quot;match_parent&quot;             android:layout_height=&quot;match_parent&quot;             android:orientation=&quot;vertical&quot;&gt;              &lt;TabWidget                 android:id=&quot;@android:id\/tabs&quot;                 android:layout_width=&quot;match_parent&quot;                 android:layout_height=&quot;wrap_content&quot;&gt;&lt;\/TabWidget&gt;              &lt;FrameLayout                 android:id=&quot;@android:id\/tabcontent&quot;                 android:layout_width=&quot;match_parent&quot;                 android:layout_height=&quot;match_parent&quot;&gt;&lt;\/FrameLayout&gt;         &lt;\/LinearLayout&gt;     &lt;\/TabHost&gt; &lt;\/FrameLayout&gt; <\/code><\/pre>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u043e\u0434:<\/p>\n<pre><code class=\"java\">\/\/\u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 TabActivity (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e\u0436\u0435 deprecated), \/\/\u041d\u043e \u0437\u0430\u0447\u0435\u043c \u043d\u0430\u043c \u0434\u0432\u0430 deprecated \u043a\u043b\u0430\u0441\u0441\u0430, \u0435\u0441\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u043e\u0434\u043d\u0438\u043c? public class MainActivity extends android.app.ActivityGroup {      TabHost mTabHost;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         mTabHost = (TabHost)findViewById(android.R.id.tabhost);         mTabHost.setup(getLocalActivityManager());          TabHost.TabSpec tabSpec;          tabSpec = mTabHost.newTabSpec(&quot;tag1&quot;);         tabSpec.setIndicator(&quot;\u0412\u043a\u043b\u0430\u0434\u043a\u0430 1&quot;);\/\/use getString          \/\/TabActivity \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0432 AndroidManifest         tabSpec.setContent(new Intent(this, TabActivity.class));         mTabHost.addTab(tabSpec);          tabSpec = mTabHost.newTabSpec(&quot;tag2&quot;);         tabSpec.setIndicator(&quot;\u0412\u043a\u043b\u0430\u0434\u043a\u0430 2&quot;);\/\/use getString          \/\/TabActivity \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0432 AndroidManifest         tabSpec.setContent(new Intent(this, TabActivity.class));         mTabHost.addTab(tabSpec);     } } <\/code><\/pre>\n<h3>P.s.<\/h3>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0436\u0430\u043b\u044c, \u0447\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c deprecated \u043a\u043b\u0430\u0441\u0441\u044b, \u043d\u043e \u043f\u043e\u043a\u0430 google \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u0443\u044e \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e \u0441 \u043e\u0434\u043d\u0438\u043c backstack&#8217;\u043e\u043c, \u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0430\u0437\u0443\u043c\u043d\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b, \u043d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e google \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u0443\u043f\u0443\u0441\u0442\u0438\u043b \u0442\u0430\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 Fragment Api.<\/p>\n<p>  \u0422\u0430\u043a \u0443\u0436 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0435 android \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0443\u0436 \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u043a\u0440\u0443\u0447\u0435 iphone\u2026<br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/317760\/\"> https:\/\/habrahabr.ru\/post\/317760\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/fe0\/e2a\/d41\/fe0e2ad41e264166acb08935112c977a.jpg\"\/><\/p>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h3>\n<p>  \u0421 \u0432\u044b\u0445\u043e\u0434\u043e\u043c android 3.0 (Api Level 11) \u0432 android \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b, \u0438 \u0442\u0430\u043a \u0443\u0436 \u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 google \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u043d\u0438\u0445 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d backstack. \u041d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b \u0438 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0438 \u0445\u043e\u0442\u044f\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c. \u0410 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0442\u044f\u0442 \u043f\u043e\u043b\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e ios \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u0438\u0435 Tab Bar \u043d\u0430 android, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435. \u041d\u043e \u0443 \u043d\u0430\u0441 \u043e\u0434\u0438\u043d backstack, \u0438 \u0447\u0442\u043e \u0436\u0435 \u043d\u0430\u043c \u0434\u0435\u043b\u0430\u0442\u044c? \u0417\u0430\u0434\u0430\u0447\u0430 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439.<\/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-283016","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283016","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=283016"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283016\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}