事象 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し…
適当にstyle適応すれば変わるだろうと思っていたましたが 結構ハマってしまったためメモ CheckBoxの色を変更する 下記パラメータを設定する * colorControlNormal * colorControlActivated checkbox_theme.xml <style name="MyCheckBox" parent="Theme.AppCompat.Light"> <item name="colorControlNormal">@color/green</item>
このように指定するとスペースが無視されてしまう <resources> <string name="hogeText"> hoge </string> </resources> 文字列を"ダブルクオート"で囲うことでスペースが適応される <resources> <string name="hogeText">" hoge "</string> </resources>
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を2つ同時に流して集中します。 1つ目が 延々タイプ音が流れるBGM CODING.FM キーボードのカチャカチャ音がずっと流れているBGMを聞きます。 ほんとにずっとカチャカチャなっ…
Edittextの変更を検知する テキストの変更をリアルタイムで検知するには 以下で取得できる EditText editText = (EditText) findViewById(R.id.editText_change); editText.addTextChangedListener(new TextWatcher() { @Override public void beforeTextCha…
行間の調整 android:lineSpacingMultiplier 文字に対する割合で設定できる android:lineSpacingMultiplier=”1.5″ android:lineSpacingExtra 静的にサイズを設定できる(サイズを固定したいならこっち) android:lineSpacingExtra=”15sp”