- Beranda
- Programmer Forum
[Discussion] Android Studio - The New Android IDE
...
TS
rezabeye
[Discussion] Android Studio - The New Android IDE
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Diubah oleh rezabeye 02-06-2013 13:18
nona212 memberi reputasi
1
28.8K
152
Komentar yang asik ya
Mari bergabung, dapatkan informasi dan teman baru!
Programmer Forum
20.2KThread•4.9KAnggota
Tampilkan semua post
aldinof
#144
Code:
<?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=".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>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" < ini yg bermasalah
android:layout_width="match_parent"
android:layout_height="match_parent"
androidaddingLeft="16dp"
androidaddingRight="16dp">
<EditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/reminder" />
<Spinner
android:id="@+id/dates"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/times" />
<Spinner
android:id="@id/times"
android:layout_width="96dp"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:layout_alignParentRight="true" />
<Button
android:layout_width="96dp"
android:layout_height="wrap_content"
android:layout_below="@id/times"
android:layout_alignParentRight="true"
android:text="@string/done" />
</RelativeLayout>
Selalu dapat permasalahan multiple root tags di-Relative layout....
Bagian mana yg mesti diedit ya....
Thx....
0
Tutup
Welcome para Developers ![[Discussion] Android Studio - The New Android IDE](https://dl.kaskus.id/i1298.photobucket.com/albums/ag55/RezaBeye/ScreenShot2013-05-30at10109PM_zps199a1d96.png)
![[Discussion] Android Studio - The New Android IDE](https://dl.kaskus.id/i1298.photobucket.com/albums/ag55/RezaBeye/ScreenShot2013-05-30at10926PM_zpsde2359e2.png)
addingLeft="16dp"