Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences.
![マテリアル デザインのガイドライン(日本語版)](https://cdn-ak-scissors.b.st-hatena.com/image/square/d17b3739ac264bf7257985221d19b948498648f3/height=288;version=1;width=512/https%3A%2F%2Fm3.material.io%2Fstatic%2Fassets%2Fm3-social.jpg)
AndroidでActivityの起動とかで 引数とかにContextを指定する機会が非常に多い。 たとえば、別画面の起動 (thisのみでも良いですけど、場所によって何のthis?ってなるから明確にアクティブ名を指定してます。) Intent intent = new Intent(MainActivity.this,SubActivity.class); startActivity(intent); メッセージボックスを表示する Toast.makeText(getApplicationContext(), "ToastTest", 3000).show(); とかの第一引数で、Contextを渡している。 また、コンテキストを取得するのには thisとgetApplicationContext()がある。 どっち使えばいいの?この二つの違いは?ってのを個人的に調べてみた。 (間違って
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く