{"id":1343,"date":"2016-02-13T08:57:34","date_gmt":"2016-02-13T08:57:34","guid":{"rendered":"http:\/\/coolt.ch\/notizen\/?p=1343"},"modified":"2016-02-13T11:17:49","modified_gmt":"2016-02-13T11:17:49","slug":"android-app-zusammenfassung-layout","status":"publish","type":"post","link":"https:\/\/coolt.ch\/notizen\/android-app-zusammenfassung-layout\/","title":{"rendered":"Android App: Zusammenfassung Layout"},"content":{"rendered":"<p><strong>Prinzip von ViewGroups und Views<\/strong><\/p>\n<p>Auch das Layout ist hierarchisch bzw. \u00fcber Vererbung aufgebaut. <strong>ViewGroups<\/strong> definieren die <strong><span style=\"color: #800080;\">Grundansicht<\/span><\/strong> des Layouts wie z. B. ein <span class=\"lang:sh decode:true crayon-inline\">&lt;LinearLayout&gt;<\/span>\u00a0 oder ein <span class=\"lang:sh decode:true crayon-inline \">&lt;RelativeLayout&gt;<\/span>\u00a0. <strong>Views <\/strong>werden als User Interface Components bezeichnet. Es handelt sich um die konkreten <span style=\"color: #800080;\"><strong>Teile auf dem Layout<\/strong><\/span> wie z.B. ein Text\u00a0\u00a0 <span class=\"lang:sh decode:true crayon-inline\">&lt;TextView&gt;<\/span> , eine Taste, ein Schalter\u00a0 &lt;Button&gt; oder eine Eingabezeile <span class=\"lang:sh decode:true crayon-inline \">&lt;editText&gt;<\/span>\u00a0.<\/p>\n<p><strong>Auswahl \u00fcber visuelle Hilfe<\/strong><br \/>\nIm Layout-Ordner kann man die Elemente per xml (siehe Tab Text) oder \u00fcber Auswahl\/Platzieren (im Tab Design) direkt auf ein simuliertes Ger\u00e4t laden.<br \/>\n<a href=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/Android_Layout_Visuel.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1368\" src=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/Android_Layout_Visuel.png\" alt=\"Android_Layout_Visuel\" width=\"343\" height=\"242\" srcset=\"https:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/Android_Layout_Visuel.png 343w, https:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/Android_Layout_Visuel-300x212.png 300w\" sizes=\"(max-width: 343px) 100vw, 343px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #800080;\"><strong>Widgets<\/strong><\/span> sind interaktive Eingaben, die eine Handlung ausl\u00f6sen.<\/p>\n<p><a href=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/Android_Layout_Widget.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1370\" src=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/Android_Layout_Widget.png\" alt=\"Android_Layout_Widget\" width=\"242\" height=\"180\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #800080;\">TextFields<\/span><\/strong> sind aussschliesslich f\u00fcr Texteingaben gedacht. Android bietet bereits viele vordefinierte Input-Strukturen an, so dies eine Telefonnummer, ein normaler Text oder sei dies ein Pin.<\/p>\n<p><a href=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/Android_Layout_Textfields.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1371\" src=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/Android_Layout_Textfields.png\" alt=\"Android_Layout_Textfields\" width=\"203\" height=\"157\" \/><\/a><\/p>\n<p>..<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prinzip von ViewGroups und Views Auch das Layout ist hierarchisch bzw. \u00fcber Vererbung aufgebaut. ViewGroups definieren die Grundansicht des Layouts wie z. B. ein &lt;LinearLayout&gt;\u00a0 oder ein &lt;RelativeLayout&gt;\u00a0. Views werden als User Interface Components bezeichnet. Es handelt sich um die konkreten Teile auf dem Layout wie z.B. ein Text\u00a0\u00a0 &lt;TextView&gt; , eine Taste, ein Schalter\u00a0 &hellip; <a href=\"https:\/\/coolt.ch\/notizen\/android-app-zusammenfassung-layout\/\" class=\"more-link\"><span class=\"screen-reader-text\">Android App: Zusammenfassung Layout<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[30],"tags":[],"_links":{"self":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/1343"}],"collection":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/comments?post=1343"}],"version-history":[{"count":8,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/1343\/revisions"}],"predecessor-version":[{"id":1382,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/1343\/revisions\/1382"}],"wp:attachment":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/media?parent=1343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/categories?post=1343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/tags?post=1343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}