Last active
April 3, 2019 14:23
-
-
Save ismailgungor/73fd77af5e81fdd268cbf7dc4763fce6 to your computer and use it in GitHub Desktop.
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
| class MainActivity : AppCompatActivity() { | |
| private lateinit var ivEvent: ImageView | |
| private lateinit var ivOwner: ImageView | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setContentView(R.layout.activity_main) | |
| ivEvent = findViewById(R.id.iv_event) | |
| ivOwner = findViewById(R.id.iv_orner) | |
| val url = "https://www.erasmuslife.net/img/tshirt/8.jpg" | |
| val imageProcessHelper = PicassoImageHelper() | |
| /* | |
| Eğer glide kütüphanesini kullanmak istersen ise | |
| 15. satırı | |
| val imageProcessHelper = GlideImageHelper(this) | |
| olarak değiştirmemiz yeterli olacaktır. | |
| */ | |
| imageProcessHelper.loadUrl(url, ivEvent) | |
| imageProcessHelper.loadUrl(url, ivOwner) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment