Kaskus

Tech

rezabeyeAvatar border
TS
rezabeye
[Discussion] Android Studio - The New Android IDE
Quote:


Quote:


Quote:


Quote:


Quote:


Quote:
Diubah oleh rezabeye 02-06-2013 13:18
nona212Avatar border
nona212 memberi reputasi
1
28.8K
152
GuestAvatar border
Komentar yang asik ya
Mari bergabung, dapatkan informasi dan teman baru!
Programmer Forum
Programmer Forum
KASKUS Official
20.2KThread4.9KAnggota
Tampilkan semua post
aldinofAvatar border
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"
androidemoticon-Stick Out TongueaddingLeft="16dp"
androidemoticon-Stick Out TongueaddingRight="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
Ikuti KASKUS di
© 2025 KASKUS, PT Darta Media Indonesia. All rights reserved.