반응형 android studio4 Android Studio notes1(02/13/20 cudo notes) appname/main/java - holds java files appname/main/res/layout - screen layout xmls appname/main/res/values - style xmls Create another screen - New -> Activity -> empty activity Add xmlns:tools="http://schemas.android.com/tools" tools:context=".CheatActivity"> How to start another activity startActivity(intent); Intent는 컴포넌트가 운영체제와 통신하기 위해 사용할 수 있는 객체다. Intent i = new Intent(QuizActivity.this, Ch.. 2020. 2. 13. 안드로이드 스튜디오 계산기 mainactivity.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 12.. 2020. 2. 4. 계산기 activity_main.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 12.. 2020. 2. 4. android studio(2/03/20~2/04/20 cudo notes 3) 실무에 바로 적용하는 안드로이드 프로그래밍 (제 2판) match_parent = 자신의 부모만큼의 크기가 된다. wrap_content = 자신이 갖는 콘텐츠에 필요한 크기가 된다. 문자열 값을 위젯에 직접 지정할 수도 있으나 다른 파일에 관리하는게 좋다. 모든 프로젝트에는 strings.xml이라는 디폴트 문자열 파일이 포함된다. (strings는 res/values/strings.xml) android:id="@+id/true_button" 이렇게 선언해주면 소스로 사용할 수 있다. 안드로이드 애플리케이션을 실행하려면 실제 장치나 또는 안드로이드 가상 장치(Android Virtual Device AVD)가 필요하다. Tools -> AVD Manager 안드로이드 애플리케이션도 모델 뷰 컨트롤러 .. 2020. 2. 3. 이전 1 다음 반응형