Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public View getView(int position, View convertView, ViewGroup parent) {
- View view = convertView;
- DashboardInfoHolder dashboardInfoHolder;
- if (view == null) {
- LayoutInflater inflater = (LayoutInflater) this.activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- view = inflater.inflate(R.layout.dashboard_infos_list_fragment, parent, false);
- dashboardInfoHolder = new DashboardInfoHolder();
- dashboardInfoHolder.listInfoItem = (LinearLayout) view.findViewById(R.id.listInfoItem);
- view.setTag(dashboardInfoHolder);
- FragmentTransaction transaction = this.fragmentManager.beginTransaction();
- transaction.add(dashboardInfoHolder.listInfoItem.getId(), this.fragments.get(position));
- transaction.commit();
- } else {
- dashboardInfoHolder = (DashboardInfoHolder) view.getTag();
- }
- return view;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement