android


Set dynamic string data of different languages to textview in android


In my android application i am parsing RSS feeds. The feeds language is not unique. I am displaying the feed items in a list view using adapter. How to set text of different languages to a textview inside listview. I dont want to change app language. I only need textview to support multiple languages.
You can use Typeface to achieve this.
Go through this link Typeface and you'll get a good idea how to use it in your application.
Download the otf/ttf file of the language you want to set and place it in the assets folder.
Then you need to do this to set the text:
Typeface myTypeface = Typeface.createFromAsset(this.getAssets(),"myLanguage.ttf");
myTextView.setTypeface(myTypeface);

Related Links

Inflate programmatically for android layout
Flurry ads aren't showing
OpenCV on Android: Couldn't load opencv_java from loader - do I have to compile with NDK? Have I missed something?
Regarding publishing an app in the play store with the same package name
Can't retrieve friend's album in Android/Facebook
“adb shell getprop persist.sys.country” returning empty string
Green Screen effect on ImageView
Exception in AnimationUtils.loadAnimation() (sometimes)
Add Google Play service to an Android library project in Android studio
“File not Found” exception in dexDebug task of build
played video again automatically after finished
How to get villagename, district and subdistrict from latitude longitude
What are the information(Ex: device ID, MAC etc…) will be sent to MQTT server in the background when we create a connection?
Is there any UI library in Android ,similar to the UI view of , iOS HealthBook/Passbook app
How to Compile native library in eclipse
how to remove menu from fragment back pressed android

Categories

HOME
uml
fabricjs
c++11
apache-jena
pagination
formal-languages
pyqt
numbers
themes
hessian
oracle-apex-5
web-hosting
zip
tvos
android-json
webix
bing-maps
teechart
mql5
fhir
mautic
tput
radgridview
frequency-distribution
pyramid
jmp
sse
boost-icl
visual-glitch
joptionpane
definitelytyped
moses
interbase
angularjs-components
appirater
progress-bar
underscore.js
8051
exchangewebservices
tizen-tv
scatter3d
glib
erb
linkedhashmap
instantiation
carriage-return
python-import
sql-delete
swagger-php
odroid
setup.py
glm-math
android-exoplayer
phpdbg
robomongo
chai-as-promised
dtsearch
twilio-click-to-call
lightning
oracleclient
cpu-cache
pybrain
gameplay-kit
pocketsphinx-android
actor-platform
xcode-server
greatest-n-per-group
i386
dup
http-status-code-401
query-by-example
ascii-art
ons-api
video-player
text-search
airbrake
graphics2d
google-refine
kubuntu
java-security
cryptographichashfunction
execve
jbake
formview
unix-socket
lnk
malformedurlexception
dot42
mysql-error-1044
cocoalibspotify-2.0
kogrid
node-blade
octal
virtual-pc
joomla3.1
tree-balancing
wcf-configuration
subgraph
urlrewriter
role
dataform
commerceserver2007
cruisecontrol.rb
cldc
perl5.12
change-management
image-capture

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App