title: How to change the color of heading ?
body: <p>I want change the color of @+id/txtcommentheading but it show the error @+id/welcomelayout is not a sibling in the same RelativeLayout please suggest for the same or otherwise it show show forceclose error.</p>
  
  <p>Here is my code,</p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:fillViewport="true"
          tools:ignore="HardcodedText" &gt;
  
          &lt;RelativeLayout
              android:id="@+id/main"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              tools:context=".HomePageActivity"
              android:background="@drawable/img"
              &gt;
  
              &lt;!-- android:background="@drawable/img" --&gt;
  
              &lt;RelativeLayout
                  android:id="@+id/header"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content" 
                  android:orientation="vertical"&gt;
  
                  &lt;ImageView
                      android:id="@+id/imageView1"
                      android:layout_width="fill_parent"
                      android:adjustViewBounds="true"
                      android:scaleType="fitXY"
                      android:layout_height="75dp"
                      android:src="@drawable/banner" /&gt;
              &lt;/RelativeLayout&gt;
  
              &lt;LinearLayout
                  android:id="@+id/Login"
                  android:layout_width="fill_parent"
                  android:layout_height="100dp"
                  android:layout_below="@+id/header"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;RelativeLayout
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_gravity="center_horizontal" &gt;
  
                      &lt;LinearLayout
                          android:id="@+id/linearLayout1"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/welcomelayout"
                          android:gravity="center_horizontal"
                          android:orientation="horizontal" &gt;
  
                          &lt;EditText
                              android:id="@+id/txtUsername"
                              android:layout_width="160dp"
                              android:layout_height="wrap_content"
                              android:layout_gravity="center"
                              android:layout_marginTop="2dp"
                              android:ems="10"
                              android:hint="Username"
                              android:inputType="textEmailAddress" &gt;
                              &lt;requestFocus /&gt;
                          &lt;/EditText&gt;
                          &lt;EditText
                              android:id="@+id/txtPassword"
                              android:layout_width="160dp"
                              android:layout_height="wrap_content"
                              android:layout_gravity="center"
                              android:layout_marginTop="2dp"
                              android:ems="10"
                              android:hint="Password"
                              android:inputType="textPassword" /&gt;
                      &lt;/LinearLayout&gt;
                      &lt;LinearLayout
                          android:id="@+id/linearLayout2"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/linearLayout1"
                          android:gravity="center_horizontal"
                          android:orientation="horizontal" &gt;
                          &lt;TextView
                              android:id="@+id/txtForgetPassword"
                              android:layout_width="160dp"
                              android:layout_height="fill_parent"
                              android:autoLink="web"
                              android:gravity="center"
                              android:text="@string/forgetpassword"
                              android:textSize="16sp" /&gt;
                          &lt;Button
                              android:id="@+id/btnLogin"
                              android:layout_width="160dp"
                              android:layout_height="50dp"
                              android:gravity="center"
                              android:textSize="16sp"
                              android:text="Login" /&gt;
                      &lt;/LinearLayout&gt;
                  &lt;/RelativeLayout&gt;
              &lt;/LinearLayout&gt;
  
              &lt;View
                  android:id="@+id/Line2"
                  android:layout_width="fill_parent"
                  android:layout_height="2dip"
                  android:layout_below="@+id/Login"
                  android:layout_marginTop="5dp"
                  android:background="#ffffff" /&gt;
  
              &lt;LinearLayout
                  android:id="@+id/body"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_below="@+id/Line2"
                  android:layout_marginTop="10dp"
                  android:scrollbars="vertical" &gt;
  
                  &lt;RelativeLayout
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:gravity="center_horizontal" &gt;
  
                      &lt;LinearLayout
                          android:id="@+id/merchantlayout"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:orientation="vertical" &gt;
  
                          &lt;TextView
                              android:id="@+id/txtcommentheading"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:gravity="center_horizontal"
                              android:text="Merchant Comment heading"
                              android:textColor="@color/green"
                              android:textSize="19dp"
                              android:textStyle="bold" /&gt;
  
                           &lt;TextView
                               android:id="@+id/txtcomment"
                               android:layout_width="match_parent"
                               android:layout_height="wrap_content"
                               android:gravity="center_horizontal"
                               android:text="Merchant Comment"
                               android:textColor="@color/green"
                               android:textSize="15dp" /&gt;
  
                      &lt;/LinearLayout&gt;
                      &lt;View
                              android:id="@+id/Line3"
                              android:layout_width="fill_parent"
                              android:layout_height="2dip"
                              android:layout_below="@+id/merchantlayout"
                              android:layout_marginTop="5dp"
                              android:background="#ffffff" /&gt;
  
                      &lt;LinearLayout
                          android:id="@+id/welcomelayout"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/Line3"
                          android:layout_marginTop="5dp"
                          android:gravity="center_horizontal"
                          android:orientation="horizontal" &gt;
  
                          &lt;TextView
                              android:id="@+id/txtwelcome"
                              android:layout_width="200dp"
                              android:layout_height="wrap_content"
                              android:layout_gravity="left"
                              android:text="Medium Text"
                              android:textAppearance="?android:attr/textAppearanceMedium"
                              android:textColor="@color/green" /&gt;
  
                          &lt;Button
                              android:id="@+id/btnLogout"
                              style="?android:attr/buttonStyleSmall"
                              android:layout_width="100dp"
                              android:layout_height="wrap_content"
                              android:textSize="16sp"
                              android:text="Logout" /&gt;
                      &lt;/LinearLayout&gt;
  
                      &lt;LinearLayout
                          android:id="@+id/linearLayoutbtn"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/welcomelayout"
                          android:layout_marginTop="5dp"
                          android:gravity="center_horizontal"
                          android:orientation="vertical" &gt;
  
                          &lt;Button
                              android:id="@+id/btnProducts"
                              android:layout_width="310dp"
                              android:layout_height="60dp"
                              android:textSize="16sp"
                              android:text="Menu"/&gt;
                      &lt;/LinearLayout&gt;
  
                      &lt;LinearLayout
                          android:id="@+id/linearLayout6"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/linearLayoutbtn"
                          android:gravity="center_horizontal"
                          android:orientation="horizontal" &gt;
  
                          &lt;Button
                              android:id="@+id/btnCallus"
                              android:layout_width="155dp"
                              android:layout_height="60dp"
                              android:textSize="16sp"
                              android:text="Call Us to Order"/&gt;
  
                          &lt;Button
                              android:id="@+id/btnRegister"
                              android:layout_width="155dp"
                              android:layout_height="60dp"
                              android:textSize="16sp"
                              android:text="Register" /&gt;
  
                          &lt;Button
                              android:id="@+id/user_Profile"
                              android:layout_width="155dp"
                              android:layout_height="60dp"
                              android:text="My Profile"
                              android:textSize="16sp"
                              android:visibility="gone" /&gt;
                      &lt;/LinearLayout&gt;
  
                      &lt;LinearLayout
                          android:id="@+id/linearLayout3"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/linearLayout6"
                          android:gravity="center_horizontal"
                          android:orientation="horizontal" &gt;
  
                          &lt;ImageButton
                              android:id="@+id/btnfacebook"
                              android:layout_width="145dp"
                              android:layout_height="55dp"
                              android:src="@drawable/facebook"
                              android:background="#537531" /&gt;
  
                          &lt;Button
                              android:layout_width="8dp"
                              android:layout_height="10dp"
                              android:visibility="invisible" /&gt;
  
                          &lt;ImageButton
                              android:id="@+id/btntwitter"
                              android:layout_width="145dp"
                              android:layout_height="55dp"
                              android:src="@drawable/twitter" 
                              android:background="#537531"/&gt;
  
                      &lt;/LinearLayout&gt;
                  &lt;/RelativeLayout&gt;
              &lt;/LinearLayout&gt;
  
                  &lt;RelativeLayout
                      android:layout_width="match_parent"
                      android:layout_height="20dp"
                      android:layout_below="@+id/body"
                      android:layout_alignParentBottom="true"
                      android:gravity="center_horizontal" &gt;
  
                      &lt;TextView
                          android:id="@+id/versionNo"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_alignParentBottom="true"
                          android:text="Version 1.0"
                          android:textSize="15sp" /&gt;
  
                  &lt;/RelativeLayout&gt;
          &lt;/RelativeLayout&gt;
  
      &lt;/ScrollView&gt;
  </code></pre>