I think that HTML might be a solution. But how can I achieve this:
with multiple screens sizes support?
I have found this library: FlowTextView
But it doesn't provide the way to put images inside text, like html does. And I also want to drag/resize image's inside text :D
Important to keep images on the same place on multipile devices.
So. What is the solution? Must I go ahead with custom View?
What can you recomend?
Related
on my Activity i've got on each side (on the right/on the left) a constrain Layout (100dp width). Between those gridviews i have a Gridlayout. This grid i fill with the help of an adapter. Now it contains 32*52 squares which contain a black/white image. With buttons placed on the constrain layouts i change the colour of choosen squares. But if i try this on several devices, this way is not realy performant and quite laggy. Is der a better way to do this? How? I found something on Bitmaps and canverals.. would this be better? How should i use this? Can someone recommend a tutorial? Or what other ways of achieving this exists?
Thanks a lot!
As all we know, RecyclerView enhance flexibility and also improve smoothness. So you can use RecyclerView Or RecyclerView with CardView.
And instead of using Bitmaps I would recommend you to use Glide
Library to Show Images
You can use Glide library for display image.So just add it in
build.gradle(Module App)
compile 'com.github.bumptech.glide:glide:3.7.0'
to set Images
Glide.with(context).load(image_path).into(imageView);
Note: image_path can be string, int resource, file or anything else bcoz Glide can load everything
Following are the tutorial links for RecyclerView with cardview:
link1: http://www.androidhive.info/2016/01/android-working-with-recycler-view/
link2: http://www.androidhive.info/2016/05/android-working-with-card-view-and-recycler-view/
In my apps i want to display images and text in three ways
ListView
GridView
FullScreen
i have 500+ images and text that i parse using JSON and store into SQLite.
I know how to create ListView & GridView but problem is I don't know how to create the custom layout.
I have image but due to my low reputation i am not able to post image.
I try to explain what i need.
I need custom fullscreen layout that has 2 buttons, one on the left and other on the right and between those 2 buttons I need Imageview that display the fullscreen image.
thanks in advance
Use UniversalImageLoader library, as it has all the modes you need. It also supports caching and lazy load, which you will definitely need on 500 images.
I am new to android.I want to insert a pictue (which is in c: drive) using image view control. pls give some idea related to it.
this covers that in detail. let us know if you have specific questions.
http://developer.android.com/guide/topics/graphics/2d-graphics.html#drawables-from-images
Displaying an image in an ImageView is quite simple. Check out this family of files from API Demos:
ImageView1.java
image_view_1.xml
ImageView1.java is quite simple: it just loads the xml layout file. You can change the #drawable/... references in image_view_1.xml to point to your own resources and see the effects you get with different styles of ImageView.
I recommend exploring the API Demos code, as it covers a large portion of the Android framework and will give you an idea about what is possible.
I want to Split Single Image in Four Pieces and Display it Like Single Image. How can achieve it. I split image through bitmap but it is not fixing in like one single image.
I am trying to achieve the same thing. I think this can be done by Android APIs but I would need make more research before answering on that. All I know there is a Java way to that. It might help http://kalanir.blogspot.com/2010/02/how-to-split-image-into-chunks-java.html
Hey, I checked tons of tutorials and guides but somehow can't find it...
I need to include multiple images in my Android app. It's like an image viewer/slideshow.
Currently I switch between pictures from /drawable-mdpi dir simply with ImageView and adapter, using gestures to left/right. Works but nothing impresive :/
Basically I could use something like Android (2.1) gallery with some image show animation.
1st question: what's the best way to include many (50-100) fullscreen images in App?
2nd: is it possible to use ViewFlipper animations directly to images? or do i have to somehow populate Views?
1st question: what's the best way to include many (50-100) fullscreen images in App?
Any approach that only involves a couple of images being in memory at one time. Full-screen images are large; you will run out of RAM.
2nd: is it possible to use ViewFlipper animations directly to images? or do i have to somehow populate Views?
You would have to use ImageViews as the children of the ViewFlipper.
I would recommend sticking with what you have and just apply animations.