예제 #1
0
 @Override
 public View getView(int position, View convertView, ViewGroup parent) {
   if (convertView == null) {
     convertView = View.inflate(getContext(), R.layout.list_item_friend, null);
   }
   ImageView imageView = (ImageView) convertView.findViewById(R.id.imageview_image100);
   ImageLoader.getInstance()
       .displayImage(
           KnownUsers.getInstance().getUserFromId(getItem(position)).getPhoto100(), imageView);
   return convertView;
 }
예제 #2
0
    @Override
    public View onCreateView(
        LayoutInflater inflater,
        @Nullable ViewGroup container,
        @Nullable Bundle savedInstanceState) {

      userView = inflater.inflate(R.layout.activity_user, container, false);
      userId = Long.parseLong(getArguments().getString(EXTRA_USER_ID));
      user = KnownUsers.getInstance().getUserFromId(userId);

      fillFieldOnActivity();
      return userView;
    }
예제 #3
0
 private void initializeVariables() {
   userId = intent.getLongExtra(EXTRA_USER_ID, 1);
   knownUsersList.addAll(KnownUsers.getInstance().getAllKnownUsers());
   userActivity = this;
 }