ebook-reader

BackgroundColorSpan adjust height or add a padding to it

五迷三道 提交于 2021-01-22 06:53:45
问题 I have an app where I am displaying multiple lines, and multiple paragraphs, of formatted text in a TextView . I am using SpannableStringBuilder for this purpose. One of the things I want to do here is to be able to highlight the text. Now I have tried using BackgroundColorSpan , but in this case, the background on the text covers the complete line-height. I want it to cover only the text instead. There seems to be no apparent way to set a vertical padding or height on this span. Just the

BackgroundColorSpan adjust height or add a padding to it

牧云@^-^@ 提交于 2021-01-22 06:51:29
问题 I have an app where I am displaying multiple lines, and multiple paragraphs, of formatted text in a TextView . I am using SpannableStringBuilder for this purpose. One of the things I want to do here is to be able to highlight the text. Now I have tried using BackgroundColorSpan , but in this case, the background on the text covers the complete line-height. I want it to cover only the text instead. There seems to be no apparent way to set a vertical padding or height on this span. Just the

hide and show statusbar without any effect to layout in android

廉价感情. 提交于 2019-12-25 03:15:38
问题 I want to write a book-reader application that normally runs in full-screen, but when user touched screen, status bar become visible OVER my main layout without re-creating the whole view. I already read these but no help at all: Hide notification bar without using fullscreen Hide Notification bar Android Show Activity Title/status bar at the top after it is hidden any idea how can I do it? thanks 回答1: finally, I did it!! these 2 methods will show and hide status bar without destroying the

How to convert any format(.txt, .Doc) file into epub file in android application

大憨熊 提交于 2019-12-13 11:52:18
问题 I am developing an application in which I have to read or write any eBook. In android so many libraries available for reading any eBook, but for writing i didn't find any thing. For reading any eBook file must be in .epub format. I have an editor in which i am entering some text and after saving that file in any format how can i convert that file into .epub file. Thanks in advance. 回答1: In android Java is developer language for create APP, use Epublib (lib in java) Read "doc file" with poi

.epub on iPhone

旧时模样 提交于 2019-12-09 18:45:57
问题 Seeking your help to get off .epub(s) sea in iPhone world... I am trying to make an iPhone application which can read .epub(s). So, I'm in search of a good method, API, Webservices, etc. which help me to render .epub(s) on iPhone's screen. Please let me know once you got any information about .epub(s) on iPhone. => My application would be like, Stanza/Calibri, which can read .epub(s). Thanking You... Paresh Thakor 回答1: EPUB is just XHTML stored in a zipfile with an XML manifest. Get a zip

.epub on iPhone

对着背影说爱祢 提交于 2019-12-04 15:09:14
Seeking your help to get off .epub(s) sea in iPhone world... I am trying to make an iPhone application which can read .epub(s). So, I'm in search of a good method, API, Webservices, etc. which help me to render .epub(s) on iPhone's screen. Please let me know once you got any information about .epub(s) on iPhone. => My application would be like, Stanza/Calibri, which can read .epub(s). Thanking You... Paresh Thakor EPUB is just XHTML stored in a zipfile with an XML manifest. Get a zip library and you can use a WebView to display the actual content. 来源: https://stackoverflow.com/questions

How to convert any format(.txt, .Doc) file into epub file in android application

老子叫甜甜 提交于 2019-12-03 21:47:30
I am developing an application in which I have to read or write any eBook. In android so many libraries available for reading any eBook, but for writing i didn't find any thing. For reading any eBook file must be in .epub format. I have an editor in which i am entering some text and after saving that file in any format how can i convert that file into .epub file. Thanks in advance. In android Java is developer language for create APP, use Epublib (lib in java) Read "doc file" with poi Create epub file: package nl.siegmann.epublib.examples; import java.io.InputStream; import java.io

Breaking large text into pages in android text switcher or view flipper

霸气de小男生 提交于 2019-12-03 13:17:06
问题 I am in the process of developing an e-book reader application for android 3.0 tablets. To begin with I have a large chunk of String data. I want to split/break that String into pages based on the screen size of the device [I am planning to use text switcher or view flipper]. Though I tried using getWindowManager() method I could not get the preferred results. In the following thread it is mentioned that Text Switcher automatically breaks the text according to the screen size. But I do not

Breaking large text into pages in android text switcher or view flipper

梦想与她 提交于 2019-12-03 03:22:25
I am in the process of developing an e-book reader application for android 3.0 tablets. To begin with I have a large chunk of String data. I want to split/break that String into pages based on the screen size of the device [I am planning to use text switcher or view flipper]. Though I tried using getWindowManager() method I could not get the preferred results. In the following thread it is mentioned that Text Switcher automatically breaks the text according to the screen size. But I do not think so. Managing text in android applicaiton like in a eBook This is the logic I used : // retreiving