I have one sentence with 3 TextView in my RecyclerView. The picture is like below : In that picture, I have one sentence in 3 TextView, there are "1" "HOT, MORE CHILLI" and "Pizza". This is my RecyclerView Binding code : try
I wanted to make my data in textview selectable for copy paste. For this, I am setting textIsSelectable flag to true in my textview as following: textView.setText("Hello"); textView.setTextIsSelectable(true); I am getting following exception: ja
Hello I have follow this link How to highlight filtered text in RecyclerView when using SearchView widget to make custom filtered list in recyclerview. But it doesn't work to my case, what's wrong with my code? I''ll really apreciate if you can look
I have a custom List in which different buttons are present on each List. my aim is to make a single text view <TextView android:id="@+id/text" android:layout_width="fill_parent" android:layout_height="wrap_content" androi
I am working on an application where the user can post content to a feed. In my edit text (used for composing) the text colour is grey. However when the user types a hash tag e.g. #help I need to colour that text black as they type, so when the user
i am working on an app in which user choose an image from gallery and it will be added in editText, now i want if user click on image in editText it should open in fullScreen, i used below code :- public void addToEdt(Bitmap bitmap){ SpannableString
I Have a listview with arrayadapter .. i need to implement this in my music application ... help me out public class Search_Class extends Activity { EditText searchedit; ListView listview3; SongsManager songManager; Context context; String[] abc; Arr
I am trying to set BackgroundColorSpan to selected text in my Edit-text. So when i select any text and click on button it will set Background color to that particular text and then i am saving that note to my SDCard with .html format and then again i
I have an ImageSpan inside of a piece of text. What I've noticed is that the surrounding text is always drawn at the bottom of the text line -- to be more precise, the size of the text line grows with the image but the baseline of the text does not s
is it possible to the add a compound drawable (something like drawableLeft) to the standard action bar title without using a custom view? Atm i am using a SpannableString for the title (in order to use a custom typeface). If I can't set a compund dra
So I'm trying to add superscipt/subscript to a TextView, basically trying to make a fraction be displayed as 1/2. Not sure where I'm going wrong, and I'm new with Android, so any help is appreciated. Thanks! SpannableStringBuilder numSpan = new Spann
i have a TextView filled with text which i get from a server. I'm using Linkify for handling all the link searching and for setting a URLSpan where needed throughout its addLinks method. The problem is that the default behavior when clicking a link i
I would like to create something similar as seen on this image: I managed to create evertyhing with SpannableStringBuilder, except the orange rounded rectangle. I can set the background to that color with BackgroundColorSpan, but I can't find a way t
i want to change only a part of textview color.. I've tried in this way but nothing change TextView textView = (TextView)findViewById(R.id.Temperature); textView.setText("Temperature: "+ "<small> <font color='#59c3fa'>" + t
I am trying to display some text in an alert dialog box as a hyperlink. Part of the process requires me to use SpannableString to format some text. The problem is that my application experiences a runtime error on the SpannableString part of my code.
Hello I have set some text in a textview. TextView tweet = (TextView) vi.findViewById(R.id.text); tweet.setText(Html.fromHtml(sb.toString())); Then I need to convert the text of the TextView into Spannble. So I did this like: Spannable s = (Spannable
I have been reading up on the docs for the Spanned/Spannable class for a project that I am working on. I have been puzzled by the definition and usage of the spans that contain MARK and POINT. A MARK seems to be defined in the Doc as "attached"
I have a textview created in a class B programaticly. When class A calls it. It adds text say "I went to the shop" and i need the word "the" to be a link. This i have done using this in CLASS B sb.setSpan(new MyClickableSpan(Word), sta
I have a FrameLayout which is square. I have a TextView inside the layout and an option for the user to increase/decrease the textSize. I want to limit the text increase option, when text is big enough to fill the entire FrameLayout. So if I start wi
Tweet o = tweets.get(position); TextView tt = (TextView) v.findViewById(R.id.toptext); //TextView bt = (TextView) v.findViewById(R.id.bottomtext); EditText bt =(EditText)findViewById(R.id.bottomtext); bt.setText(o.author); Spannable spn = (Spannable)
I have to display some text in textview. I just want the a part of the text to be clickable and the rest of the text to be normal. Here is my code: TextView mTextView = (TextView) findViewById(R.id.txt); String mText = "some text.Link to click.Some m
Are there any classes that can take a symbol in a string that is typed in an editText box and replace it with the HTML entity code. Not take the HTML entity code and display the symbol. For example: if a string is "2∏" is there anything prebuilt
Is this possible to set different textSize in one TextView? I know that I can change text style using: TextView textView = (TextView) findViewById(R.id.textView); Spannable span = new SpannableString(textView.getText()); span.setSpan(arg0, 1, 10, arg
I'm setting Span to part of text. Span itself works well. However the text is created by String.format from Resources and I do not know start and end of part in the text i'm going to set Span to. I tryed to use custom HTML tags in strings.xml, but ei