Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6929797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:21:49+00:00 2026-05-27T11:21:49+00:00

Marquee is not working in textview.I placed the textview inside the TableLoyout between two

  • 0

Marquee is not working in textview.I placed the textview inside the TableLoyout between two buttons. And i make the textview as stretchable column. Here is my xml code. I cant figure out the mistake.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="#e0bf64" android:orientation="vertical">


<TableLayout 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:stretchColumns="2"
    android:background="#f2cd6d">
    <TableRow>
        <Button 
            android:id="@+id/btn_prv" 
            android:text="@string/prv" 
            android:textSize="16sp" 
             android:layout_column="1"
            android:layout_width="100dip"               
            android:background="@drawable/prev_btn_re"
            android:paddingLeft="0sp"
            android:paddingTop="0sp"

        />

        <TextView 
            android:id="@+id/head_title" 
            android:layout_width="125dip"
            android:gravity="center"
            android:paddingLeft="5sp"
            android:paddingTop="10dip"
            android:paddingRight="0sp"
            android:background="#f2cd6d"
            android:textSize="16sp" 
            android:textColor="@color/black"
            android:marqueeRepeatLimit="marquee_forever"
            android:lines="1"
            android:ellipsize="marquee"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:freezesText="true"
            android:scrollHorizontally="true" 
            android:text="marquee text"

        />

        <Button 
            android:id="@+id/btn_next" 
            android:text="@string/next"
            android:textSize="16sp" 
            android:gravity="right"
            android:layout_width="100dip"
            android:background="@drawable/next_btn_re"
            android:paddingRight="10sp"
            android:paddingTop="5sp"
         />
      </TableRow>
   </TableLayout>
</LinearLayout>

Please any one tell me why its not working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:21:50+00:00Added an answer on May 27, 2026 at 11:21 am

    A marquee starts when a TextView becomes either focused or selected. You can force it to start by calling setSelected(true) on the TextView.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use the marquee effect on a TextView, but the text is
I have a question about how to make marquee text smooth (using Qt 4.5.3)
anyone have an idea to make a marquee effect just like twitter ? its
If I set a TextView's ellipsize value to marquee and the marqueeRepeatLimit value to
here I am again asking for you kind help. I'm working on a GWT
Im working on a Marquee JPanel ,and im using a JLabel to scroll Text
The marquee animation does not work, this is what I did. <LinearLayout android:layout_height=wrap_content android:layout_width=wrap_content
I'm trying to position two TextView's to the right of an image view (note
The bellow code working, but i don’t know it the write way or not?
Hi I have a layout that contains a gallery a textview with .setEllipsize(TruncateAt.MARQUEE); They

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.