Android中复选框多项选择当前的位置信息提交的示例代码

  

先给大家展示下效果图:

  

 Android中复选框多项选择当前的位置信息提交的示例代码

  

废话不多说了、下面通过示例代码给大家介绍复选框多项选择当前的位置信息提交,具体代码如下所示:

        包com.dplustours.b2c.View.activity;   进口android.content.Context;   进口android.view.LayoutInflater;   进口android.view.View;   进口android.view.ViewGroup;   进口android.widget.AdapterView;   进口android.widget.BaseAdapter;   进口android.widget.Button;   进口android.widget.CheckBox;   进口android.widget.Toast;   进口com.dplustours.b2c.R;   进口com.dplustours.b2c.View.application.MyApplication;   进口com.dplustours.b2c.View.application.UIHelper;   进口java.util.ArrayList;   进口java.util.HashMap;/* *   *由zhq_zhao编码=" utf - 8 " & # 63;比;   & lt; LinearLayout xmlns: android=" http://schemas.android.com/apk/res/android "   android: layout_width=" match_parent "   android: layout_height=" match_parent "   android:背景=" @color/weixin”   面向android:=按怪薄北?   & lt; com.dplustours.b2c.View.view.InnerScrollView   android: id=癅 + id/滚动视图”   android: layout_width=" match_parent "   android: layout_height=" 0 dp”   android: layout_weight=?”比;   LinearLayout & lt;   android: layout_width=" match_parent "   android: layout_height=" match_parent "   面向android:=按怪薄北?   LinearLayout & lt;   android: layout_width=" match_parent "   android: layout_height=" @dimen/dp_60”   android: layout_gravity="中心"   android:背景=" @color/白”   android:重力="中心"   面向android:="水平"   android: paddingLeft=癅dimen/dp_10”比;   & lt; TextView   android: layout_width=" 0 dp”   android: layout_height=" match_parent "   android: layout_weight=" 1 "   android:重力="中心|左”   android:文本="车辆租金”   android:输入textColor=" @color/黑”   android: textSize=癅dimen/sp_15”/比;   & lt; TextView   android: layout_width=" 0 dp”   android: layout_height=" match_parent "   android: layout_weight=" 3 "   android:重力="中心"   android:文本=¥6000.00×1=¥600.00”   android:输入textColor=" @color/灰色"   android: textSize=癅dimen/sp_13”/比;   & lt;/LinearLayout>   & lt;视图   android: layout_width=" match_parent "   android: layout_height=" @dimen/dp_1”   android:背景=癅color/login_line”/比;   & lt; com.dplustours.b2c.View.view.MyListView   android: id=癅 + id/else_listview”   android: layout_width=" match_parent "   android: layout_height=" wrap_content "   android:背景=" @color/白”比;   & lt;/com.dplustours.b2c.View.view.MyListView>   & lt;视图   android: layout_width=" match_parent "   android: layout_height=" @dimen/dp_1”   android:背景=癅color/login_line”/比;   LinearLayout & lt;   android: layout_width=" match_parent "   android: layout_height=" @dimen/dp_60”   android: layout_gravity="中心|正确”   android:背景=" @color/白”   android:重力="中心|正确”   面向android:="水平"   android: paddingLeft=癅dimen/dp_10”比;   & lt; TextView   android: layout_width=" 0 dp”   android: layout_height=" match_parent "   android: layout_marginRight=" @dimen/dp_10”   android: layout_weight=" 3 "   android:重力="中心|正确”   android:文本=¥6000.00   android:输入textColor=" @color/红”   android: textSize=癅dimen/sp_15”/比;   & lt;/LinearLayout>   & lt;视图   android: layout_width=" match_parent "   android: layout_height=" @dimen/dp_1”   android:背景=癅color/login_line”/比;   & lt;/LinearLayout>   & lt;/com.dplustours.b2c.View.view.InnerScrollView>   & lt;按钮   android: id=癅 + id/next_step”   android: layout_width=" match_parent "   android: layout_height=" @dimen/dp_60”   android: layout_alignParentBottom=" true "   android: layout_gravity="底"   android:背景=" @color/yuyue”   android:重力="中心"   android:文本="下一步”   android:输入textColor=" # FFFFFF "   android: textSize=癅dimen/sp_18”/比;   & lt;/LinearLayout>   & lt; & # 63; xml version=" 1.0 " encoding=" utf - 8 " & # 63;比;   & lt; LinearLayout xmlns: android=" http://schemas.android.com/apk/res/android "   android: layout_width=" match_parent "   android: layout_height=" wrap_content "   android:背景=" @color/白”   面向android:=按怪薄北?   LinearLayout & lt;   android: layout_width=" match_parent "   android: layout_height=" @dimen/dp_60”   面向android:="水平"   android: paddingLeft=癅dimen/dp_10”比;   LinearLayout & lt;   android: layout_width=" 0 dp”   android: layout_height=" match_parent "   android: layout_weight=" 1 "   面向android:="水平"比;   & lt;复选框   android: focusable=" false "   android:点击=" false "   android:按钮=" @null "   android:背景=" @drawable/chebox_mult_select”   android: id=癅 + id/iv_select”   android: layout_width=" @dimen/dp_25”   android:重力="中心|左”   android: layout_height=" @dimen/dp_25”   android: layout_gravity="中心"/比;   & lt; TextView   android: layout_width=" wrap_content "   android: layout_height=" match_parent "   android: layout_gravity="中心"   android:重力="中心"   android: paddingLeft=" @dimen/dp_15”   android:文本="手续费”   输入textColor=癅color/center_item_text”android:/比;   & lt;/LinearLayout>   & lt; TextView   android: layout_width=" 0 dp”   android: layout_height=" match_parent "   android: layout_gravity="中心"   android: layout_weight=" 3 "   android:输入textColor=" @color/黑”   android:重力="中心"   android:文本=¥50.00/比;   & lt;/LinearLayout>   & lt;/LinearLayout>      包com.dplustours.b2c.View.activity;   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

Android中复选框多项选择当前的位置信息提交的示例代码