| | |
| | | import com.application.zhangshi_app_android.R; |
| | | import com.application.zhangshi_app_android.ui.function.FamilyAssetsActivity; |
| | | import com.application.zhangshi_app_android.ui.function.FamilyMemorabiliaActivity; |
| | | import com.application.zhangshi_app_android.ui.function.GrowthExperienceActivity; |
| | | import com.application.zhangshi_app_android.ui.function.HomeDevicesActivity; |
| | | import com.hjq.bar.TitleBar; |
| | | |
| | |
| | | classMap.put(null,(LinearLayout) findViewById(R.id.dl_contacts)); |
| | | classMap.put(null,(LinearLayout) findViewById(R.id.dl_pet)); |
| | | classMap.put(null,(LinearLayout) findViewById(R.id.dl_income_and_expenses)); |
| | | classMap.put(null,(LinearLayout) findViewById(R.id.dl_growing_up)); |
| | | classMap.put(GrowthExperienceActivity.class,(LinearLayout) findViewById(R.id.dl_growing_up)); |
| | | classMap.put(null,(LinearLayout) findViewById(R.id.dl_marriage)); |
| | | classMap.put(null,(LinearLayout) findViewById(R.id.dl_property)); |
| | | classMap.put(null,(LinearLayout) findViewById(R.id.dl_hundred_wish)); |
| | |
| | | classMap.put(null,(LinearLayout) findViewById(R.id.dl_privacy)); |
| | | setSelectItem(classMap.get(getClass())); |
| | | for (Map.Entry<Class, LinearLayout> set : classMap.entrySet()) { |
| | | set.getValue().setOnClickListener(v -> { |
| | | if (set.getKey() != null){ |
| | | AppManager.getAppManager().startActivity(set.getKey()); |
| | | } |
| | | }); |
| | | LinearLayout linearLayout = set.getValue(); |
| | | if (linearLayout != null) { |
| | | linearLayout.setOnClickListener(v -> { |
| | | if (set.getKey() != null){ |
| | | AppManager.getAppManager().startActivity(set.getKey()); |
| | | } |
| | | }); |
| | | } else { |
| | | |
| | | } |
| | | } |
| | | mDrawerLayout.setScrimColor(getResources().getColor(R.color.color_shadow)); |
| | | } |