課程
/移動開發
/Android
/Android攻城獅的第一門課(入門篇)
如題啊,小白不是很懂android studio的設置
2017-07-24
源自:Android攻城獅的第一門課(入門篇) 12-3
正在回答
<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout 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.kunpeng.mpplication.MainActivity"> ? ?<TextView ? ? ? ?android:layout_width="wrap_content" ? ? ? ?android:layout_height="wrap_content" ? ? ? ?android:text="Hello World!" ? ? ? ?app:layout_constraintBottom_toBottomOf="parent" ? ? ? ?app:layout_constraintLeft_toLeftOf="parent" ? ? ? ?app:layout_constraintRight_toRightOf="parent" ? ? ? ?app:layout_constraintTop_toTopOf="parent" /></android.support.constraint.ConstraintLayout>
先放置布局,例如線性布局,相對布局等,然后向布局里拖動控件。我也是初次使用android studio,默認情況下是可以的
不悅3996388 提問者
補充一下,用的是相對布局
舉報
想快速掌握Android應用開發基礎,選擇學習這門課程就對了。
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-07-25
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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.kunpeng.mpplication.MainActivity">
? ?<TextView
? ? ? ?android:layout_width="wrap_content"
? ? ? ?android:layout_height="wrap_content"
? ? ? ?android:text="Hello World!"
? ? ? ?app:layout_constraintBottom_toBottomOf="parent"
? ? ? ?app:layout_constraintLeft_toLeftOf="parent"
? ? ? ?app:layout_constraintRight_toRightOf="parent"
? ? ? ?app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
2017-07-25
先放置布局,例如線性布局,相對布局等,然后向布局里拖動控件。我也是初次使用android studio,默認情況下是可以的
2017-07-24
補充一下,用的是相對布局