I want to have an android app where, i want to display text in some foreign language lets say urdu.. I will call a web service and will get urdu text. my question is can i set that text in textview as it is.
I have made an application in the past which can take the text from strings files for different localisation and can show the text however this is different use case, as i can not save the texts locally.
Related
I was wondering how do applications store and display attributed text. By attributed text I mean text that can have photos, colors, style(bold italic etc) and so on.
is there a universal way through which one can store attributed text and display it everywhere (ios/android/web/desktop etc) ?
the only way I found after a lot of research was to store your text in HTML format and then using some kind of webview to render the html back. But is there another way to do this ?
an example of such app: the notes app on mac os
I am thinking to make book like app which should have more then 100 topic to read. And user can even change language like Hindi or English . Basically it will behave as book. My question is that where should I store that textual data in XML file or in database . If answer is database then how can I change language of textual data in app
I don't understand what you mean by android book.
Anyway if you are asking about how to change the language of your app maybe this link is what do you need:
How can I change language of my application
I'm trying to build an android app that displays a set of templates of cards (wedding cards, birthday cards etc) which can be customized as per user requirement. On selecting a template, i want the end user to fill out a form with basic details. I am trying to format the information fetched from user with different fonts, styles, colors, shapes ( like Word Art).
How should i do that ?
Thank you in advance
I'm relatively new to mobile app development - I'm kinda learning as I go. I'm creating an app that will serve multiple purposes - notifications, audio/video, etc. One of the features of the app will be to display the contents of an unpublished book (no plans to publish it either via the traditional methods available today). Essentially, I want the part of the app to do teh following:
1) Have a menu which will server as a table of contents.
2) Display the text, which will be in English and Arabic.
3) Have the english text searchable.
4) Have the ability to favorite certain sections of the text.
Just wondering what's the best way to build this? Should I convert sections of my file to html and use webview? Or should I use textview?
I'm looking for the option that gives me the most robustness in terms of functionality, and flexibility when it comes to design (i.e. background images, custom fonts, formatting).
Thanks in advance.
WebView or HTML page is not a very good approach.
You can try an approach in which your data is stored in json format in your resources-->raw folder and then parse each element of the JsonObject to populate views dynamically.(If you have server then you fetch data via HttpConnection). For start you can see here
convert your file to html file and display it using webview container...If you have your book in word format then convert it to html file in any website and then display it using webview.
A couple of friends and I are setting up a little app business, and we are creating our general app for finding out all the latest news about our other apps. But we have a small problem.
We have a layout xml file with a table row in it. In the table row we want to show two textviews. One that says Current App version (Which we have done successfully) and the other one will show a few numbers from an HTML page which is live now.
I want to know, how would be able to get the text from the HTML document on the Web to that text view, or any other thing we could use.
(We know that the manifest will have to allow the internet)
Thanks
So in this TextView, you want to show the content of the HTML page? If this is the case, the best thing you could do is to replace the TextView with a WebView, where you could load the HTML page via its url.
If not this is the case, you can make a GET request to that HTML (i.e. using an Async Task), get the results and present them in the TextView.
Hope this helps!