1. android源代码中,类文件大小排行top100.(单位字节)
49058 ./android/view/View.class 37133 ./android/R$attr.class 32863 ./android/content/Intent.class 26546 ./android/R$style.class 26538 ./android/widget/TextView.class 22184 ./android/app/Activity.class 20239 ./android/view/ViewGroup.class 18123 ./android/opengl/GLES20.class 17335 ./android/view/KeyEvent.class 17149 ./android/webkit/WebView.class 16720 ./android/widget/AbsListView.class 13040 ./android/view/MotionEvent.class 13008 ./android/opengl/GLES10.class 12950 ./java/util/Collections.class 12859 ./android/hardware/Camera$Parameters.class 12775 ./android/os/Bundle.class 12431 ./javax/microedition/khronos/opengles/GL10.class 12195 ./android/content/ContextWrapper.class 12026 ./android/app/Dialog.class 11991 ./org/apache/http/impl/client/AbstractHttpClient.class 11932 ./android/test/mock/MockContext.class 11875 ./android/test/mock/MockPackageManager.class 11819 ./android/graphics/Canvas.class 11774 ./java/util/Arrays.class 11665 ./android/accounts/AccountManager.class 11520 ./android/os/Parcel.class 10901 ./dalvik/bytecode/Opcodes.class 10797 ./android/webkit/WebSettings.class 10758 ./java/sql/DatabaseMetaData.class 10704 ./android/preference/Preference.class 10581 ./android/inputmethodservice/InputMethodService.class 10400 ./android/content/pm/PackageManager.class 10325 ./android/database/sqlite/SQLiteDatabase.class 10305 ./java/lang/Character.class 10065 ./android/provider/Settings$System.class 9940 ./android/Manifest$permission.class 9558 ./android/graphics/Paint.class 9351 ./java/lang/String.class 9260 ./android/app/Instrumentation.class 9249 ./java/util/concurrent/ConcurrentSkipListMap.class 9195 ./android/opengl/GLES11Ext.class 9161 ./android/content/Context.class 9154 ./android/app/Fragment.class 9042 ./java/math/BigDecimal.class 9040 ./android/content/ContentResolver.class 8939 ./java/sql/ResultSet.class 8486 ./android/media/AudioManager.class 8294 ./android/database/DatabaseUtils.class 8212 ./java/lang/Class.class 8188 ./android/renderscript/Allocation.class 7911 ./android/widget/AdapterView.class 7844 ./android/widget/AutoCompleteTextView.class 7683 ./android/content/IntentFilter.class 7637 ./android/R$drawable.class 7630 ./android/view/Window.class 7436 ./android/widget/RemoteViews.class 7372 ./android/opengl/GLES11.class 7356 ./android/preference/PreferenceActivity.class 7269 ./java/lang/StringBuilder.class 7161 ./android/widget/ListView.class 7149 ./java/lang/StringBuffer.class 7117 ./android/provider/Settings$Secure.class 7106 ./android/text/TextUtils.class 7093 ./android/app/AlertDialog$Builder.class 7077 ./java/util/concurrent/LinkedBlockingDeque.class 7074 ./javax/microedition/khronos/opengles/GL11.class 7063 ./android/content/res/Resources.class 6956 ./java/util/logging/Logger.class 6902 ./android/location/LocationManager.class 6865 ./java/security/cert/X509CertSelector.class 6800 ./android/graphics/drawable/Drawable.class 6791 ./java/util/Vector.class 6785 ./android/gesture/GestureOverlayView.class 6780 ./android/widget/ScrollView.class 6779 ./java/util/Scanner.class 6751 ./android/view/WindowManager$LayoutParams.class 6739 ./android/widget/ExpandableListView.class 6725 ./android/widget/HorizontalScrollView.class 6707 ./java/util/Calendar.class 6610 ./java/util/concurrent/ThreadPoolExecutor.class 6566 ./android/widget/ListPopupWindow.class 6549 ./java/util/TreeMap.class 6475 ./android/widget/PopupWindow.class 6433 ./android/view/animation/Animation.class 6433 ./android/view/accessibility/AccessibilityNodeInfo.class 6385 ./android/view/inputmethod/InputMethodManager.class 6291 ./android/app/admin/DevicePolicyManager.class 6202 ./android/text/SpannableStringBuilder.class 6187 ./android/graphics/Matrix.class 6163 ./java/lang/Character$UnicodeBlock.class 6154 ./java/net/Socket.class 6147 ./android/graphics/Bitmap.class 6051 ./android/renderscript/Element.class 6047 ./java/util/concurrent/ConcurrentSkipListSet.class 6017 ./java/io/File.class 6005 ./javax/crypto/Cipher.class 6005 ./java/sql/CallableStatement.class 5994 ./android/media/MediaPlayer.class 5954 ./android/test/MoreAsserts.class 5948 ./java/util/LinkedList.class
你看TextView亮了吧!
2.android源代码文件top100(这里只统计android包下的文件了)
560K ./view/View.java 436K ./widget/TextView.java 396K ./webkit/WebView.java 328K ./provider/ContactsContract.java 256K ./content/Intent.java 224K ./widget/AbsListView.java 220K ./view/ViewGroup.java 208K ./view/ViewRootImpl.java 196K ./app/Activity.java 184K ./app/ActivityThread.java 172K ./provider/Settings.java 172K ./media/AudioService.java 156K ./net/wifi/WifiStateMachine.java 152K ./media/videoeditor/MediaArtistNativeHelper.java 152K ./hardware/Camera.java 152K ./content/pm/PackageParser.java 144K ./widget/ListView.java 144K ./app/ActivityManagerNative.java 140K ./view/MotionEvent.java 128K ./view/KeyEvent.java 128K ./content/pm/PackageManagerTests.java 124K ./webkit/WebViewCore.java 120K ./server/BluetoothService.java 120K ./opengl/GLLogWrapper.java 120K ./database/sqlite/SQLiteDatabase.java 120K ./content/SyncManager.java 120K ./content/pm/PackageManager.java 108K ./provider/CalendarContract.java 104K ./inputmethodservice/InputMethodService.java 104K ./content/Context.java 104K ./accounts/AccountManagerService.java 100K ./widget/GridLayout.java 100K ./telephony/PhoneNumberUtils.java 100K ./provider/Contacts.java 100K ./os/BatteryStats.java 100K ./content/res/Resources.java 100K ./accounts/AccountManager.java 92K ./provider/MediaStore.java 92K ./content/SyncStorageEngine.java 88K ./support/v4/view/ViewPager.java 88K ./support/v4/app/FragmentManager.java 88K ./os/StrictMode.java 88K ./media/videoeditor/VideoEditorImpl.java 88K ./media/MediaPlayer.java 88K ./media/AudioManager.java 88K ./graphics/Paint.java 84K ./widget/GridView.java 84K ./net/Uri.java 84K ./icu/text/ArabicShaping.java 84K ./hardware/SensorManager.java 84K ./graphics/Canvas.java 84K ./app/FragmentManager.java 80K ./widget/NumberPicker.java 80K ./widget/LinearLayout.java 80K ./view/ViewDebug.java 80K ./text/format/DateUtils.java 80K ./os/Parcel.java 80K ./opengl/GLSurfaceView.java 76K ./webkit/CallbackProxy.java 76K ./view/WindowManager.java 76K ./opengl/GLES20.java 76K ./media/MediaScanner.java 76K ./content/ContentResolver.java 72K ./widget/SearchView.java 72K ./widget/RemoteViews.java 72K ./webkit/WebSettings.java 72K ./webkit/LoadListener.java 72K ./webkit/AccessibilityInjectorTest.java 72K ./view/inputmethod/InputMethodManager.java 72K ./text/Layout.java 72K ./provider/Telephony.java 72K ./preference/Preference.java 72K ./net/wifi/p2p/WifiP2pService.java 72K ./location/LocationManager.java 72K ./inputmethodservice/KeyboardView.java 72K ./app/Instrumentation.java 68K ./widget/ScrollView.java 68K ./widget/RelativeLayout.java 68K ./widget/PopupWindow.java 68K ./net/wifi/WifiManager.java 68K ./net/wifi/WifiConfigStore.java 68K ./bluetooth/BluetoothTestUtils.java 68K ./bluetooth/BluetoothDeviceProfileState.java 68K ./app/Fragment.java 68K ./app/ContextImpl.java 68K ./app/admin/DevicePolicyManager.java 64K ./widget/StackView.java 64K ./widget/HorizontalScrollView.java 64K ./webkit/BrowserFrame.java 64K ./text/TextUtils.java 64K ./speech/tts/TextToSpeech.java 64K ./preference/PreferenceActivity.java 64K ./os/storage/IMountService.java 64K ./graphics/Canvas_Delegate.java 64K ./content/IntentFilter.java 64K ./bluetooth/BluetoothAdapter.java 64K ./app/DownloadManager.java 64K ./app/ActivityManager.java 60K ./widget/CalendarView.java 60K ./webkit/ZoomManager.java
我只是没有想到TextView这个Java类文件居然这么大。