Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android RelativeLayout error " No resource identifier found...."

I am trying to program my first relative layout in Android.

I have a linear layout that works fine and so my relative layout xml file is based on it.

I get the following error :

    error: No resource identifier found for attribute 'layout_bottom' in package 'android'

The xml (partial) code is:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

    <TextView
    android:id="@+id/text_1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="--"
    android:layout_alignParentTop="true"
    /> 

    <RadioGroup                                <-- the error is given in this line
          android:id="@+id/kk"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:layout_bottom="@id/text_1"
          >

Thanks

like image 469
jaiserpe Avatar asked Aug 24 '26 00:08

jaiserpe


1 Answers

It's not layout_bottom, it's layout_alignBottom

http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html

like image 186
dmon Avatar answered Aug 26 '26 19:08

dmon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!