The King's Museum

ソフトウェアエンジニアのブログ。

Android

『Androidを支える技術〈Ⅰ〉 ~ 60fps を達成するモダンな GUI システム』を読んで

『Androidを支える技術〈Ⅰ〉 ~ 60fps を達成するモダンな GUI システム』を読みました。 Androidを支える技術〈I〉──60fpsを達成するモダンなGUIシステム (WEB+DB PRESS plus)作者: 有野和真出版社/メーカー: 技術評論社発売日: 2017/02/22メディア: 単行本…

android.widget.Button の setMinWidth() と setMinimumWidth()

ちょっと前に 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>…

(c) The King's Museum