Kindle reader has a unique interface compared to all other reading apps. It takes a very large text and show it on screen in such a way that you dont have to scroll but you have to swipe to go to the next page. It reduces the text to be shown on the screen based on the screen size.
I have tried a lot but I am not able to see how they do it. There are number of questions on SO related to this but none of those answered were satisfactory. In many cases the problem is solved by adjusting the font of the text rather than text.
I think the correct approach to achieve this would be the following but I am not sure if all of it is possible in Android.
Create a Buffered reader and read each character.
Go on adding that character to the TextView
Check if the character is going beyond the visible area.
If yes stop and wait for the flick action else go to step1
If anyone can tell me how to achieve point 3 in android rest should be easy. Feel free to suggest other alternatives as well as long as they are not above web view.
Related
I am building an android app. I am new to this, I found out an interesting activity UI development, But I don't know how to describe that property properly in android terms-(I SINCERELY APOLOGIZE FOR THAT ).I am adding a video, Please consider it.Free Flowing multi-directional Smooth scrollable android overlay UI (Please turn on the subtitles on)
How to have that kind of UI overlay suppose I want to display a large image or file with multiple clickable buttons on it[I have already tried various Image loading libraries to load big size images and to make that Multidirectional scrollable].But that's not the exact thing which I want (like you can see the above mentioned reference).
So how can I execute that?
Thank you In advance for considering your time.
I have an app that I would like to submit to Google Play Store, just to be able to say I have an app that others would find useful. I thought it would be a freebie until I found a similar app-for-pay that mine has more features than. Mine also looks better. Whatever, my questions are about the keypad.
Here are screen shots of input screens, one with output filtering. Output pops up after the Show button is pressed. (The Help button clarifies the overly-terse "output filtering" portion.)
The only keys I need are the ten digits 0-9 and the backspace and Next keys.
Is there an input type that I haven't stumbled onto yet that would have just those 12 keys?
Or is there a way to hide the math symbol, ABC, and "Swype" keys? (Their presence isn't overly distracting, but it would be better without them.)
(I know I could try to design my own custom keypad, but it would be really hard to set up a dozen listeners for a dozen new buttons and have to handle my own text field editing. Meanwhile, the existing look and feel is standard and the app is FINISHED if I don't go this route! It wouldn't be wise to go this route would it? A lot more work not worth the effort?)
there is an android:inputType="number", Also it wont allow any other special characters too...
I am writing a custom android IME, and would like the keyboard on the side of the display rather than the bottom (actually, I want the user to have options). If possible, I would like to split the keyboard into 2 or more parts, located around the display edges.
I have reviewed various complicated solutions which may need extensive cross-device testing.
Is there a simple (and reliable) way to do this, with say, XML layout? I know Java, but not much about android layout.
Answering my own question, after much digging I think the answer is no, there is no simple way of moving the keyboard from the bottom of the display. I have settled on a very small "keyboard" along the bottom, and then creating a mostly transparent popup view. Not nearly as simple as what I was hoping for, but I think I can eventually get it to look the way I want.
I'm wondering how to display the "hint circles" (I don't know what they're really called, and I couldn't find it anywhere) when opening an app for the first time. I've seen this in many stock android apps, but not in many third party apps. Is there even a way to do this?
Thanks!
Here is a picture of what i mean. (The blue circle with the OK, not the white one)
there is a library for that, check ShowcaseView
From what I have experienced with these, they seem to just be a form of a splash screen, or another image overlaying the actual app. Even if the stock apps don't handle it like that, couldn't you just have the app open up a new screen that contained a mostly transparent image except for where you want the ring or other hints. Then you can just at a button to that screen, so that after the user has read all of the hints, then they could close the screen.
I do not know how to totally do this, but since you said you couldn't find any documentation on it, I figured this could either give you a solution or point you in another direction to keep looking.
May i know the name of the below placed image control, also please tell me how to implement similar control in my application.
This control appears, after long press on contact image.
It's called a Quick Actions Popup, and it's not default for the framework... you have to create it yourself.
Another SO question asks about it and the answers have several links to pages telling you how to do it (there's even a couple of code repositories you could download in there).
Good luck.
That is not a built-in control, but it's not difficult to roll your own.
All you need are some nicely crafted images, the outer part can be a LinearLayout, which contains another LinearLayout, which in turn contains 3 Buttons, and you are done with the UI of the control.
The rest of the implementation is to calculate the coordinates to place this control.