我在哪里可以找到com.android.internal.R.styleable.AlertDialog_multiChoiceItemLayout的源代码?

6

我希望修改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();
}
3个回答

7
文件名为"select_dialog_multichoice",位于布局文件夹内。在我的机器上的绝对路径如下:

C:\Users\d053380\AppData\Local\Android\android-sdk\platforms\android-14\data\res\layout


SCNR:该目录在我的电脑上不存在。 - rekire
1
它也在官方的 Android 存储库中: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/select_dialog_multichoice.xml - sled


0

我假设您已经拥有AOSP源代码树。 您可以在以下路径中找到它。 frameworks/base/core/res/res


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接