package adullact.publicrowdfunding.controller.project.details;
-import adullact.publicrowdfunding.R;
-import adullact.publicrowdfunding.model.exception.NoAccountExistsInLocal;
-import adullact.publicrowdfunding.model.local.cache.Cache;
-import adullact.publicrowdfunding.model.local.callback.HoldToDo;
-import adullact.publicrowdfunding.model.local.ressource.Account;
-import adullact.publicrowdfunding.model.local.ressource.Project;
-import adullact.publicrowdfunding.model.local.ressource.User;
-import adullact.publicrowdfunding.model.local.utilities.Share;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
+import adullact.publicrowdfunding.R;
+import adullact.publicrowdfunding.model.exception.NoAccountExistsInLocal;
+import adullact.publicrowdfunding.model.local.cache.Cache;
+import adullact.publicrowdfunding.model.local.callback.HoldToDo;
+import adullact.publicrowdfunding.model.local.ressource.Account;
+import adullact.publicrowdfunding.model.local.ressource.Project;
+import adullact.publicrowdfunding.model.local.ressource.User;
+import adullact.publicrowdfunding.model.local.utilities.Share;
+import adullact.publicrowdfunding.model.local.utilities.Utility;
/**
* @author Ferrand and Nelaupe
private Button m_website;
private Button m_call;
- //private ImageView m_illustration;
+ private ImageView m_illustration;
private ImageView m_avatar;
private Project projetToDisplay;
m_website = (Button) view.findViewById(R.id.website);
m_call = (Button) view.findViewById(R.id.phone);
- //m_illustration = (ImageView) view.findViewById(R.id.icon);
+ m_illustration = (ImageView) view.findViewById(R.id.icon);
m_avatar = (ImageView) view.findViewById(R.id.avatar);
} else{
this.getActivity().getSupportFragmentManager().beginTransaction().remove(this).commit();
}
-
return view;
}
}
public void displayInfo() {
- /*
+
if (projetToDisplay.getIllustration() != 0) {
m_illustration.setImageResource(Utility.getDrawable(projetToDisplay
.getIllustration()));
} else {
m_illustration.setImageResource(R.drawable.ic_launcher);
- }*/
+ }
if (projetToDisplay.getEmail() == null
|| projetToDisplay.getEmail().length() == 0) {