Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public View getView(int position, View convertView, ViewGroup parent) {
- MenuList item = menuItemList.get(position); // getItem(position);
- View view = convertView;
- // if (convertView == null) {
- view = inflater.inflate(resourceid, null);
- // view.getBackground().setAlpha(15);
- synchronized (view) {
- ImageView imgBg = (ImageView) view
- .findViewById(R.id.ivCotnentItem);
- // view.setLayoutParams(mParam);
- view.setPadding(5, 0, 5, 0);
- if (position >= imageList.size()) {
- imageList.add(Utils.getImageFromApplicationFolder(
- thisContext, item.bgImage, null));
- }
- imgBg.setImageDrawable(imageList.get(position));
- imgBg.setLayoutParams(mParamImage);
- TextView tvCaption = (TextView) view
- .findViewById(R.id.tvCaption);
- tvCaption.setText(item.caption);
- if (!textColor.equals(""))
- tvCaption.setTextColor(Color.parseColor("#" + textColor));
- // tvCaption.setTypeface(tfItemFont);
- tvCaption.setTextSize(20);
- // tvCaption.setPadding(0, 0, 0, 5);
- // Log.v("tvCaption" + tvCaption.getText(), "log1");
- return view;
- }
- }
Add Comment
Please, Sign In to add comment