일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Android
- Animated
- React Native
- IOS
- Reanimated
- PanResponder
- React
- react-naive-gesture-handler
- React-native
- Today
- Total
목록Android (2)
개발자포럼

앱 실행 화면을 구성하는 요소를 통칭하여 뷰라고 함 텍스트, 버튼 등 모두 뷰에 속함 다른말로 위젯(Widget)이라고 하며 뷰 클래스 하위의 모든 클래스를 지칭하기도 함 다른 위젯을 담을 수 있는 위젯을 특별히 레이아웃이라고 한다. 레이아웃은 위젯들을 포함하는 컨테이너 역할을 함. View 클래스 속성 ID id를 지정하고 지정한 id에 대한 객체를 가져와서 사용 Button button = (Button) findViewById(R.id.btnClick); layouy_width, layout_height 위젯의 폭과 높이를 나타냄 -match_parent ≒ fill_parent 자신의 부모에 폭이나 높이를 맞춘다는 의미 -wrap_content 자신의 폭이나 높이를 자신 글자가 꼭 들어갈 정도만 ..

새로운 화면을 만들고 새로 만든 화면을 띄우는 방법 새로운 액티비티 만들기 새로운 액티비티 시작 코드 넣기 protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button button = (Button) findViewById(R.id.btnClick); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(getApplicationContext(), NewActiv..