w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Lightbox script (view.js) doesn't work with tumblr infinite scroll
OK so basically your problem is that view.js doesn't auto-update after AJAX calls, which kind of sucks. You can force the update of view.js like this: new View( $('.view') ); You can test this by pasting it into the console after you scrolled all the way down, and now the images will work fine. However, you have to find the way to run it every time the DOM updates after the infinite scroll kicks in. So let's do this in another way. Add this line of code somewhere in your theme: $(document).on('click', 'a.imageView', function(e){ e.preventDefault(); $('.viewer').remove(); //This is to remove any previous viewers var s = $(this).attr('href'); var v = new View ($('.imageView')); v.open(); v.show(s); }); What this code does is creates a listener on the whole

Categories : Javascript

Why my list view doesn't scroll in android?
I know I'm posting this 2 years after the OP but it might help someone coming across the same problem. I had this problem before and I fixed it using the following in my xml: <ListView android:id="@+id/lv_LVID" android:layout_width="wrap_content" android:layout_height="0dp" android:layout:weight="1"> </ListView> If it still doesn't scroll, try removing any <ScrollView> which you might have as an outer layout.

Categories : Android

Android Studio proguard doesn't work
I'm not sure because I didn't use Android Studio to build a release apk yet, but try to look at this http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Running-ProGuard You probably need to configure gradle to use proguard, considering that android studio is using it to build

Categories : Android

Phonegap 3 doesn't work with Android Studio
Upon must digging I found how to get past this: phonegap run android Its as simple as that. [Edit] You need to add platform to work with, whilst the documentation is so very very poor: C:varwwwsexdiaries.co.uksexdiaries>phonegap build android [phonegap] detecting Android SDK environment... [phonegap] using the local environment [phonegap] adding the Android platform... [warning] missing library cordova/android/3.0.0 [phonegap] downloading https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=snapshot;h=3.0.0;sf=tgz... [phonegap] compiling Android... [phonegap] successfully compiled Android app Then you are good to go, doing an import with Andriod Studio will also work now as you have a project to work with :) Fantastic.

Categories : Android

Scroll position in Text View object on detail view doesn't reset when returning
Since you are reusing a HardlyWorkingDogsDetailViewController, this behavior makes sense. If HardlyWorkingDogsDetailViewController is light weight enough, there really isn't any need to reuse it. Simply reinstantiating it everytime should fix your problem: self.detailViewController = [[HardlyWorkingDogsDetailViewController alloc] initWithNibName:@"HardlyWorkingDogsDetailViewController" bundle:nil ]; Dog *dog = self.sortedDogDictionaryArray[indexPath.row]; self.detailViewController.dogName= dog.dogName; self.detailViewController.dogLicense = dog.licenseString; self.detailViewController.dogScrollingInfo = dog.whatMakesDogSpecial; self.detailViewController.dogPhoto = dog.dogPhoto; [self.navigationController pushViewController:self.detailViewController animated:YES]; Although, having not

Categories : Iphone

hiding soft input in android app causes scroll view to scroll to bottom
You should only need to call hideSoftInputFromWindow() once, and try using InputMethodManager.HIDE_NOT_ALWAYS instead of "0" for the flag. EDIT: Try adding android:windowSoftInputMode="adjustPan" to your manifest.

Categories : Android

scroll to bottom of the div doesn't work
Assuming you are actually calling merrmesazhet() and that you are testing on IE>=8 as lower versions don't support scrollHeight. Then your main issue is the use of setTimeout which is essentially calling ereja every second and doing nothing. Indeed you do not even need the JS timer - you are using jQuery which supports a callback in it's load function (which executes once on a successful load rather than repeatedly). Your if-statement in it's current form will always evaluate to false as it isn't within the function executed on the timer anyway. Something like this may work for you: var oldscrollHeight = $("#messages")[0].scrollHeight; function merrmesazhet(){ $('#messages').load( 'nxirr_mesazhet.php?room=<?php echo urlencode($dhoma24); ?>', function(){

Categories : Javascript

Scroll in design view for metro style app in Visual Studio 2012
You can use DesignHeight & DesignWidth property, if you want to stretch the current page in design mode. <Page x:Class="App1.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:App1" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="1768" d:DesignWidth="2366"> <!-- Other XAML Controls --> </Page>

Categories : C#

Animated scroll-to-item in UICollectionView doesn't always work
With some help from @NicholasHart, I think I understand the problem. Trying to reloadData and then performing an animated scroll to a new position makes sense (and seems to work) as long as the reload makes the collection bigger. When reloading shrinks the collection, however, the starting point for an animated scroll might not exist anymore. This makes animation troublesome. For example, if you start with the view scrolled all the way to the right (so that your rightmost item is visible) and then reload and lose half of your items, it's not clear what the starting point for the animation should be. Trying to do an animated scroll in this situation results in either a no-op or a jump to a very strange position. One solution that looks reasonably good is to only animate if the colle

Categories : IOS

Table view doesn't scroll when I use gesture recognizer
Your gesture is probably preventing the scroll view gesture from working because by default only 1 gesture can be recognising at a time. Try adding yourself as the delegate of your gesture and implementing: - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { return YES; } self.slidingViewController.panGesture.delegate = self; also, add <UIGestureRecognizerDelegate> to the list of protocols you implement

Categories : IOS

How to scroll a scrollable layout in the Android Studio?
According to this change set: https://android-review.googlesource.com/#/c/61089/ , there is a fix for this coming soon. I'd hazard a guess you'll see the fix in 0.1.7.

Categories : Android

Android list view inside a scroll view
Do NEVER put a ListView inside of a ScrollView! You can find more information about that topic on Google. In your case, use a LinearLayout instead of the ListView and add the elements programmatically.

Categories : Android

Posting a runnable to a View that invalidates the View sometimes doesn't work
Try this : setBitmap() like this : runOnUiThread(new Runnable() { @Override public void run() { thumb.setImageBitmap(b); } });

Categories : Android

ActiveX doesn't work with Visual Studio
It seems like your inf file is not correct. opening file from file system is different from opening it through localhost for reference please check this link: ActiveX not working on client machine

Categories : C#

AJAX chat scroll If has more than 20-30 messages, scroll to bottom will work if user didnt scroll up
Like this: http://jsfiddle.net/eP24K/2/ (see html/css to go along with below code) function insertLine() { var scrollPosition = $("#chat").scrollTop(); var scrollHeight = $("#chat")[0].scrollHeight; //console.log(scrollPosition,scrollHeight); $("#chat").append("<div>James: Hello World!</div>"); if (scrollPosition+$("#chat").height() === scrollHeight) { $("#chat").scrollTop(scrollHeight); } setTimeout(function(){ insertLine(); }, (Math.floor(Math.random()*1000))) } insertLine(); The code is in no way optimized, it's just concept.

Categories : Javascript

Android Studio: Android Manifest doesn't exists or has incorrect root tag
I ran into a similar problem. Looks like my .../src directory for whatever reason moved under my .../lib directory. I moved it out of the /lib directory. Now both /lib and /src are at the same level. After a couple of clean rebuilds and restarts of Android studio everything is back to normal. My emulator started up fine. You might want to check your directory structure. Compare the directory structure with a working project. You might be able to see the difference.

Categories : Android

Use Scroll View In Android
This is the way to add scroll view: <ScrollView android:id="@+id/SCROLLER_ID" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scrollbars="vertical" android:fillViewport="true"> <com.qualcomm.QCARSamples.VideoPlayback.JustifiedTextView android:id="@+id/text_content" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="20dp" android:layout_marginBottom="80dp" android:layout_below="@id/info_frame_text" android:textColor="#ff000000" android:layout_marginLeft="40dp" android:layout_marginRight="20dp" android:visibility="gone"/> </ScrollView>

Categories : Android

How to use Scroll View In Android
if you are display your scrollview in Horizontal Linear Layout and given a weight to scrollview then set width of Scrollview to "0dp" android:layout_width="0dp" and if it is vertical then android:layout_height="0dp" also set your main LinearLayout height to fill parent

Categories : Android

NumberPicker on ScrollView doesn't scroll on Android 4.0.4
I know this is an old question, still... This works for me: numberPicker.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(final View v, final MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_MOVE && v.getParent() != null) { v.getParent().requestDisallowInterceptTouchEvent(true); } if (event.getAction() == MotionEvent.ACTION_UP) { v.performClick(); } v.onTouchEvent(event); return true; } });

Categories : Android

Android ScrollView doesn't scroll when the keyboard is up
Check out this thread: Android soft keyboard covers edittext field I think that it will solve your problem. Good luck!

Categories : Android

Android: Emulator in Android Studio doesn't start/launch
Well, Android Studio is waiting for you to start the virtual device. You can do that from AVD Manager --> 'Select the device you chose in Android Studio' --> Start. I hope this answers your question

Categories : Android

Android Phonegap Scroll not work
You have run into an android bug. Overflowing DIVs inside BODY tag wont allow you to scroll. Same bug was there in iPhone (iOS < 5), but there atleast you could use two fingers and scroll. However there are workarounds for it. You can use third party libraries such as iScroll, touchScroll ... iScroll will disable your inputs for the div which you have applied scroll to. If its a simple paragraph use iScroll. Reference

Categories : Android

SketchFlow Template for Windows Phone doesn't work with Blend for Visual Studio
I've also posted to that thread with a solution. Which I will also add here. I've posted a fix for using this template with SketchFlow that ships in Blend/VS2013 (may work in 2012 but I didn't test). Please read my instructions I've tried to be a clear as possible. You WILL need to download and install the SketchFlowWP7.zip file from this codeplex (I also provide a copy in the link below). Extract SketchFlowWP7.zip and run the SketchFlowWP7.msi to install. When it prompts where to install choose the path to your copy of Blend. For instance for VS2013 it's default path is "C:Program Files (x86)Microsoft Visual Studio 12.0Blend" Next you will need to navigate down into the following folder "C:Program Files (x86)Microsoft Visual Studio 12.0BlendProjectTemplatesenCSharpWindowsPhone" Here y

Categories : Misc

Scroll layout in web view android
Add this property in your activity <activity android:name="YourActivity" android:screenOrientation="portrait" android:windowSoftInputMode="stateHidden|adjustResize" />

Categories : Android

Copying single iPhone view controller to iPad view controller gives lock icon/ doesn't work
@koregan's advice has worked for me. 1) Duplicate your iPhone-Storyboard and rename it MainStoryboard_iPad.storyboard 2) Open this file any text editor. 3) Search for targetRuntime="iOS.CocoaTouch"and change it to targetRuntime="iOS.CocoaTouch.iPad" 4) Now save everything and reopen Xcode -> the iPad-Storyboard contains the same as the iPhone-file but everyting could be disarranged

Categories : IOS

How to navigate/view/edit android platform sources (AOSP) using Intellij IDE (Android Studio preferably)?
Well, first you have to install Android studio from here: http://developer.android.com/sdk/installing/studio.html Then, if you already have a project in Eclipse here is how you export it to Android Studio: http://developer.android.com/sdk/installing/migrate.html

Categories : Android

Disable gallery scroll view on Android
override the onTouchListner for your gallery gallery.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { return true; } });

