资源简介

这是个很简单的源代码,非常适合初学者学习使用

通过这个源代码,您可以学到一下东西

1. 使用单例类加载图片,减小内存消耗

2. 使用缩略图加载图片,减小内存消耗

3. 使用异步加载,防止UI阻塞

4. 双击返回按钮退出当前界面

5. 自定义组件的绘制

6. 橡皮擦功能的使用

7. Matrix、屏幕的宽、高、像素换算比例的获得和使用

当然,学习完本程序,您的最大收获就是锻炼了大脑思维能力,因为我不太喜欢写注释哦!

资源截图

代码片段和文件信息

/* AUTO-GENERATED FILE.  DO NOT MODIFY.
 *
 * This class was automatically generated by the
 * aapt tool from the resource data it found.  It
 * should not be modified by hand.
 */

package zzuli.edu.cn.lish13;

public final class R {
    public static final class attr {
    }
    public static final class drawable {
        public static final int a0=0x7f020000;
        public static final int a1=0x7f020001;
        public static final int a2=0x7f020002;
        public static final int a3=0x7f020003;
        public static final int a4=0x7f020004;
        public static final int a5=0x7f020005;
        public static final int a6=0x7f020006;
        public static final int a7=0x7f020007;
        public static final int a8=0x7f020008;
        public static final int a9=0x7f020009;
        public static final int a910=0x7f02000a;
        public static final int a911=0x7f02000b;
        public static final int a912=0x7f02000c;
        public static final int a913=0x7f02000d;
        public static final int a914=0x7f02000e;
        public static final int b0=0x7f02000f;
        public static final int b1=0x7f020010;
        public static final int b2=0x7f020011;
        public static final int b3=0x7f020012;
        public static final int b4=0x7f020013;
        public static final int b5=0x7f020014;
        public static final int b6=0x7f020015;
        public static final int b7=0x7f020016;
        public static final int b8=0x7f020017;
        public static final int b9=0x7f020018;
        public static final int b910=0x7f020019;
        public static final int b911=0x7f02001a;
        public static final int b912=0x7f02001b;
        public static final int b913=0x7f02001c;
        public static final int b914=0x7f02001d;
        public static final int bg=0x7f02001e;
        public static final int blue=0x7f020020;
        public static final int icon=0x7f02001f;
    }
    public static final class id {
        public static final int gallary_picture_menu_925=0x7f050002;
        public static final int gallary_text_926=0x7f050000;
        public static final int gallary_text_927=0x7f050001;
    }
    public static final class layout {
        public static final int main=0x7f030000;
    }
    public static final class string {
        public static final int app_name=0x7f040001;
        public static final int hello=0x7f040000;
        public static final int message=0x7f040002;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        280  2012-09-20 21:23  ShowGirl\.classpath

     文件        844  2012-09-20 21:23  ShowGirl\.project

     文件       1164  2012-09-23 01:19  ShowGirl\AndroidManifest.xml

     文件      15944  2012-09-24 21:52  ShowGirl\bin\classes.dex

     文件    2308276  2012-09-24 21:51  ShowGirl\bin\resources.ap_

     文件    2319510  2012-09-24 21:52  ShowGirl\bin\ShowGirl.apk

     文件       2954  2012-09-24 21:50  ShowGirl\bin\zzuli\edu\cn\lish13\ImageResource.class

     文件       1626  2012-09-24 21:52  ShowGirl\bin\zzuli\edu\cn\lish13\MenuActivity$1.class

     文件       1523  2012-09-24 21:52  ShowGirl\bin\zzuli\edu\cn\lish13\MenuActivity$2.class

     文件       1861  2012-09-24 21:52  ShowGirl\bin\zzuli\edu\cn\lish13\MenuActivity$3$1.class

     文件       2770  2012-09-24 21:52  ShowGirl\bin\zzuli\edu\cn\lish13\MenuActivity$3.class

     文件       3025  2012-09-24 21:52  ShowGirl\bin\zzuli\edu\cn\lish13\MenuActivity.class

     文件        343  2012-09-24 21:51  ShowGirl\bin\zzuli\edu\cn\lish13\R$attr.class

     文件       1257  2012-09-24 21:51  ShowGirl\bin\zzuli\edu\cn\lish13\R$drawable.class

     文件        485  2012-09-24 21:51  ShowGirl\bin\zzuli\edu\cn\lish13\R$id.class

     文件        397  2012-09-24 21:51  ShowGirl\bin\zzuli\edu\cn\lish13\R$layout.class

     文件        461  2012-09-24 21:51  ShowGirl\bin\zzuli\edu\cn\lish13\R$string.class

     文件        538  2012-09-24 21:51  ShowGirl\bin\zzuli\edu\cn\lish13\R.class

     文件       2156  2012-09-24 21:50  ShowGirl\bin\zzuli\edu\cn\lish13\ShowActivity.class

     文件       5156  2012-09-24 21:50  ShowGirl\bin\zzuli\edu\cn\lish13\ShowGirlView.class

     文件       1446  2012-09-24 21:50  ShowGirl\bin\zzuli\edu\cn\lish13\ToastTool.class

     文件        362  2012-09-20 22:05  ShowGirl\default.properties

     文件       2489  2012-09-24 21:51  ShowGirl\gen\zzuli\edu\cn\lish13\R.java

     文件       1159  2012-09-20 21:23  ShowGirl\proguard.cfg

     文件     134854  2012-09-22 22:34  ShowGirl\res\drawable\a0.jpg

     文件      89513  2012-09-22 22:34  ShowGirl\res\drawable\a1.jpg

     文件      51224  2012-09-22 22:34  ShowGirl\res\drawable\a2.JPG

     文件      29339  2012-09-22 22:34  ShowGirl\res\drawable\a3.JPG

     文件     109205  2012-09-22 22:34  ShowGirl\res\drawable\a4.jpg

     文件      67876  2012-09-22 22:34  ShowGirl\res\drawable\a5.JPG

............此处省略57个文件信息

评论

共有 条评论