title: how to make a textview marquee inside a focussed layout in android
body: <p>I am doing an application in which I have a textview and an image view inside a LinearLayout. Touching the linear layout takes us to another activity. As the text wont fit inside the textview, I want to make the textview content marquee. I have tried may methods but it is not working. The xml content is given below.</p>
  
  <pre><code>&lt;LinearLayout
      android:id="@+id/profile_pic_Layout"
      android:layout_width="fill_parent"
      android:layout_height="100dip"
      android:layout_margin="10dip"
      android:background="@color/blue_background" &gt;
  
      &lt;ImageView
          android:id="@+id/profile_pic_menu"
          android:layout_width="100dip"
          android:layout_height="100dip"
          android:contentDescription="@string/image"
          android:scaleType="centerCrop" /&gt;
  
      &lt;TextView
          android:id="@+id/profile_name_text"
          android:layout_width="fill_parent"
          android:layout_height="30dip"
          android:layout_gravity="bottom"
          android:gravity="center"
          android:marqueeRepeatLimit="1"
          android:inputType="text"
          android:lines="1"
          android:duplicateParentState="true"
          android:scrollHorizontally="true"
          android:fadingEdge="horizontal"
          android:focusable="true"
          android:textColor="@android:color/white"
          android:textSize="20sp"&gt;
          &lt;requestFocus android:focusable="true" 
              android:focusableInTouchMode="true"
              android:duplicateParentState="true"  /&gt; 
      &lt;/TextView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I have also tried setting the textview selected in the code by using,</p>
  
  <pre><code>profileNameTextView.setEllipsize(TruncateAt.MARQUEE);
  profileNameTextView.setSelected(true);
  </code></pre>
  
  <p>I think the it is because, the the parent linearlayout is having the focus.
  Please help me fix this issue..!</p>
  
  <p>Thank you all in advance..! </p>