Categories : Android

How to add vertical scroll bars to view in android?
I think you must create a scrollview, then add a vertical layout in that scrollview. After that, you can add textview, button or anything you want. <ScrollView android:id="@+id/scrollView1" android:layout_width="match_parent" android:layout_height="wrap_content" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <TextView android:id="@+id/act_test_description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop

Categories : Android

Scroll View is not working properly Android
I've had a look at the layout XML and have found your problem. In one layout you are trying to define both scrollviews and their contents. You don't want to be doing this. I would also suggest you don't want a scrollview, but a listview. Take a look at This tutorial on how to create listviews with custom contents and create an arrayadapter to populate it with data. This is an example of how your main layout could look: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:id="@+id/llHeader" android:orientation="vertic

Categories : Android

Linq doesn't work in MVC View
Try casting it to IEnumerable<T>, like this: @((IEnumerable<string>)ViewBag).linkList.First() or to List<string>: @((List<string>)ViewBag).linkList.First() The ViewBag is a dynamic object... More specifically, an ExpandoObject. I'm guessing that the dynamic binder is having difficulty identifying the original type.

Categories : C#

Scroll down whole activity with one element and a list view in Android
Add the "fixed height layout" as a header to your ListView with addHeaderView: listView.addHeaderView(R.layout.fixedHeightLayout);

