2017-08-19から1日間の記事一覧

FloatingActionButtonのアイコンを変更する

今回はAndroid Studioに用意されたアイコン(addアイコン)に変更します。まずは左端のプロジェクトウィンドウ選択して、app配下のresを右クリックして、[New]->[Vector Asset]をクリックします。すると、アイコンの選択画面に遷移するので、Iconのドロイドく…

FloatingActionButtonを実装する

表題の通り、FloatingActionButtonを実装します。 Empty projectを起点にしました。まずはMainActivityのonCreate()で var AddListButton: FloatingActionButton? = findViewById(R.id.addbutton) AddListButton?.setOnClickListener {view -> Snackbar.make…