Zum Inhalt springen

Android Training/Creating an Android Project/de: Unterschied zwischen den Versionen

Die Seite wurde neu angelegt: „Die [http://developer.android.com/guide/topics/manifest/manifest-intro.html Manifest Datei] beschreibt die fundamentalen Charakteristiken der App und definiert…“
Keine Bearbeitungszusammenfassung
(Die Seite wurde neu angelegt: „Die [http://developer.android.com/guide/topics/manifest/manifest-intro.html Manifest Datei] beschreibt die fundamentalen Charakteristiken der App und definiert…“)
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 24: Zeile 24:
Dein Android Projekt ist jetzt eine Basis-"Hello World"-App, welche einige Standard-Dateien enthält. Nimm dir einen Moment und sieh dir die wichtigsten genauer an:
Dein Android Projekt ist jetzt eine Basis-"Hello World"-App, welche einige Standard-Dateien enthält. Nimm dir einen Moment und sieh dir die wichtigsten genauer an:
<code>app/src/main/res/layout/activity_my.xml</code>
<code>app/src/main/res/layout/activity_my.xml</code>
* This is the XML layout file for the activity you added when you created the project with Android Studio. Following the New Project workflow, Android Studio presents this file with both a text view and a preview of the screen UI. The file includes some default settings and a <code>TextView</code> element that displays the message, "Hello world!"
* Das ist die XML-Layout-Datei der Activity, die während der Erstellung des Projektes mit Androis Studio erstellt wurde. Dem neuen Projekt-Ablauf folgend, präsentiert Android Studio diese Datei sowohl mit einer Textbasierten Ansicht, wie einer Vorschau der Bildschirm-Oberfläche. Die Datei beinhaltet einige Standard-Einstellungen und ein <code>TextView</code> Element, welches die Nachricht "Hello worls!" anzeigt.
<code>app/src/main/java/com.mycompany.myfirstapp/MyActivity.java</code>
<code>app/src/main/java/com.mycompany.myfirstapp/MyActivity.java</code>
* A tab for this file appears in Android Studio when the New Project workflow finishes. When you select the file you see the class definition for the activity you created. When you build and run the app, the <code>Activity</code> class starts the activity and loads the layout file that says "Hello World!"
* Ein Tab für diese Datei erscheint dann in Android Studio, wenn der neue Projekt-Ablauf abgeschlossen wird. Wenn du die Datei auswählst, siehst du die Klassen-Definition für die Activity, welche du erstellt hast. Wenn du die App kompilierst und startest, wird die <code>Activity</code> Klasse die Aktivität starten und das Layout laden, welches "Hello World!" sagt.
<code>app/src/main/AndroidManifest.xml</code>
<code>app/src/main/AndroidManifest.xml</code>
* The [http://developer.android.com/guide/topics/manifest/manifest-intro.html manifest file] describes the fundamental characteristics of the app and defines each of its components. You'll revisit this file as you follow these lessons and add more components to your app.
* Die [http://developer.android.com/guide/topics/manifest/manifest-intro.html Manifest Datei] beschreibt die fundamentalen Charakteristiken der App und definiert jede ihrer Komponenten. Du wirst diese Datei erneut ansehen, wenn du den Übungen folgst und weitere Komponenten zu deiner App hinzufügst.
<code>app/build.gradle</code>
<code>app/build.gradle</code>
* Android Studio uses Gradle to compile and build your app. There is a <code>build.gradle</code> file for each module of your project, as well as a <code>build.gradle</code> file for the entire project. Usually, you're only interested in the<code>build.gradle</code> file for the module, in this case the <code>app</code> or application module. This is where your app's build dependencies are set, including the <code>defaultConfig</code> settings:
* Android Studio uses Gradle to compile and build your app. There is a <code>build.gradle</code> file for each module of your project, as well as a <code>build.gradle</code> file for the entire project. Usually, you're only interested in the<code>build.gradle</code> file for the module, in this case the <code>app</code> or application module. This is where your app's build dependencies are set, including the <code>defaultConfig</code> settings:
11.008

Bearbeitungen

Cookies helfen uns bei der Bereitstellung von Android Wiki. Durch die Nutzung von Android Wiki erklärst du dich damit einverstanden, dass wir Cookies speichern.