WCT1002 / android-wheel

Automatically exported from code.google.com/p/android-wheel
0 stars 0 forks source link

Images space doesn't maintain in fairways wheel #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. when i set padding to image view it's effect to wheel sell
2.
3.

What is the expected output? What do you see instead?
vertical space should be proper  

What version of the product are you using? On what operating system?
4.4.4

Please provide any additional information below.

This is My Adapter Class

package com.android.golferGreen.Score;

import kankan.wheel.widget.adapters.AbstractWheelTextAdapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.android.golferGreen.R;

public class FairwaysWheelAdapter extends AbstractWheelTextAdapter 
{

    private int[] resourceList = { R.drawable.uparrow_scroll,R.drawable.left_hit_green,R.drawable.hit_green,R.drawable.right_hit_green,R.drawable.downarrow_scroll};
    public FairwaysWheelAdapter(Context context) {
        super(context,R.layout.fairways_layout);
        //setItemTextResource(R.id.fairways_name);
        // TODO Auto-generated constructor stub
    }

    @Override
    public View getItem(int index, View cachedView, ViewGroup parent) {
        View view = super.getItem(index, cachedView, parent);
        ImageView img = (ImageView) view.findViewById(R.id.symbol);
        img.setImageResource(resourceList[index]);
        return view;
    }

    @Override
    public int getItemsCount() {
        return resourceList.length;
    }

    @Override
    protected CharSequence getItemText(int index) {
        return null;
    }

}

Original issue reported on code.google.com by kishorej...@gmail.com on 5 Feb 2015 at 11:48

Attachments: