Alexander R.
- Forum-Beiträge: 1.148
17.07.2010, 00:24:11 via Website
17.07.2010 00:24:11 via Website
Hallo,
ich versuche mich gerade an einem Layout, wobei es den folgenden Fehler gibt obwohl es den eigentlich nicht geben dürfte hoffe ihr könnt mir helfen:
error:No resource identifier found for attribute 'layout_toRight' in package 'android'
Die Codeteile die es betrifft sind fett gedruckt.
ich versuche mich gerade an einem Layout, wobei es den folgenden Fehler gibt obwohl es den eigentlich nicht geben dürfte hoffe ihr könnt mir helfen:
error:No resource identifier found for attribute 'layout_toRight' in package 'android'
Die Codeteile die es betrifft sind fett gedruckt.
1<?xml version="1.0" encoding="utf-8"?>
2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3android:layout_width="fill_parent"
4android:layout_height="fill_parent"
5>
6<TextView id="@+id/objLbl1"
7android:layout_width="80sp"
8android:layout_height="24sp"
9android:text="Code"
10/>
11<EditText id="@+id/objTxt1"
12android:layout_width="134sp"
13android:layout_height="24sp"
14android:layout_alignTop="@id/objLbl1"
15android:layout_toRight="@id/objLbl1"
16android:text="Edit 1"
17android:singleLine="True"
18/>
19<TextView id="@+id/objLbl2"
20android:layout_width="80sp"
21android:layout_height="24sp"
22android:layout_below="@id/objTxt1"
23android:text="Name"
24/>
25<EditText id="@+id/objTxt2"
26android:layout_width="134sp"
27android:layout_height="24sp"
28android:layout_alignTop="@id/objLbl2"
29android:layout_below="@id/objTxt1"
30android:layout_toRight="@id/objLbl1"
31android:text="Edit 2"
32android:singleLine="True"
33/>
34<Button id="@+id/objBtn1"
35android:layout_width="80sp"
36android:layout_height="24sp"
37android:layout_below="@id/objTxt2"
38android:text="Save"
39/>
40</RelativeLayout>
2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3android:layout_width="fill_parent"
4android:layout_height="fill_parent"
5>
6<TextView id="@+id/objLbl1"
7android:layout_width="80sp"
8android:layout_height="24sp"
9android:text="Code"
10/>
11<EditText id="@+id/objTxt1"
12android:layout_width="134sp"
13android:layout_height="24sp"
14android:layout_alignTop="@id/objLbl1"
15android:layout_toRight="@id/objLbl1"
16android:text="Edit 1"
17android:singleLine="True"
18/>
19<TextView id="@+id/objLbl2"
20android:layout_width="80sp"
21android:layout_height="24sp"
22android:layout_below="@id/objTxt1"
23android:text="Name"
24/>
25<EditText id="@+id/objTxt2"
26android:layout_width="134sp"
27android:layout_height="24sp"
28android:layout_alignTop="@id/objLbl2"
29android:layout_below="@id/objTxt1"
30android:layout_toRight="@id/objLbl1"
31android:text="Edit 2"
32android:singleLine="True"
33/>
34<Button id="@+id/objBtn1"
35android:layout_width="80sp"
36android:layout_height="24sp"
37android:layout_below="@id/objTxt2"
38android:text="Save"
39/>
40</RelativeLayout>
Gruß Alexander
Empfohlener redaktioneller Inhalt
Mit Deiner Zustimmung wird hier ein externer Inhalt geladen.
Mit Klick auf den oben stehenden Button erklärst Du Dich damit einverstanden, dass Dir externe Inhalte angezeigt werden dürfen. Dabei können personenbezogene Daten an Drittanbieter übermittelt werden. Mehr Infos dazu findest Du in unserer Datenschutzerklärung.