私は自分の論文のためにAndroidでメモアプリを作成しています.EditText内にチェックボックスを配置する方法と、フォーマットを維持してデータベースに保存する方法を知りたいだけです. これはevernoteで見ましたが、まったくわかりません。ありがとう
質問する
2824 次
1 に答える
0
相対レイアウトでEditTextをCheckBoxとオーバーラップさせてみてください。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="text"
/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="the checkbox" />
</RelativeLayout>
フォーマットを維持したまま、データベースに正確に何を保存しますか?テキストだけの場合は、テキストタイプの列に保存する必要があります。データベースに関するガイドはここにあります:http ://www.vogella.com/articles/AndroidSQLite/article.html 。
于 2012-08-09T17:28:26.900 に答える