Вот мой код макета;align textview внизу
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main_bg" >
<!-- Logo -->
<RelativeLayout
android:id="@+id/rel_jobDesc1"
android:layout_width="fill_parent"
android:layout_height="47dip"
android:layout_alignParentTop="true"
android:background="@drawable/logo" >
</RelativeLayout>
<RelativeLayout
android:id="@+id/relativeLayout2"
android:layout_width="fill_parent"
android:layout_height="340dp"
android:layout_marginLeft="2dip"
android:layout_marginRight="2dip"
android:layout_marginTop="100dip" >
<!-- JOB DESCRIPTION -->
<TextView
android:id="@+id/txt_JOB_DESCRIPTION"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:layout_marginTop="20dip"
android:text="Job Description:"
android:textColor="#000000"
android:textSize="14dip"
android:textStyle="bold" >
</TextView>
<EditText
android:id="@+id/edit_JOB_DESCRIPTION11"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginRight="20dip"
android:layout_marginTop="10dip"
android:layout_toRightOf="@+id/txt_JOB_DESCRIPTION"
android:background="@android:drawable/editbox_background"
android:maxLines="1"
android:singleLine="true" >
</EditText>
<TextView
android:id="@+id/txt_JDESCRIPTION"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/edit_JOB_DESCRIPTION11"
android:layout_centerInParent="true"
android:layout_marginLeft="45dip"
android:text="(Job title, industry, keywords)"
android:textColor="#4a596e"
android:textSize="12dip" >
</TextView>
<!-- -->
<!-- LOCATION -->
<TextView
android:id="@+id/txt_JOB_LOCATION"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/txt_JDESCRIPTION"
android:layout_marginLeft="20dip"
android:layout_marginTop="50dip"
android:layout_toLeftOf="@+id/btn_SEARCH"
android:text="Location: "
android:textColor="#000000"
android:textSize="15dip"
android:textStyle="bold" >
</TextView>
<EditText
android:id="@+id/edit_JOB_LOCATION1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/edit_JOB_DESCRIPTION11"
android:layout_below="@+id/txt_JDESCRIPTION"
android:layout_marginRight="20dip"
android:layout_marginTop="40dip"
android:background="@android:drawable/editbox_background"
android:maxLines="1"
android:singleLine="true" >
</EditText>
<TextView
android:id="@+id/txt_JLOCATION"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/edit_JOB_LOCATION1"
android:layout_centerInParent="true"
android:layout_marginLeft="45dip"
android:text="(City, State, Zip)"
android:textColor="#4a596e"
android:textSize="12dip" >
</TextView>
<!-- -->
<!-- JOB ID -->
<!-- -->
<!-- SEARCH BUTTON -->
<Button
android:id="@+id/btn_search1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/txt_JLOCATION"
android:layout_centerInParent="true"
android:layout_marginTop="35dip"
android:background="@drawable/draw"
android:text=" Search " >
</Button>
<!-- -->
<TextView
style="flat_detail_name"
android:capitalize="characters"
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/btn_search1"
android:layout_centerHorizontal="true"
android:layout_marginTop="35dp"
android:textColor="#000000"
android:text="Sign in Or Register for Your Primium free membership "
/>
</RelativeLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="20dp"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="10" >
<Button
android:id="@+id/btn_Login1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_marginBottom="20dp"
android:background="@drawable/draw"
android:gravity="center"
android:text=" Login " />
<Button
android:id="@+id/btn_register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_marginBottom="20dp"
android:background="@drawable/draw"
android:gravity="center"
android:text="Register" />
<Button
android:id="@+id/btn_lostlogin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_marginBottom="20dp"
android:background="@drawable/draw"
android:gravity="center"
android:text="Lost Login" />
</LinearLayout>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/rel_jobDesc1"
android:layout_centerHorizontal="true"
android:layout_marginTop="34dp"
android:text="Get Started with Your Job Search"
android:textColor="#000000"
android:textSize="14dip"
android:textStyle="bold" />
</RelativeLayout>
я хочу установить Войти или Зарегистрироваться для членов статуса премиум TextView в верхней части Кнопка входа Войти Регистрация И утраченного
Plz помочь мне, как мы можем установить это текст вида
извините за плохой английский Любая помощь приветствуется. Спасибо заранее
, когда я пользуюсь ошибкой: android: layout_above = "@ id/btn_Log in1 "Затем получение ошибки: не найден ресурс, который соответствует указанному имени (в 'layout_above' со значением '@ id/btn_Login1'). –
Поместите TextView ниже на кнопку «Войти». – Subbu
Я думаю, вы должны использовать '@ + id' вместо' @ id' – SSS