Created
June 21, 2020 18:48
-
-
Save opannapo/8440ddb61097976e36c428995f1859de to your computer and use it in GitHub Desktop.
dagger-1-4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ManualDiActivity extends AppCompatActivity { | |
| Kalkulator kalkulator; | |
| Bagi bagi = new Bagi(); | |
| Kali kali = new Kali(); | |
| Tambah tambah = new Tambah(); | |
| Kurang kurang = new Kurang(); | |
| Sin sin = new Sin(); // --->>>> Cuma nambahin ini doang !!!! Di 101 Tempat | |
| @BindView(R.id.textView) | |
| TextView textView; | |
| final String PAGE = this.getClass().getSimpleName(); | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_dua); | |
| ButterKnife.bind(this); | |
| kalkulator = new Kalkulator(bagi, kali, kurang, tambah, sin); // --->>>> Cuma nambahin ini doang !!!! Di 101 Tempat | |
| ... | |
| .. | |
| . | |
| } | |
| ... | |
| .. | |
| . | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment