목록소프트웨어/AndroidStudio(Java) (2)
julia coding story
□ View ▶XML ○ android: background = "#00f00" - 그 객체의 배경색을 지정해줌 ○ android: orientation = "vertical" or "horizontal" - vertical 은 수직, horizontal 은 수평으로 나열하게 함 ○ android: padding = "30dp" - 원래 크기에서 안쪽으로 30dp만큼 줄어듦 ○ android: layout_margin = "20dp" - 한 개체의 모든 면에서 20dp만큼 밀어냄 ○ android: layout_marginTop = "20dp" - 한 개체의 위 면에서 20dp만큼 밀어냄 ○ android: visibility = "invisible" or "visible" or "gone" - 안보이게..

□ 2장 ▶XML ○ android: layout_width = "match_parent" : 상위의 것에 너비를 맞춤 ○ android: layout_height = "wrap_content" : 글자 크기에 따라 달라짐 ○ android: text = " ~~~" 도 가능하고 android: text = "@strings/strqq" 로 쓰고 strings.xml파일에 가서 ~~~~ 쓰면 됨 ▶JAVA ○ import 해주는것은 당연함 ○ setContentView(R.layout.activity_main) - activity_main.xml에 있는 것을 java로 가지고 옴 ○ setContentView 를 먼저 하고 button1 = findViewbyId(R.id.button1) 을 하는게 맞음..