Android 如何修改简单列表项多选的样式

Android 如何修改简单列表项多选的样式,android,android-listview,Android,Android Listview,我有一个简单的列表视图,带有simple\u list\u item\u多项选择 lv = (ListView) dialog.findViewById(R.id.files_list_view); arrayAdapter = new ArrayAdapter<String>(ctx,android.R.layout.simple_list_item_multiple_choice,readyToDownload ); lv.setChoiceMode(ListView.CHOIC

我有一个简单的列表视图,带有
simple\u list\u item\u多项选择

lv = (ListView) dialog.findViewById(R.id.files_list_view);
arrayAdapter = new ArrayAdapter<String>(ctx,android.R.layout.simple_list_item_multiple_choice,readyToDownload );
lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
lv.setAdapter(arrayAdapter);
lv=(ListView)dialog.findViewById(R.id.files\u list\u view);
arrayAdapter=新的arrayAdapter(ctx,android.R.layout.simple\u list\u item\u多选,readyToDownload);
lv.setChoiceMode(ListView.CHOICE\u MODE\u MULTIPLE);
低压设置适配器(阵列适配器);


但是这里的复选框默认位于右侧我想将它们放在左侧文本之前。怎么可能呢?我只是通过创建自定义行模板来避免自定义适配器

<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="fill_parent"
android:layout_height="40dip"
android:gravity="center_vertical"
android:paddingLeft="5dip"
android:drawableLeft="?android:attr/listChoiceIndicatorMultiple"
/>

arrayAdapter = new ArrayAdapter<String>(ctx,R.layout.simple_list_item,readyToDownload );

arrayAdapter=新的arrayAdapter(ctx,R.layout.simple\u list\u项,readyToDownload);

复制自:使用自定义适配器。你会有更好的控制力。