spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

List View with web view childs not working properly


In your case the problem is with your adapter. There is a quick fix :

Do not use the convertView from the getView() method in your adapter.

Replace this :

    @Override
    public View getView(int position, View view,
ViewGroup parent) {
    ViewHolder holder;
    if (view != null) {
        holder = (ViewHolder) view.getTag();
    } else {
        final LayoutInflater mInflater =
(LayoutInflater)
getContext().getSystemService(Activity.LAYOUT_INFLATER_SERVICE);
        view =
mInflater.inflate(R.layout.item_drawer_contracts_list,
parent, false);
        holder = new ViewHolder(view);
        view.setTag(holder);
    }
   }

with this:

    @Override
public View getView(int position, View view,
ViewGroup parent) {
    View newView;
    ViewHolder holder;
    if (view != null) {
        holder = (ViewHolder) newView.getTag();
    } else {
        final LayoutInflater mInflater =
(LayoutInflater)
getContext().getSystemService(Activity.LAYOUT_INFLATER_SERVICE);
        newView =
mInflater.inflate(R.layout.item_drawer_contracts_list,
parent, false);
        holder = new ViewHolder(newView);
        newView.setTag(holder);
    }

Caution this is a quick fix , there must be a better way.


Categories : Android

Related to : List View with web view childs not working properly
CSS - Select all childs except the first
Use :not(:first-child) .chapter p:not(:first-child) { color: red; } <div class="chapter"> <p>chapter 1, paragraph 1</p> <p>chapter 1, paragraph 2</p> <div class="section"> <p>chapter 1, section 1, paragraph 1</p> <p>chapter 1, section 1, paragraph 2</p> </div> </div> <div class=

Categories : CSS
Function Not Working Properly
Function calls in ctypes return an int by default. You will need to specify the restype of your library function. Try the following: from ctypes import CDLL, c_char_p interfaceLib = CDLL('Shared_Lib/bin/Library/libShared_Lib.so') interfaceLib.test() str1 = "H" str2 = "I" interfaceLib.concatString.argtypes = [c_char_p, c_char_p] interfaceLib.concatString.restype = c_char_p text = interfaceLib.co

Categories : Python
Strpos() not working properly
Change: if(null != strpos($file, $email)) to: if(false !== strpos($file, $email)) This is because the strpos could be zero so you need to test for false. I would also see the comment Fred -ii- made on the question. He makes a very good point.

Categories : PHP
Session is not working properly in jsp
One thing is important the sendRedirect() should be the last command to response. response.addHeader("cache-control","no-cache"); response.sendRedirect("index.jsp"); In the index.jsp, if it's a protected resource, you should redirect to a login page if not a valid user_name in session. String user_name = (String)session.getAttribute("user_name"); if (user_name == null) response.sendRedirect("

Categories : Jsp
jqx validator not working properly
I was not able to find the appropriate solution for the problem.that is the correct action required.But i have solved it by using some other way. $('#test').jqxValidator('hide'); test is my div that contains the jqxvalidator. so on action of input box the above function is called.

Categories : Jquery
Recently Add
Making an App that requires constant current location
Android application lacking debug information in Android Studio
how to fetch value of JsonResponse in android?
How to add spinner with multiple selection and show it in edittext?
How to set image to ImageView from ArrayList in android?
Cant access SDK manager on Android Studio 0.8.14
Android Real Time Location Tracking
Android TexttoSpeech Override other sounds
Using ShareActionProvider with Button in Layout
in android native, Mediacodec.dequeueInputBuffer don't return
How to create nexus 6 emulator in android studio
How to Setup OnGoing Notification?
How to Integrate fingerprint lock in Android
How can I set the LayoutParams of an View Programmatically?
Android L (5.0) does not search native libraries in “armeabi” or "armeabi-v7a" folder (UnsatisfiedLinkError) in eclipse
Where to format data from a JSON Object
wifi connectivity changed broadcast receiver repeats multiple times
Null Pointer Exception in Cursor Adapter
To open app chooser dialog
how to set textcolor defined by an android style as the background color?
want to bulid attendance tracking system with gps lattitude and longitude
Android GCM: retrieve device registration id
How to get list selected item in edittext?
How to draw Borders for Custom Views in Android?
Can I draw alpha using just one bitmap?
unable to set the edittext value to textview based on position
Define a Custom EditText
How an Android native executable accept external socket connections?
What is the difference between Fragment.isVisible() and isVisibleToUser
Android Virtual Device install Google APIs Intel Atom
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.