gallery

Android gallery with caption

荒凉一梦 提交于 2019-11-28 09:34:29
I have been following the gallery example here: http://developer.android.com/resources/tutorials/views/hello-gallery.html and adding a text to show up under the image from here: http://mytelcoit.com/2010/02/programming-android-create-icon-with-text-using-gridview-and-layout-inflater/ However, I am getting this error from LogCat 06-22 17:21:02.193: ERROR/AndroidRuntime(1444): FATAL EXCEPTION: main 06-22 17:21:02.193: ERROR/AndroidRuntime(1444): java.lang.ClassCastException: android.widget.Gallery$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams 06-22 17:21:02.193: ERROR

“The type Gallery is deprecated”, Whats the best alternative?

巧了我就是萌 提交于 2019-11-28 09:04:27
I was really surprised that such a Widget gets deprecated. I want a simple gallery that scrolls left and right, shows a picture on the whole Activity screen, and most important is that you cant swipe more than 1 image in any direction, even if the scroll speed is fast it changes to the next image. So which Widget should I use? Or should I use a simple ImageView and handle all the swipes and add an animation? It states in the docs: This widget is no longer supported. Other horizontally scrolling widgets include HorizontalScrollView and ViewPager from the support library. HorizontalScrollView

Layout theory for a thumbnail gallery [closed]

痞子三分冷 提交于 2019-11-28 08:50:26
I am in the process of creating a thumbnail gallery exactly like this ( http://tmv.proto.jp/#!/destroyftw ). Currently I am trying to work out the theory for the scripting. The actual script for the webpage is here ( http://tmv.proto.jp/tmv_v3.js ). As I am relatively new to javascript this has caused me some frustration. I have already tried using plugins such as masonry and isotope, but they are unable to handle massive amounts of images. Not to mention that infinite scroll doesn't work with filtering, which I need. So I decided to try my hand at coding one myself. The idea is that user

jQuery: Every 5 seconds, automatically click on next image in a list?

微笑、不失礼 提交于 2019-11-28 08:36:20
问题 I have a given list of images, presented as thumbnails: <ul id="thumbs"> <li class="small-img"><img src="images/feature1.png" /></li> <li class="small-img"><img src="images/feature2.png" /></li> <li class="small-img"><img src="images/feature3.png" /></li> </ul> I use jQuery so that, when the user clicks on an image, it replaces the featured image in a div (which I got from another StackOverflow Ask): $('#thumbs img').click(function(){ $('div.feature-photo img').hide().attr('src',$(this).attr(

How to resize an image i picked from the gallery in android?

牧云@^-^@ 提交于 2019-11-28 08:30:00
I am building an android where. Inside of one activity I have an image button. When I click on it the gallery opens up and I can choose an image. Then I set that image as the new image for the image button. The problem is the image appears way too big inside my activity. How can I make it fit into my image button? protected void onActivityResult(int requestCode, int resultCode, Intent imageReturnedIntent) { super.onActivityResult(requestCode, resultCode, imageReturnedIntent); switch(requestCode) { case SELECT_PHOTO: if(resultCode == RESULT_OK){ Uri selectedImage = imageReturnedIntent.getData()

Working on Creating Image Gallery in JavaFX. not able to display image properly

▼魔方 西西 提交于 2019-11-28 06:05:14
I am creating image gallery using javafx. I found many things on internet regarding this but not able to get any suitable help for this issue. I have to create one image gallery like picasa viewer. all the images is in thumbnail view in my image view and after that when I select image that is in pop-up viewer. I did it some code for that but I didn't get proper output. All the images from the folder redraw from the same co-ordinates. Below is my code and output. @Override public void initialize(URL url, ResourceBundle rb) { String path = "/home/ubuntu/eclipse with liferay/Desktop/imagetest/";

how to disable fling in android gallery

笑着哭i 提交于 2019-11-28 05:35:59
问题 I have a custom gallery in my app and after doing some testing I've decided that I don't want the gallery to navigate with finger swipes. I've set up a left and right button to control it instead. Now I want to figure out how to disable the onFling method. I've tried this.setEnabled(false); which didn't work, and tried this.setClickable(false); which didn't work... also my overridden onFling() method has everything except the return(true); commented out.... not sure what else to try! Any

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

external allocation too large for this process

人走茶凉 提交于 2019-11-28 04:18:55
问题 I posted a question last night about this issue, but I dont think I explained it well enough to get the proper help. So basically, I have an application where you can press a button which will let you select an image from your gallery and show it in an ImageView I have displayed in the app. This all works great. However, when I press the button again and choose a different picture the app force closes. UPDATE Now, if I take a photo from my downloads photo folder in the gallery it works fine,

Android ViewPager with previous and next pages visible?

旧时模样 提交于 2019-11-28 02:55:47
I am currently building a horizontal gallery of videos. I'd like to make something like that with only one video centered and part of previous and next videos: I first opted for a Gallery but its limitations made me look for something else. I'd like to show a page indicator and it is quite difficult to implement using a Gallery. The second option was to go for a ViewPager from Android Compatibility library. I found a way to implement a page indicator over it. But now, how to partly show left and right pages? I used a negative page margin to partly show the next and the previous pages. The