編輯:關於android開發
ListView item中有Button和RadioButton的時候,它的Item點擊事件不起作用,需要設置item的屬性。
Here is an example: listview_item.xml
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center_vertical"
android:orientation="vertical"
android:descendantFocusability="blocksDescendants">
<RadioButton
android:id="@+id/script_name_radio_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text
android:textColor="#000"
android:padding="5dp"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
/>
</LinearLayout>
Android Studio NDK開發
Android Studio NDK開發 以前接觸過NDK的開發,是在Eclipse環境下開發的。今天嘗試了下用Android Studio來配置,結果真是處處都是坑,現
json相關類庫,java對象與json相互轉換,json相互轉換
json相關類庫,java對象與json相互轉換,json相互轉換有效選擇七個關於Java的JSON開源類庫 轉自:http://www.open-open.com/li
《第一行代碼》目錄
《第一行代碼》目錄 圖書目錄: 第1章 開始啟程,你的第一行Android代碼 1.1 了解全貌,Android王國簡介 1.1.1 Androi
關於android架構的文章工程等
關於android架構的文章工程等 Flux Architecture https://github.com/lgvalle/android-flux-todo-app