일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- #자바상속#자바이즈어#is~a
- #CallByAddress
- #1차원배열
- hyperledger transaction
- #binary
- git flow
- html charset
- 하이퍼레저패브릭
- html youtube
- #3차원배열
- relative path
- #다차원포인터
- #bubbleSort
- html video
- #C++ has~a
- border-box
- html id
- html plug-in
- #2차원배열
- docker example
- html multimedia
- html object
- #성적관리프로그램
- html5 new tag
- #C++ 연산자함수오버로딩
- #JAVASCRIPT
- #android activity
- mac terminal command
- 토큰경제
- html code
- Today
- Total
A sentimental robot
GridLayout 본문
<?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"
tools:context="com.example.i310_54.myapplication08.MainActivity"
>
<GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:columnCount="3"
android:rowCount="2"
>
<Button android:text="1" />
<Button android:text="1" />
<Button android:text="1" />
<Button android:text="1" />
<Button android:text="1" />
<Button android:text="1" />
</GridLayout>
</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"
tools:context="com.example.i310_54.myapplication08.MainActivity"
>
<GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:columnCount="3"
android:rowCount="2"
>
<Button android:text="1" android:layout_row="0" android:layout_column="0"/>
<Button android:text="1" android:layout_row="0" android:layout_column="1"/>
<Button android:text="1" android:layout_row="0" android:layout_column="2"/>
<Button android:text="1" android:layout_row="1" android:layout_column="0"/>
<Button android:text="1" android:layout_row="1" android:layout_column="1"/>
<Button android:text="1" android:layout_row="1" android:layout_column="2"/>
</GridLayout>
</LinearLayout>
* android:layout_row 와 column은 필수 속성은 아니지만 그 부분(ex.0,1)만 지우고 싶을때 주석 잡고 쓰임
'Android Studio' 카테고리의 다른 글
Handler (0) | 2018.02.05 |
---|---|
GridLayout2 (0) | 2018.02.05 |
배경색 자동으로 바꾸기 (0) | 2018.02.01 |
TableLayout (0) | 2018.02.01 |
Transmission (0) | 2018.01.31 |