Categories : Java

how to add multiple child in horizontal scroll view in android
You have to put one layout as a scrollviews child, then put every other views in that child and it should work fine. Like this way: <HorizontalScrollView android:layout_width="wrap_content" android:layout_height="fill_parent" android:id="@+id/horizontalScrollView"> <LinearLayout ... > ... insert your views in here </LinearLayout> </HorizontalScrollView>

Categories : Java

How to show scroll pull in list view in android?
It is sectioned index for the listview. See this Sample and refer this SO Answer

Categories : Android

Android List View Scroll Checkbox state
What you should do is you should track the last checked item, and in the ListView's onItemClickListener, setChecked(true); the current item and setChecked(false); the last one; something like this: ListView myListView = (ListView)findViewById(/* id of listView */); CheckBox lastChecked = null; myListView.setOnItemClickListener(new onItemClickListener( @Override onItemClick(AdapterView arg0, View childView, int pos) { if(lastChecked != null) { lastCheckedBox.setChecked(false); } lastChecked = (CheckBox)((ViewGroup)childView).findViewById(/* id of checkBox */); lastChecked.setChecked(true); } ));

Categories : Android

laravel 4 view::share doesn´t work
You could create a route filter which shares the username to the view. Now you can apply this filter to every route, or route group to use it in your views. Route::filter('shared.user', function() { $user = ''; if(Auth::check()) { $user = Auth::user()->username; } View::share('user', $user); }); Route::get('hello', array('before' => 'shared.user', function() { return View::make('hello'); })); Route::group(array('before' => 'shared.user'), function() { // routes which show the username });

Categories : PHP

wrap_content doesn't work on list view
I want to add little comment, but my reputation isn't enough to. And my opinion could be wrong. Karakuri's answer on CommonsWare's links is exactly right answer i think. and this google guy said why we shouldn't use wrap_content on ListView. http://www.youtube.com/watch?v=wDBM6wVEO70&t=40m40s And about your comment, my opinion is that, ScrollView's height is probably wrap_content with scroll vertically. If then, ScrollView's height will be adapter's height or ImageView's height. Bcuz, ScrollView doesn't care how many ListItem should be displayed. It only check how many view or groupview is exist inside of itself. And I also recommend you don't use ListView inside of ScrollView (or opposite). Because, both view have to check touch-move event to scroll their view. If you mix it, andr

Categories : Android

Don't work git in Android Studio
you need to install git on your computer first. in my case on Ubuntu I installed it with: sudo apt-get install git-core in terminal and followed by : git config --global user.name "NewUser" git config --global user.email newuser@example.com for configurations. That's it and now it works perfectly.

Categories : GIT

Android Studio doesn't see my ZTE Blade III device
Have you opened up the: /path/to/android/sdk/tools/android Android SDK download tool and installed "Google USB Driver" under the "Extras" folder? (Required for Windows. Screenshot from Linux computer)

Categories : Android

Android Studio doesn't create new project
When you are creating a new project, you have to select "Android Application Project" (File --> New--> Android Application Project) instead of directly creating Android Activity. Once you have created a new "Android Application Project", you will find all the required files & then you can go on creating "Blank Activities" (File --> New --> Others--> Android --> Android Activity --> Blank Activity).

Categories : Android

Android-Universal-Image-Loader doesn't keep loaded images on scroll in gridview
you must use the Adapter and then implement the ViewHolder to make the Flow of scrolling smooth and effective. provide tag to images w.r.t to their positions provided in getView() and then there will be no problem.

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.