Android Studio

Android Studioで自分好みのフォントを設定する方法

Android Studioで自分好みのフォントを設定する方法です。(手順)1. appを右クリック>new>Folder>Assets Folder2. assetsフォルダができます。3. そこに適当にダウンロードしてきたttf,otfファイルを格納4. フォントを変更したいTextViewのsetText()の際に…

Activityから別のActivityへの遷移(サンプル)

Intentを使います。 詳細は追記します。例 EditActivityへの遷移 Intent intent = new Intent(getApplication, EditActivity.class); startActivity(intent);

メッセージエリアのテンプレート(Android Studio)

メッセージエリア上記のような簡単なメッセージエリアです。 色等デザインは好きにアレンジしてください。 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="bottom" android:orientation="horizontal"> </linearlayout>

RecyclerViewをはじめて見た人

駅のホーム降りて、エスカレーターを降りるたとき、ふとRecyclerViewを実装したくなりました。偶然にもAndroid Studioもインストールしてあったため、やってみることにしました。 どのサイトを見てもアホな私にはわかりにくかったため、これ見れば誰でもでき…