我想使用java.nio.file API为Android创建一个文件管理器应用程序,它是JDK7的一部分.我认为这个(java.noi.file)API包含设计文件管理器应用程序的简单解决方案,其中JDK6(IO)和apache commons IO API没有相同的功能.
请给出一些解决方案,我如何在Android应用程序中使用JDK7(IO).
谢谢!
我想修改Alert对话框多选布局.对于我的程序,我想要两行多选项.我在源代码中搜索并找到以下代码片段.现在我无法找到以下布局的源代码.
public AlertController(Context context, DialogInterface di, Window window) {
mContext = context;
mDialogInterface = di;
mWindow = window;
mHandler = new ButtonHandler(di);
TypedArray a = context.obtainStyledAttributes(null,
com.android.internal.R.styleable.AlertDialog,
com.android.internal.R.attr.alertDialogStyle, 0);
mAlertDialogLayout = a.getResourceId(com.android.internal.R.styleable.AlertDialog_layout,
com.android.internal.R.layout.alert_dialog);
mListLayout = a.getResourceId(
com.android.internal.R.styleable.AlertDialog_listLayout,
com.android.internal.R.layout.select_dialog);
mMultiChoiceItemLayout = a.getResourceId(
com.android.internal.R.styleable.AlertDialog_multiChoiceItemLayout,
com.android.internal.R.layout.select_dialog_multichoice);
mSingleChoiceItemLayout = a.getResourceId(
**com.android.internal.R.styleable.AlertDialog_singleChoiceItemLayout**,
com.android.internal.R.layout.select_dialog_singlechoice);
mListItemLayout = a.getResourceId(
com.android.internal.R.styleable.AlertDialog_listItemLayout,
com.android.internal.R.layout.select_dialog_item);
a.recycle();
}
Run Code Online (Sandbox Code Playgroud)