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...
Related
I have a slight issue. I wanna do something like we have here where we put in format markers such as this and this but I want it to appear in the edit text but not remove the marks for it. At the moment I'm achieving this with a preview button which displays an AlertDialog to show the previewed text.
I'm not sure which code to show as I have no idea how to do this at all. I also have no idea where to start on something like this. I've tried doing tons of research and it formats one word and then completely removes the markup/down for it.
Any help will be appreciated and I'm happy to supply any code whatsoever :)
I achieved this using a third-party library RichEditor and took the ones that I needed. It works really well for what I needed so I would recommend it for people to use.
It uses a webview for the EditText and then converts the text into a WYSIWYG formatting.
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.
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
is it any possibility to get a spin box like the ones used in Time or DatePickers? I want to set my own data using those.
Thanks in advance
More precisely, I think you are looking for this: http://developer.android.com/reference/android/widget/NumberPicker.html.
EDIT:
Or if you're looking into other options, it already has been discussed here: Android Number Picker Dialog.
Hope it helps!
it is possible via a custom view... http://developer.android.com/guide/topics/ui/custom-components.html
happy coding ;)
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);