Is anyone knows how to insert CardView-like views into an EditText in ANDROID inline? I did google up for a bit, and just found the library that is specifically for browsing contacts like the one in gmail android app.
I need to use it something like the tag TextBox in stackoverflow, when we are going to post / edit a question.
1 pic worth a thousand words, so here we go:
SNIP FROM SO
SNIP FROM GMAIL ANDROID APP
Maybe something like Chips like this. I have no problem of creating such View myself, the problem is to insert it into an EditText. Thank you.
P.S. My min sdk version is 19
UPDATE: Just saw how this is handled in SO android app. I think it's not bad tho, but still, I prefer inline solution if able.
Related
I spent like a half hour researching and many suggestion are either years oudated/no longer existent, and me being a programming beginner who doesn't know how to do more advanced things than basics like adding text/buttons/etc. and basic programming logic into Android Studio activies, I'm totally lost. Some suggestions mention inserting HTML with JavaScript references but I haven't found a guide that explains how to do it, and those making the suggestions listed some cons, too. E.g. How would I display 5^2 (without the '^' and the '5' in superscript form), '1/2' in neat fraction form, etc., in a TextView or whatever other text component? I searched through the Android developer reference as well but didn't see anything that 'intuitively' stood out to me, for the lack of a better word.
You could achieve this by using WebView and JS. An example of such library for Android is: https://github.com/KaTeX/KaTeX.
I think you can use MathJax for doing that. Please refer to this GitHub repository.
MathJax
In my android app, I want to display japanies characters verticlaly with ruby annotations. The text and asnnotation comes dynamically from a service. Prestty much something like this ([https://www.w3.org/International/questions/qa-ruby-data/vertical.png][1]). At first glance this seems to be a solved problem. But surprisingly I dont see much material on Internet about this scenario. I am skiming through various topics in android but no luck. Can any one share some resource that I can look into.
I already came across the /n approach, Honestly felt we can solve this little better (not sure though)
In your, Textview use this line
android:rotation="90"
like I set the text verticle.
I have researched this extensively but the only thing I have found for Android is EditTag which only uses preset tags. I want the user to be able to type in a box, and then when they hit space, it creates the last word as a tag. The idea is then for these tags to be searchable. Does anyone know if such a library exists or how I can get started implementing these?
I recommend you take a look at this library https://github.com/2dxgujun/AndroidTagGroup
I'm using it and it is very simple. You can do things like this:
I'm trying to write an app that would use the timepicker in Android, but I really would like to implement the one from iOS.
I've had a couple of leads, but haven't struck anything that has worked for me.
My problem is that the time picker is for time but I want to use mine for three different number values that can be chosen (no am/pm) so it seems like Pickers are the way to go, except that they were introduced in API 11.
I've found this blog that seems to give you some code for it, but I wasn't able to get it to work.
I also found android-wheel, but I don't know how to get the source for it. Can anyone steer me in the right direction for it?
The iOS timepicker looks like this:
Android wheel looks like this:
But, I haven't been able to figure out how to get the code for it.
The code is in the google code project - https://code.google.com/p/android-wheel/source/browse/
Download the source code from below link for various wheel example:
http://android-wheel.googlecode.com/svn/trunk/
Make sure that you have the svn plugins for download.
Thanks.
I did search the internet to find an answer to my questions but there are no websites that did help me, so I hope someone can! Thank you in advance and have a nice day :-)
So these days I've been busy to get more into the Android Design guidelines and to learn more about it and how to implement it in my future applications. This is the main website I use to see what the guidelines are: http://developer.android.com/design/index.html. Great website but there are a few small things I just can't find in the dev guide or somewhere else. I just don't know how to implement some (simple) UI elements.
Can someone provide me code snippets of the following questions? (I want to know how to do it as simple as possible, how Google ment it!) It can help other (starting) developers too!
My main question is, are there special elements to achieve these things? As they are the key element in Android 4.0 it should have this things as some standard right?
1) Android 4.0 is using titles with dividers a lot in there new theme and it's looking great. But I can't find how to do implement this element simple like it should. What I want to know is how to make this blue title text with the grey looking divider underneath it look at this picture:
2) How to make section dividers in general? Like this image:
3) How to make a list with section dividers and give a list-item a 2-line explanation under it's name like this:
I did search the internet to find an answer to my questions but there are no websites that did help me, so I hope someone can! Thank you in advance and have a nice day :-)
In most cases how you are going to have to do it is create a custom layout. I tried recreating the look of the people application this way. for the most part the look you are going for is similar to the PreferenceActivityview. That gives you the look of the last image and probably how it was done in the People application with some extra programming. I just found it easier to create my own layout though instead of trying to mess around with that.
To my knowledge there is nothing in the api to create what you are looking to do easily and custom layout are going to be the way to go.
the custom dialog layout like you show in the beginning is very simple to do so if you dont know how to do manipulate layouts I would start there. look up the android color swatches to get the color of that blue
Edit
another thing you could do is look through the People source code and see how they did it but it will probably be more of a pain than what its worth when you can just do a layout