-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1825 from zzhuangj/master
- Loading branch information
Showing
7 changed files
with
109 additions
and
50 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 第四次实验 | ||
|
||
## 1. 实验目标 | ||
### 1.根据选题要求设计界面布局及控件使用; | ||
### 2.布局xml及界面控制操作代码提交并截图; | ||
### 3.将应用运行结果截图。 | ||
|
||
## 2. 实验步骤 | ||
### 1.我选择的是LinearLayout布局方式; | ||
### 2.在线性布局下我创建了基本实现需要的三个按钮; | ||
### 3.并且设置监听器,不过还未对具体实现事件。 | ||
|
||
## 3. 实验结果 | ||
|
||
![结果](https://github.com/zzhuangj/android-labs-2018/blob/master/soft1614080902413/4.png) | ||
|
||
![结果](https://github.com/zzhuangj/android-labs-2018/blob/master/soft1614080902413/5.png) | ||
## 4. 实验体会 | ||
|
||
**这次实验我学会了使用LinearLayout进行布局,大致扥为垂直和水平布局,还可以调整居中或者靠左侧右侧。比较不足的是对按钮空间点击后具体实现的功能还未能够 | ||
掌握好并且实现它。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
|
||
xmlns:tools="http://schemas.android.com/tools" | ||
android:orientation="horizontal" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".OpenActivity"> | ||
|
||
<TextView | ||
android:id="@+id/textview_01" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:drawableTop="@drawable/bg" | ||
/> | ||
</android.support.constraint.ConstraintLayout> | ||
android:gravity="center"> | ||
|
||
|
||
<Button | ||
android:id="@+id/btn1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="NEW"/> | ||
<Button | ||
android:id="@+id/btn2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="ON/OFF"/> | ||
<Button | ||
android:id="@+id/btn3" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="SET"/> | ||
|
||
|
||
</LinearLayout> |