Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images space doesn't maintain in fairways wheel #56

Open
GoogleCodeExporter opened this issue May 16, 2015 · 0 comments
Open

Images space doesn't maintain in fairways wheel #56

GoogleCodeExporter opened this issue May 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant