Title: @AfterViews method is called multiple times if the same @EFragment instance is added again · Issue #1264 · androidannotations/androidannotations · GitHub
Open Graph Title: @AfterViews method is called multiple times if the same @EFragment instance is added again · Issue #1264 · androidannotations/androidannotations
X Title: @AfterViews method is called multiple times if the same @EFragment instance is added again · Issue #1264 · androidannotations/androidannotations
Description: the first to enter called once ,the second to enter called twice,and so on This is my code public void beginTransaction(Fragment fragment, String tag, Bundle bundle) { try { manager = getFragmentManager(); if (bundle != null) { fragment....
Open Graph Description: the first to enter called once ,the second to enter called twice,and so on This is my code public void beginTransaction(Fragment fragment, String tag, Bundle bundle) { try { manager = getFragmentMa...
X Description: the first to enter called once ,the second to enter called twice,and so on This is my code public void beginTransaction(Fragment fragment, String tag, Bundle bundle) { try { manager = getFragmentMa...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/1264
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@AfterViews method is called multiple times if the same @EFragment instance is added again","articleBody":"the first to enter called once ,the second to enter called twice,and so on\n\nThis is my code\n\n``` java\npublic void beginTransaction(Fragment fragment, String tag, Bundle bundle) {\n try {\n\n manager = getFragmentManager();\n if (bundle != null) {\n fragment.setArguments(bundle);\n }\n transaction = manager.beginTransaction();\n transaction.replace(R.id.main, fragment, tag);\n\n transaction.commit();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n @CheckedChange({ R.id.main_tab_project, R.id.main_tab_moment,R.id.main_tab_infomation,R.id.main_tab_personal_info })\n void checkedChangedOnSomeCheckBoxs(CompoundButton btn, boolean isChecked) {\n if (isChecked) {\n switch (btn.getId()) {\n case R.id.main_tab_project:\n beginTransaction(mFragmentProjectList,\"mFragmentProjectList\",null);\n break;\n case R.id.main_tab_moment:\n beginTransaction(mFragmentMoment,\"mFragmentMoment\",null);\n break;\n case R.id.main_tab_infomation:\n beginTransaction(mFragmentInformation,\"mFragmentInformation\",null);\n break;\n case R.id.main_tab_personal_info:\n beginTransaction(mFragmentPersonal,\"mFragmentPersonal\",null);\n break;\n }\n }\n }\n\n```\n\n``` xml\n\u003cRadioGroup\n android:id=\"@+id/main_radio\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"@dimen/comm_line_height\"\n android:layout_alignParentBottom=\"true\"\n android:padding=\"@dimen/comm_space_3\"\n android:gravity=\"bottom\"\n android:background=\"@color/header_background_color\"\n android:orientation=\"horizontal\" \u003e\n\n \u003cRadioButton\n android:id=\"@+id/main_tab_project\"\n style=\"@style/MainTabTheme\"\n android:drawableTop=\"@drawable/selector_main_tab_project\"\n android:text=\"@string/main_tab_project\" /\u003e\n \u003cRadioButton\n android:id=\"@+id/main_tab_moment\"\n style=\"@style/MainTabTheme\"\n android:drawableTop=\"@drawable/selector_main_tab_project\"\n android:text=\"@string/main_tab_moment\" /\u003e\n\n \u003cRadioButton\n android:id=\"@+id/main_tab_infomation\"\n style=\"@style/MainTabTheme\"\n android:drawableTop=\"@drawable/selector_main_tab_information\"\n android:text=\"@string/main_tab_information\" /\u003e\n\n \u003cRadioButton\n android:id=\"@+id/main_tab_personal_info\"\n style=\"@style/MainTabTheme\"\n android:drawableTop=\"@drawable/selector_main_tab_personal_info\"\n android:text=\"@string/main_tab_personal_info\" /\u003e\n \u003c/RadioGroup\u003e\n```\n","author":{"url":"https://github.com/litao0621","@type":"Person","name":"litao0621"},"datePublished":"2014-12-02T07:59:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":31},"url":"https://github.com/1264/androidannotations/issues/1264"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:80d79b87-6033-9047-5cb9-7f024dfc2e95 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A534:243487:122DCF2:197A74B:6A61C12D |
| html-safe-nonce | 90baae21d4dad6ecd0eee3a33c9ba6ee0d02bef58d54084cf45b68637be9c63f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTM0OjI0MzQ4NzoxMjJEQ0YyOjE5N0E3NEI6NkE2MUMxMkQiLCJ2aXNpdG9yX2lkIjoiMTE5MTU4NjgyOTIxNDc5NDAyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 980f257794b4546b7de00cc9020e50bca55af32b4bedc9019d92d0bd32cb8a01 |
| hovercard-subject-tag | issue:50622047 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/1264/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7084af9dafc8281655ae75ac8c69da78132ec84d2c7d1a78c0399ee82bddf1d2/androidannotations/androidannotations/issues/1264 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7084af9dafc8281655ae75ac8c69da78132ec84d2c7d1a78c0399ee82bddf1d2/androidannotations/androidannotations/issues/1264 |
| og:image:alt | the first to enter called once ,the second to enter called twice,and so on This is my code public void beginTransaction(Fragment fragment, String tag, Bundle bundle) { try { manager = getFragmentMa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | litao0621 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width