Android Studio: Building UI: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
File > New > New Project > Empty Activity | File > New > New Project > Empty Activity | ||
Name MyApplication | Name MyApplication | ||
Package Name com.example.myapplication | Package Name com.example.myapplication | ||
Klik "Finish" | |||
| Line 12: | Line 12: | ||
* Di Project window > app > res > layout > activity_main.xml. | * Di Project window > app > res > layout > activity_main.xml. | ||
* Click (Select Design Surface) > Blueprint. | |||
* Click (View Options) > Show All Constraints pastikan checked. | |||
* (Enable Autoconnection to Parent) > Disable Autoconnect to parent. | |||
* (Default Margins) > 16 | |||
* (Device for Preview) > 5.5 | |||
==Referensi== | ==Referensi== | ||
https://developer.android.com/training/basics/firstapp/building-ui | https://developer.android.com/training/basics/firstapp/building-ui | ||
Revision as of 22:56, 3 March 2022
New Project
File > New > New Project > Empty Activity Name MyApplication Package Name com.example.myapplication
Klik "Finish"
Open the Layout Editor
- Di Project window > app > res > layout > activity_main.xml.
- Click (Select Design Surface) > Blueprint.
- Click (View Options) > Show All Constraints pastikan checked.
- (Enable Autoconnection to Parent) > Disable Autoconnect to parent.
- (Default Margins) > 16
- (Device for Preview) > 5.5
Referensi
https://developer.android.com/training/basics/firstapp/building-ui