android


ImageView not keeping state when screen rotates in Android


Consider a layout has one EditText and one Image View. We type something in EditText and select an image from Gallery and attach the image to ImageView. After that we rotate the screen, the imageview will lose its view but the EditText will keep its state.
Use below line in your manifest file of activity which has imageview.
android:configChanges="orientation"
android:screenOrientation="sensor"

Related Links

Android Studio Structural Search Class Constructors No of parameters
Rebrending for Android app
Android add aar file as module library
how to insert imageview to custom xml shape android
Cordova Capture Video in WebView
AudioManager.isMusicActive() returning false with headset plugged-in
How can I return a value to a HeadlessJSTask?
Android Currency - java.lang.NumberFormatException: For input string: “099 ”
Button inside listview clickable after few seconds
Gradle error :app:processDevDebugManifest FAILED when added <supports-screens>
Running Calabash Android Test in Emulator via Jenkins Pipeline
Android multiple request for real time data
linking against .so files in a .aar file using android gradle experimental
Unity3D Android dont run
I want some help in Reverse Engineering on apk [on hold]
Multiple recyclerview header

Categories

HOME
grok
fabricjs
merge
c99
google-spreadsheet
datastore
swt
jelastic
entity-framework-core
web-hosting
nuget-package
discrete-mathematics
p2p
openstreetmap
project-intu
package-managers
wolframalpha
connector
ag
href
fable-f#
android-sharedpreferences
flooding
progress-bar
angular-translate
tizen-tv
vex
anki
dm-script
ideascript
health-monitoring
levenshtein-distance
dcmtk
wmp
avcapturedevice
android-checkbox
berkeley-db-je
ntvs
serde
chai-as-promised
configurationmanager
posixct
azure-cli
boxing
subnet
css-transforms
django-1.10
node-request
hadoop-2.7.2
ziparchive
burrows-wheeler-transform
x-tag
synonym
refinerycms
stream-processing
beanstalk
realsense
directdraw
forwarding
poppler
mod-proxy
vacuum
graphics2d
mirror
botan
alloy-ui
mraid
actionfilterattribute
dbaccess
cosine-similarity
iiop
unix-socket
verold
reflector
jquery-slider
ora-06550
oocss
scmmanager
listitem
josql
apache-commons-dbutils
node-redis
workflow-services
xcelsius
multiplatform
clrstoredprocedure
cuteeditor
feasibility
java1.4
wcf-proxy

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