# 2019/0313/安卓工作室\_基礎/布局內元件

liner 線性排列元件

### java 顯示頁面

```
setContentView(R.layout.activity_main);
```

###

### 創建頁面

![](/files/-L_lFckKf5iy8SUN2Wve)

### 垂直排列屬性

```
android:orientation="vertical"
```

###

### Gui tool 拖拉

![](/files/-L_lFckSectt1ctZZi66)

### &#x20;<a href="#image-view-yuan-jian-xiang-xing" id="image-view-yuan-jian-xiang-xing"></a>

### &#x20;<a href="#image-view-yuan-jian-xiang-xing" id="image-view-yuan-jian-xiang-xing"></a>

### image view元件 相關屬性 <a href="#image-view-yuan-jian-xiang-xing" id="image-view-yuan-jian-xiang-xing"></a>

![](/files/-L_lFckLOswOYvMFwVz5)

![](/files/-L_lFckM8lGw7EAC4H9K)

![](/files/-L_lFckOrUEGK8y-Geb5)

###

###

### botton元件 相關屬性

![](/files/-L_lG3iiWeKqysbH772P)

![](/files/-L_lG3ijarB4yBqkcCDH)

![](/files/-L_lG3imPHsbaj9kJhFr)

![](/files/-L_lG3inwBxfQR7JAKoO)

![](/files/-L_lG3ip2myzdlzBQ1gm)

少一頁 padding 講解頁面

#### enter上方鎮字       |        c 或 java中為或的意思

### edittext元件 相關屬性

![](/files/-L_lGpEW4h7BlUGHDuvK)

少 edittext講解頁面

plain text => EditText

![](/files/-L_lGpEaaHE6yV8T1_NT)

![](/files/-L_lGpE_-p08VTewBd0m)

###

### checkbok元件屬性

![](/files/-L_lGpEbAIV5Il-bB62m)

###

### 程式碼排版工具

![](/files/-L_lG3ixs_EI-PYK2aRi)

###

###

### 預顯尺寸

![](/files/-L_lFvnqFyB1ImJUWBOr)

#### 相子與內容物不一樣大時可設置底設做確認

###

###

###

### 樣式設定檔

漸變 pressed

在新增一個樣式是按下去後的&#x20;

![](/files/-L_lG3iktySkTHQyPyWW)

![](/files/-L_lG3imPHsbaj9kJhFr)

###

###

### 套用樣是設定檔

![](/files/-L_lG3ioFRT7cRBiTamS)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://johch3n611u.gitbook.io/c50108/ju-li-cheng-bei/201903/2019-0313.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
