0 0

public static final int icon=0x7f020000;10

public static final class drawable {
        public static final int icon=0x7f020000;

在HelloWorld中R.java中的这句是什么意思,什么作用啊,最后那个数字代表的什么!?
谢谢了!
2009年8月06日 21:26

3个答案 按时间排序 按投票排序

0 0

采纳的答案

/res 下的所有的 xml、图片、音频、视频等等都会被注册到一个 R.java 的文件里,用法例如 R.string.str 指的是存在一个 <string> 标签,它的名称叫 str; R.string.str 的值是 <string> 标签的值的内存地址。

2009年8月12日 04:35
0 0

这不过就是定义一个常量整数

2009年8月20日 13:05
0 0

R.java是Android开发环境自动给你生成的文件,目的是能直接拿到资源文件里面的资源,比如你这个icon在drawable里面,就说明你有一个图片叫icon

2009年8月07日 01:32

相关推荐

    ANDROID 水泡泡

    public static final int icon=0x7f020000; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f...

    android开发程序

    public static final int blue=0x7f040001; public static final int btb=0x7f040009; public static final int green=0x7f040006; public static final int hese=0x7f040008; public static final int light...

    ANDROID 黑白棋

    public static final int black=0x7f020000; public static final int empty=0x7f020001; public static final int icon=0x7f020002; public static final int white=0x7f020003; } public static final class...

    88个Android应用程序.zip

    public static final int ic_launcher=0x7f020000; } public static final class id { public static final int editText=0x7f050002; public static final int getBtn=0x7f050000; public static final int ...

    俄罗斯方块源代码+素材+音乐

    public static final int ROTATE = 0; public static final int LEFT = 1; public static final int RIGHT = 2; public static final int DOWN = 3; public BaseShape() { super(); // TODO Auto-generated ...

    人民币大写转换

    public static final String EMPTY = ""; public static final String ZERO = "零"; public static final String ONE = "壹"; public static final String TWO = "贰"; public static final String THREE = "叁...

    识别文件编码格式

    public static int UTF8T = 7; public static int UTF8S = 8; public static int UNICODE = 9; public static int UNICODET = 10; public static int UNICODES = 11; public static int ISO2022CN = 12; ...

    用java制作日历的方法

    public static final String WEEK_SUN = "SUN"; public static final String WEEK_MON = "MON"; public static final String WEEK_TUE = "TUE"; public static final String WEEK_WED = "WED"; public ...

    java 日期工具类 java 日期工具类

    public static final String PATTERN_YYYY_MM_DD = "yyyy-MM-dd";public static final String YYYY_MM_DD = "yyyyMMdd";public static final String PATTERN_YYYY_MM_DD2 = "yyyy/MM/dd";/** 完整时间 yyyy-MM-dd HH...

    Test.java关于静态的分析

    public static final String SUCCESS="success"; public static final String FAIL="fail"; static double [] d =new double[10];//??? static{ //可以初始化静态常量 d[0]=1; d[0]=2; d[0...

    Android代码-AndroidPermission6.0

    AndroidPermission6.0 AndroidPermission6.0动态权限 How to use? build.gradle ...compile 'io.reactivex:rxandroid:1.2.1' ...PermissionUtils.class ... public static final String READ = Manifest.per

    C# USB读取需要的底层参数

    public const int WM_DEVICECHANGE = 0x219; //就是用来表示U盘可用的。一个设备或媒体已被插入一块,现在可用。 public const int DBT_DEVICEARRIVAL = 0x8000; //要求更改当前的配置(或取消停靠码头)已被...

    五子棋人机

    public static final int Row = 15; public static final int Column = 15; /* * 设置棋盘初始位置坐标 */ public static final int X = 30; public static final int Y = 60; /* * 设置棋子大小 ...

    贝塞尔曲线

    private static final int MAX_COUNT = 7; // 贝塞尔曲线最大阶数 private static final int REGION_WIDTH = 30; // 合法区域宽度 private static final int FINGER_RECT_SIZE = 60; // 矩形尺寸 private static...

    java贪吃蛇代码

    public static final int GAMEOVER = 3; public static final int LEFT = 1; public static final int UP = 2; public static final int RIGHT = 3; public static final int DOWN = 4; public Snake() { //...

    家庭理财系统(java+applet).zip

    private static final long serialVersionUID = 1L; public static JButton bt3 = new JButton("修改"); public static JButton bt4 = new JButton("取消"); public static JLabel lb2 = new JLabel("收入 元"); ...

    android开发使用eclipse小bug

    public static final int buttonContent = 0x7f070001; public static final int buttonPhone = 0x7f070002; public static final int buttonWeb = 0x7f070000; // XML布局中的按钮定义 android:id="@+id/...

    用c#写的录音程序源码

    public const uint MCI_RECORD = 0x080F; public const uint MCI_RESUME = 0x0855; public const uint MCI_SAVE = 0x0813; public const uint MCI_LOAD = 0x0850; public const uint MCI_STATUS = 0x0814; ...

    static、this、super、final的JAVA用法

    Java 中 static、this、super、... public static final int GREEN = 2; public static final int BLUE = 3; } static、this、super、final 是 Java 中四个非常重要的关键字,了解它们的用法是 Java 编程的基础。

Global site tag (gtag.js) - Google Analytics