博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
where can I find source of com.android.internal.R.styleable.AlertDialog_multiChoiceItemLayout?
阅读量:4960 次
发布时间:2019-06-12

本文共 1777 字,大约阅读时间需要 5 分钟。

I want to modify Alert dialog multi select layout. For my program I want two line multi-select item. I have searched in source code and found following code snippet. Now I am unable to find where is the source code of following layouts. Please help me.

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();} The file is called "select_dialog_multichoice" and located inside the layout folder. The absolute path on my machine looks like this: C:\Users\d053380\AppData\Local\Android\android-sdk\platforms\android-14\data\res\layout

转载于:https://www.cnblogs.com/Free-Thinker/p/4186505.html

你可能感兴趣的文章
python django 上传文件到七牛
查看>>
sql_calc_found_rows原理
查看>>
链表的反转
查看>>
我要赚钱!
查看>>
Java内存区域
查看>>
叔本华论说文集摘录(一)
查看>>
Ext JS 4 主从表
查看>>
C++ 基类和派生类
查看>>
PHP排序算法
查看>>
HTTP 状态消息
查看>>
[Xcode 实际操作]五、使用表格-(1)使用UITableView制作简单表格
查看>>
Mysql net start mysql启动,提示发生系统错误 5 拒绝访问,原因所在以及解决办法
查看>>
设计模式--门面模式C++实现
查看>>
Android SurfaceFlinger服务(五) ----- VSync信号的产生
查看>>
[Algorithm -- Dynamic programming] How Many Ways to Decode This Message?
查看>>
[SVG] Combine Multiple SVGs into an SVG Sprite
查看>>
[AngularJS + Webpack] Requiring CSS & Preprocessors
查看>>
[Angular 2] ng-control & ng-control-group
查看>>
WEB前端页面常用CSS简写优化技巧
查看>>
约瑟夫环问题
查看>>