HomebrewでYou are using a pre-release version of Xcode.と出たときの対応

事象 brew doctor を実行したら下記のように出た。 Warning: You are using a pre-release version of Xcode. You may encounter build failures or other breakages. Please create pull-requests instead of filing issues. 対応1 どうもMac OSをUpdateし…

【Android】CheckBoxの色を変更する時の対応

適当にstyle適応すれば変わるだろうと思っていたましたが 結構ハマってしまったためメモ CheckBoxの色を変更する 下記パラメータを設定する * colorControlNormal * colorControlActivated checkbox_theme.xml <style name="MyCheckBox" parent="Theme.AppCompat.Light"> <item name="colorControlNormal">@color/green</item>

【Android】string.xmlで先頭と最後のスペースが無視されてしまう場合の対応

このように指定するとスペースが無視されてしまう <resources> <string name="hogeText"> hoge </string> </resources> 文字列を"ダブルクオート"で囲うことでスペースが適応される <resources> <string name="hogeText">" hoge "</string> </resources>

【Android】TextViewをコードからBOLDにする方法

xmlから指定するとこんな感じ <TextView android:id="@+id/hoge_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textStyle="bold" android:text="hogehoge" /> これをコードからやりたい TextView hogeText = (TextView) findViewById(R.id.hoge_text); hogeText.setTypeface(Typeface.DEFAULT_BOLD); これ…</textview>

最強に集中できるプログラミング中のBGM

プログラムを書いていて、全力で没頭したい時があります。 そんな時、私はあるBGMを2つ同時に流して集中します。 1つ目が 延々タイプ音が流れるBGM CODING.FM キーボードのカチャカチャ音がずっと流れているBGMを聞きます。 ほんとにずっとカチャカチャなっ…

【Android】Edittextの変更をリアルタイムに検知する

Edittextの変更を検知する テキストの変更をリアルタイムで検知するには 以下で取得できる EditText editText = (EditText) findViewById(R.id.editText_change); editText.addTextChangedListener(new TextWatcher() { @Override public void beforeTextCha…

【Android】TextViewの行間の調整する

行間の調整 android:lineSpacingMultiplier 文字に対する割合で設定できる android:lineSpacingMultiplier=”1.5″ android:lineSpacingExtra 静的にサイズを設定できる(サイズを固定したいならこっち) android:lineSpacingExtra=”15sp”