Android Samples
Name | Größe | Rev. | Zeit | Autor | Log Message |
---|---|---|---|---|---|
![]() |
|||||
![]() |
510 | 1db620e | 2014-06-09 05:23:43 | Masahiko, SAWAI | Added some modules Added the followi... |
![]() |
1 k | 1db620e | 2014-06-09 05:23:43 | Masahiko, SAWAI | Added some modules Added the followi... |
![]() |
3.08 k | 965e4ff | 2019-05-02 13:04:39 | Masahiko, SAWAI | Updated projects file. |
! listview-single-choice 要素のうち1つだけを選択できる ListView を作るサンプル。 レイアウトは標準で用意されている android.R.layout.simple_list_item_single_choice を利用する。 このレイアウトでは表示用の View は CheckedTextView となり、 id は android.R.id.text1 となる。 チェックされているアイテムの場所が以下のメソッドで取得できる。 * ListView.getCheckedItemPosition() : int !! ビルドターゲット http://maven-android-plugin-m2site.googlecode.com/svn/plugin-info.html * mvn compile - アプリケーションのコンパイル * mvn package - apk の作成 * mvn clean - ビルドファイルの削除 * mvn install - maven の local リポジトリにインストール * mvn android:deploy - エミュレータやデバイスにインストール * mvn android:generate-sources * mvn install - アプリケーションのインストール * mvn uninstall - アプリケーションのアンインストール