Custom EditText with ScrollView like behaviour? - android

i need to make a Custom EditText which scrolls as fast, or has the same scroll-behaviour like a scrollView.
Can someone give me some instructions how i can make this, or has someone made it already?
I would really appreciate if someone could post some Code, or a whole CustomEditText with this function.
I'm sure a lots of people search for this.
I tried to do the EditText into a ScrollView but this causes lots of problems with the selection, ...
Perhaps someone knows how to add line-numbers too?
I hope to get an answer from someone out there ;).
Thanks in advance.
Regards,
Mike

Do you have a listview for this custom edittext? If you do have, you can try using this setFastScrollEnabled(true);

Related

Having trouble to make custom edittext in android?

i want to make custom edit text like this
I searched google fot it but get any solution to my desire.
So please give me some advise how to do it or give a documentation link that will help me.
Thanks in advance.... :)
Create a class that extends EditText. Override the onDraw method to draw it however you want.

Android Custom Keyboard with unusual symbols

Hi guys i am wonder whether it is possible to create a custom keyboard in Android such as the once attached with this question. Any ideas and clue would be very much appreciated. Hoping for better response. Thanks in Advance.
I've wondered about that in the past and I ended up using a custom View, assigning the active EditText element to it, hiding the system keyboard and changing the content when a button is pressed.

android making Preferences (CheckBoxPreference) scrollable in XML

Hi, I'm trying to get my preference area to have scrollable text as most of the titles are too long. Is this something thats possible? I have seen posts regarding TextViews, and even those need a bit of encouragement to get going...
any help appreciated.
thanks
Not with standard PreferenceActivity you are most likely use there. Shorten your labels and use `description filed to clarify. Or just create help or manual for your app

TwoLineListItem

Please take a look at the screenshot on the left:
http://bit.ly/a4F5Ln
Could anyone tell me what view components are those with texts Notebook and Selected tags? Could it be TwoLineListItem? Any examples using it?
Basically, I'd like to replace Spinner components with something similar.
Thanks!
EDIT: Hmmm... how to reply to an answer?
Anyway, yes, thanks, this looks like a ListPreference. Does that mean that I can have a ListPreference in any Activity, or that sample I posted is actually PreferenceActivity with other, non-preference views?
They look like ListPreference to me...

Android: textView doesn't show cursor

I have a textView which is configured as an EditText. But the problem is that the cursor doesn't appear when i'm pressing keys (text is written correctly).
Thanks
Well the first thing I'd try is setCursorVisible(true)
Also you say you have a TextView which is configured as an EditText. That's a bit confusing to me. Did you define it in your layout XML as <EditText> or create a new EditText object via new EditText(context)? Or did you define it as a <TextView> with android:editable="true"? Your wording sounds almost like you did the later, but I'm not sure that's going to work as well as the former.
For future reference, posting the code that's not working as part of your question really helps people pinpoint your problem and provide you the correct answer.

Categories

Resources