앱만들기0(환경설정)

1. 앱개발 환경 설치

- 안드로이드 스튜디오 설치

- 자바 버전 확인

: 안되어있을 경우 오라클 java설치

 

2. activity main_xml 에서

ConstrainLayout -> LinearLayout으로 바꿔주기

<?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="match_parent" //부모의 길이만큼을 따라해라
        android:layout_height="wrap_content" //텍스트 크기만큼 세로길이 감싸라
        android:textColor="#8BC34A" //#ffffff치면 옆에 뜨는 색상 더블클릭해서 색상정함
        android:textSize="20sp" //크기 sp라는단어 사용
        android:text="촬리의 어플만들기"
        />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#11D6F3"
        android:text="꾸준히 하기 어려움" />

3. 안드로이드 폰 연결

https://www.youtube.com/watch?v=CXhVanWdo4k&t=3s 

 

'✍2021,2022 > app(android studio)' 카테고리의 다른 글

앱만들기5.(ListView)  (0) 2021.07.08
앱만들기 4 (패키지구조)  (0) 2021.07.06
앱만들기3 (ImaginView &Toast)  (0) 2021.07.05
앱만들기2.Intent(화면전환)  (0) 2021.07.04
앱만들기1 (EditText & Button)  (1) 2021.07.04