-
[activity_main.xml개발/Android 2019. 11. 5. 12:01반응형
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">// 텍스트 출력
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="첫 어플"
/>// 버튼출력
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World"
/>// 이미지출력
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon"
android:text="hello world"
/>// 인풋창 출력
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="Input here"
/>
</LinearLayout>반응형'개발 > Android' 카테고리의 다른 글
[덧셈계산기] (0) 2019.11.05 [activity_main.xml] 6개버튼 가로로 두줄 (0) 2019.11.05