0

我正在尝试从此链接https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/DatePickerDialog.java编辑 Dialog DatePicker 的源代码 但在第 108 行我必须充气从资源布局。我的问题是如何创建这个布局。有什么建议么?

4

1 回答 1

0

Line 29 you can see

import com.android.internal.R;

The sample code you are using uses a reference to android internal resources which is, in my humble opinion, a bad idea because it can well change between versions.

于 2013-04-29T06:25:31.150 回答