{"id":255439,"date":"2016-03-24T22:48:16","date_gmt":"2016-03-24T14:48:16","guid":{"rendered":"http:\/\/blog.zhenglei.net\/?p=255439"},"modified":"2016-03-24T22:48:16","modified_gmt":"2016-03-24T14:48:16","slug":"%e5%9f%ba%e6%9c%ac%e7%95%8c%e9%9d%a2%e6%8e%a7%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=255439","title":{"rendered":"\u57fa\u672c\u754c\u9762\u63a7\u4ef6"},"content":{"rendered":"<h1>\u4e94\u3001\u57fa\u672c\u754c\u9762\u63a7\u4ef6<\/h1>\n<p>\u5927\u591a\u6570\u7684\u754c\u9762\u63a7\u4ef6\u90fd\u5728android.view\u548candroid.widget\u5305\u4e2d\uff0candroid.view.View\u4e3a\u4ed6\u4eec\u7684\u7236\u7c7b\uff0c\u8fd8\u6709Dialog\u7cfb\u5217,android.app.Dialog\u4e3a\u7236\u7c7b\uff0c\u7b49\u7b49\u3002<\/p>\n<p>Android\u7684\u539f\u751f\u63a7\u4ef6\uff0c\u4e00\u822c\u662f\u5728res\/layout\u4e0b\u7684 xml\u6587\u4ef6\u4e2d\u58f0\u660e\u3002\u7136\u540e\u5728Activity\u901a\u8fc7\u4f7f\u7528super.setContentView(R.layout.\u67d0\u5e03\u5c40layout\u6587\u4ef6\u540d)\u6765\u52a0\u8f7d layout\u3002\u5728Activity\u4e2d\u83b7\u53d6\u63a7\u4ef6\u7684\u5f15\u7528\u9700\u8981\u4f7f\u7528super.findViewById(R.id.\u63a7\u4ef6\u7684ID)\uff0c\u63a5\u7740\u5c31\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u5f15\u7528\u5bf9\u63a7 \u4ef6\u8fdb\u884c\u64cd\u4f5c\uff0c\u4f8b\u5982\u6dfb\u52a0\u76d1\u542c\uff0c\u8bbe\u7f6e\u5185\u5bb9\u7b49\u3002\u5f53\u7136\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4ee3\u7801\u52a8\u6001\u7684\u4f7f\u7528\u63a7\u4ef6\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>View\u5b50\u7c7b\u7ed3\u6784\u56fe\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"magplus\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u59cb\u5927\u5c0f\u56fe\u7247\" src=\"http:\/\/dl.iteye.com\/upload\/attachment\/375463\/1066faac-847a-3c55-a7c9-3ace6a13cccc.png\" alt=\"\" width=\"700\" height=\"255\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>TextView\u5b50\u7c7b\u7ed3\u6784\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"magplus\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u59cb\u5927\u5c0f\u56fe\u7247\" src=\"http:\/\/dl.iteye.com\/upload\/attachment\/375465\/d4d0a32b-9a4c-3166-8d6d-4955c3dcbb29.png\" alt=\"\" width=\"700\" height=\"257\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>ViewGroup\u5b50\u7c7b\u7ed3\u6784\u56fe\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"magplus\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u59cb\u5927\u5c0f\u56fe\u7247\" src=\"http:\/\/dl.iteye.com\/upload\/attachment\/375467\/99113cf4-1cdd-321e-9f18-35052427ddbd.png\" alt=\"\" width=\"700\" height=\"348\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>FrameLayout\u5b50\u7c7b\u7ed3\u6784\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"magplus\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u59cb\u5927\u5c0f\u56fe\u7247\" src=\"http:\/\/dl.iteye.com\/upload\/attachment\/375469\/1300eb15-8589-313e-ab09-588f17bc6701.png\" alt=\"\" width=\"699\" height=\"203\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>android.app.Dialog\u5b50\u7c7b\u7ed3\u6784\uff1a<br \/>\n<img decoding=\"async\" src=\"http:\/\/dl.iteye.com\/upload\/attachment\/375471\/a1ced501-f8d5-3317-8d78-624e964e915b.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u7b2c\u4e00\u90e8\u5206\uff0c\u57fa\u672c\u63a7\u4ef6<\/h2>\n<h3>1\uff0e\u6587\u672c\u7c7b\uff1a<\/h3>\n<p><a href=\"http:\/\/limingnihao.iteye.com\/blog\/851386\">http:\/\/limingnihao.iteye.com\/blog\/851386<\/a><\/p>\n<p>TextView\u3001EditText\u3001AutoCompleteTextView\u3001MultAutoCompletTextView \u3001(TextSwitcher) \u3001(DigitalClock)<\/p>\n<p>&nbsp;<\/p>\n<p>ExtractEditText\u3001CheckedTextView\u3001Chronometer<\/p>\n<p>&nbsp;<\/p>\n<h3>2\uff0e\u6309\u94ae\u7c7b\uff1a<\/h3>\n<p><a href=\"http:\/\/limingnihao.iteye.com\/blog\/851396\">http:\/\/limingnihao.iteye.com\/blog\/851396<\/a><\/p>\n<p>Button\u3001CheckBox\u3001RadioButton(RadioGroup) \u3001ToggleButton \u3001(ImageButton )<\/p>\n<p>&nbsp;<\/p>\n<p>CompoundButton<\/p>\n<p>&nbsp;<\/p>\n<p>\u7f29\u653e\u6309\u94ae\uff1a<\/p>\n<p>ZoomButton\u3001ZoomControls<\/p>\n<p>&nbsp;<\/p>\n<h3>3\uff0e\u56fe\u7247\u7c7b\uff1a<\/h3>\n<p><a href=\"http:\/\/limingnihao.iteye.com\/blog\/851408\">http:\/\/limingnihao.iteye.com\/blog\/851408<\/a><\/p>\n<p>ImageView\u3001ZoomButton\u3001ImageButton\u3001(ImageSwitcher )<\/p>\n<p>&nbsp;<\/p>\n<p>QuickContactBadge<\/p>\n<p>&nbsp;<\/p>\n<h3>4\uff0e\u65f6\u95f4\u63a7\u4ef6\uff1a<\/h3>\n<p><a href=\"http:\/\/limingnihao.iteye.com\/blog\/852493\">http:\/\/limingnihao.iteye.com\/blog\/852493<\/a><\/p>\n<p>DigitalClock\u3001AnalogClock\u3001TimePicker\u3001DatePicker<\/p>\n<p>&nbsp;<\/p>\n<h3>5\uff0e\u8fdb\u5ea6\u663e\u793a\uff1a<\/h3>\n<p><a href=\"http:\/\/limingnihao.iteye.com\/blog\/852498\">http:\/\/limingnihao.iteye.com\/blog\/852498<\/a><\/p>\n<p>ProgressBar\u3001AbsSeekBar\u3001SeekBar\u3001RatingBar<\/p>\n<p>&nbsp;<\/p>\n<h3>6\uff0e\u5bfc\u822a\uff1a<\/h3>\n<p>TabHost\u3001TabWidget\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>7\uff0e\u89c6\u9891\u5a92\u4f53\uff1a<\/h3>\n<p>VideView\u3001MediaController<\/p>\n<p>&nbsp;<\/p>\n<h3>8\uff0eDialog\u5bf9\u8bdd\u6846<\/h3>\n<p>CharacherPickerDialog\u3001AlertDialog\u3001DatePickerDialog\u3001ProgressDialog\u3001TimePickerDialog<\/p>\n<p>&nbsp;<\/p>\n<h2>\u7b2c\u4e8c\u90e8\u5206\uff0c\u5e03\u5c40\u7c7b<\/h2>\n<h3>1\uff0e\u5e03\u5c40\u7c7b\uff1a<\/h3>\n<p>AbsoluteLayout\u3001LinearLayout\u3001RadioGroup \u3001TableLayout\u3001 TableRow\u3001RelativeLayout\u3001FrameLayout<\/p>\n<p>&nbsp;<\/p>\n<h3>2\uff0e\u9700\u8981\u9002\u914d\u5668\u7684\u5e03\u5c40\u7c7b\uff1a<\/h3>\n<p>AdapterView\u3001AbsListView\u3001GridView\u3001ListView\u3001AbsSpinner\u3001Gallery Spinner<\/p>\n<p>&nbsp;<\/p>\n<h3>3\uff0e\u6eda\u52a8\u6761\uff1a<\/h3>\n<p>HorizontalScrollView\u3001ScrollView<\/p>\n<p>&nbsp;<\/p>\n<p>\u7b2c\u4e09\u90e8\u5206\uff0c\u5176\u4ed6<\/p>\n<p>\u7f51\u9875\uff1a<\/p>\n<p>WebView<\/p>\n<p>&nbsp;<\/p>\n<p>\u52a8\u753b\uff1a<\/p>\n<p>ViewAimator\u3001ViewFilpper\u3001ViewSwitcher\u3001ImageSwitcher\u3001TextSwitcher<\/p>\n<p>&nbsp;<\/p>\n<p>\u5176\u4ed6\uff1a<\/p>\n<p>KeyboardView<\/p>\n<p>SurfaceView(\u7167\u76f8\u65f6\u4f1a\u4f7f\u7528) GLSurfaceView<\/p>\n<p>ViewStub DialerFilter TwolineListItem SlidingDrawer GestureOverlayView<\/p>\n<p>&nbsp;<\/p>\n<p>\u5176\u4e2d\uff1a<\/p>\n<p>ListView\u4e00\u822c\u4e0eListActivity\u4e00\u4e00\u8d77\u4f7f\u7528\u3002TabActivity\uff1a http:\/\/limingnihao.iteye.com\/<\/p>\n<p>TabHost\u3001TabWidget\u4e00\u822c\u4e0eTabActivity\u4e00\u8d77\u4f7f\u7528\u3002ListActivity\uff1a http:\/\/limingnihao.iteye.com\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e94\u3001\u57fa\u672c\u754c\u9762\u63a7\u4ef6 \u5927\u591a\u6570\u7684\u754c\u9762\u63a7\u4ef6\u90fd\u5728android.view\u548candroid. &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=255439\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[58],"class_list":["post-255439","post","type-post","status-publish","format-standard","hentry","category-software-download","tag-android-2"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255439"}],"version-history":[{"count":1,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255439\/revisions"}],"predecessor-version":[{"id":255440,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255439\/revisions\/255440"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}