image-gallery

Android: How to create a Facebook like images gallery grid?

梦想的初衷 提交于 2019-11-29 04:14:04
问题 I'm trying to implement a facebook like, gallery grid, where items have different sizes: I was trying to use different libraries/solutions but for now without success: I tried to use AsymemetricGridView. But the problem with this implementation is that there are empty dead spaces left in the grid after going throw the adapter. I also thought of using the StaggeredGridLayoutManager and a RecycleView , but items, in this case, don't have equal or half sizes to other items as it implemented in

How to make a 2-dimension image gallery with both horizontal and vertical scrolling?

梦想与她 提交于 2019-11-28 11:23:20
I'm new to Android and I want to make an image gallery where each column is a category, and users can scroll both vertically and horizontally. I found a useful post about how to display list of images here . I'm wondering if it's possible to nest lists of image inside of a gallery view? ahodder Place a gallery into a GridView with one column and column size set to fill the parent view (or something to that effect). Place a gallery into the GridView and set its height in LayoutParams to the height of the drawables/views you want to occupy them. All you need to do then is when one gallery is

Vertical align block level element inside a block level element

元气小坏坏 提交于 2019-11-28 06:08:42
问题 I need to center align images (variable width and height) inside block level elements of fixed width and height. The css markup looks something like this: <div style="float: left; width: 100px; height: 100px;"><img src="yada" width="50" height="60"></div> <div style="float: left; width: 100px; height: 100px;"><img src="yada" width="60" height="50"></div> <div style="float: left; width: 100px; height: 100px;"><img src="yada" width="75" height="75"></div> The point is, that the images align

Android: how to get all folders with photos?

余生长醉 提交于 2019-11-28 04:47:47
I trying to make a gallery. I know how to get all photos and to show them in grid view. But can someone explain how to get and show folders(with photos)? i've got error after launching my apk file. look plz at my xml files, may be something wrong here??? gridview.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <GridView android:id="@+id/gridView" android:layout_width="fill_parent" android:layout_height="wrap_content

Android Cover Flow gallery and remove space between

谁说我不能喝 提交于 2019-11-28 04:15:30
问题 I want to implement cover flow view as shown below image. I also tried with cover flow but cant achieved perfect view as show in image. Reduce the space between the items. this.fancyCoverFlow.setSpacing(-90); I tried with this line and its working but other problem occur as shown below image not getting same spec to left and right . And scroll from left to right working fine but scroll from right to left not in correct way. Updated : Try with this code 回答1: Hey you can try: FancyCoverFlow and

How to make a 2-dimension image gallery with both horizontal and vertical scrolling?

淺唱寂寞╮ 提交于 2019-11-27 06:09:40
问题 I'm new to Android and I want to make an image gallery where each column is a category, and users can scroll both vertically and horizontally. I found a useful post about how to display list of images here. I'm wondering if it's possible to nest lists of image inside of a gallery view? 回答1: Place a gallery into a GridView with one column and column size set to fill the parent view (or something to that effect). Place a gallery into the GridView and set its height in LayoutParams to the height

Android: how to get all folders with photos?

南楼画角 提交于 2019-11-27 00:39:51
问题 I trying to make a gallery. I know how to get all photos and to show them in grid view. But can someone explain how to get and show folders(with photos)? i've got error after launching my apk file. look plz at my xml files, may be something wrong here??? gridview.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >

Android get image from gallery into ImageView

℡╲_俬逩灬. 提交于 2019-11-26 12:14:06
I'm trying to add a photo from galery to a ImageView but I get this error: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/1 }} to activity {hotMetter.pack/hotMetter.pack.GetPhoto}: java.lang.NullPointerException This is my code: Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent,"Select Picture"), SELECT_PICTURE); } Bitmap bitmap=null; public void onActivityResult(int requestCode, int

How to get the Correct orientation of the image selected from the Default Image gallery

主宰稳场 提交于 2019-11-26 12:11:33
I have gone through some of the links to get the correct image orientation of the image selected from the default image gallery to be worked standard in all devices the exif tag always returns 0. EXIF orientation tag value always 0 for image taken with portrait camera app android Exif orientation tag returns 0 Exif data TAG_ORIENTATION always 0 http://mobisocial.stanford.edu/news/2011/08/rotating-images-in-android/ How to get an exact solution that will work on all devices? If the image(photo) was taken by a program made by you, you must set Parameters.setRotation with the correct rotation

Select multiple images from android gallery

自古美人都是妖i 提交于 2019-11-26 11:10:32
So basically what i am trying to achieve is opening the Gallery in Android and let the user select multiple images . Now this question has been asked frequently but i'm not satisfied with the answers. Mainly because i found something interesting in de docs in my IDE (i come back on this later) and thereby i don't want to use a custom adapter but just the vanilla one. Now my code for selecting one image is: Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent,"Select Picture"), 1); Now People on