2015-12-01から1日間の記事一覧
ちょっと前に android.widget.Button(以下、Button クラス)に最小幅を設定しようとして、ちょっとつまづいた。 問題 Button クラスに対して xml 側で最小幅を設定しているところがあった。 (指定が px 単位なのは分かりやすくするため) <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" android:minWidth="30px" /> これを、ちょっ</button>…