ほげほげ

プログラミング、英会話、ヨガ、料理などの備忘録など。

Android

Onsen UI メモ

新しいアプリをMonacaで作ることに挑戦中です。OnsenUIというJs,Cssフレームワークを使用すると簡単に体裁の整ったレイアウトが作れるのでメモ。 AngularJS上で動くフレームワークだが、必ずしもAngularJSを理解する必要は無いとのこと。 公式ページ HTML5モ…

Android EditTextを1行のみ入力させる

inputTypeを指定して、textMultiLineを含めないとよい。 <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/edit_text_nickname" android:hint="ニックネーム" android:layout_marginBottom="10dp" android:inputType="text" /> 以下のようにすると複数行入力 android:inputType="text|textMultiLine"</edittext>