• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ProfilePictureView类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.facebook.login.widget.ProfilePictureView的典型用法代码示例。如果您正苦于以下问题:Java ProfilePictureView类的具体用法?Java ProfilePictureView怎么用?Java ProfilePictureView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ProfilePictureView类属于com.facebook.login.widget包,在下文中一共展示了ProfilePictureView类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: CustomViewHolder

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
public CustomViewHolder(View itemView) {
    super(itemView);
    this.txtView = (TextView) itemView.findViewById(R.id.listText);
    this.txtLocate = (TextView) itemView.findViewById(R.id.listLocate);
    this.txtName = (TextView) itemView.findViewById(R.id.name);
    this.proFile = (ProfilePictureView) itemView.findViewById(R.id.profile_picturefeed);
    this.smile = (ImageButton) itemView.findViewById(R.id.smile);
    this.sad = (ImageButton) itemView.findViewById(R.id.sad);
    this.comment = (ImageButton) itemView.findViewById(R.id.commentbtn);
    this.smileCount = (TextView) itemView.findViewById(R.id.smilecount);
    this.sadCount = (TextView) itemView.findViewById(R.id.sadcount);
    this.pic = (ImageView) itemView.findViewById(R.id.imagetest);
    this.commentView = (RecyclerView) itemView.findViewById(R.id.recycler_viewcomment);
    this.proFileCom = (ProfilePictureView) itemView.findViewById(R.id.profile_picturecommentself);
    this.send = (Button) itemView.findViewById(R.id.commentsendbtn);
    this.txtComment = (EditText) itemView.findViewById(R.id.commenttext);
    this.rl = (RelativeLayout) itemView.findViewById(R.id.relative);
    this.commentCount = (TextView) itemView.findViewById(R.id.commentcount);
    this.setting = (ImageButton) itemView.findViewById(R.id.setting);
    this.time = (TextView) itemView.findViewById(R.id.time);
}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:make-me-smile,代码行数:22,代码来源:CustomViewHolder.java


示例2: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.addproject_layout);

    Intent intent = getIntent();
    String name = intent.getExtras().getString("name");
    String email = intent.getExtras().getString("email");
    String userId = intent.getExtras().getString("userid");


    profilePictureView = (ProfilePictureView) findViewById(R.id.friendProfilePicture);
    profilePictureView.setProfileId(userId);
    txtName = (TextView)findViewById(R.id.textViewName);
    txtName.setText(name);
    txtEmail = (TextView)findViewById(R.id.textViewEmail);
    txtEmail.setText(email);

    btnProject = (Button)findViewById(R.id.buttonProject);

    btnProject.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            Intent createIntent = new Intent(AddProject.this, CreateProject.class);
            startActivity(createIntent);
        }

    });

}
 
开发者ID:AswinVasudevan21,项目名称:MobileProjectManagement,代码行数:32,代码来源:AddProject.java


示例3: initComponents

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
/**
 * Initialises buttons on this xml with their respective elements. Updates facebook profile if
 * changed because the Profile is loaded asynchronously so it returns null right after log in.
 */
private void initComponents() {
    playButton = (Button) findViewById(R.id.playButton);
    solveButton = (Button) findViewById(R.id.solveButton);
    logOutButton = (Button) findViewById(R.id.log_out_button);
    welcomeView = (TextView) findViewById(R.id.user_name);
    profilePictureView = (ProfilePictureView) findViewById(R.id.profile_picture);

    // Checks if the profile is changed and hence current profile is null. If so updates the profile
    if (Profile.getCurrentProfile() != null) {
        welcomeView.setText(WELCOME_TAG + Profile.getCurrentProfile().getName());
        profilePictureView.setProfileId(Profile.getCurrentProfile().getId());
    } else {
        ProfileTracker profileTracker = new ProfileTracker() {
            @Override
            protected void onCurrentProfileChanged(Profile oldProfile, Profile currentProfile) {
                this.stopTracking();
                Profile.setCurrentProfile(currentProfile);
                profilePictureView.setProfileId(currentProfile.getId());
                welcomeView.setText(WELCOME_TAG + currentProfile.getName());
            }
        };
        profileTracker.startTracking();
    }

    intentPlay = new Intent(this, PlayActivity.class);
    intentSolve = new Intent(this, SolveActivity.class);
    intentLogIn = new Intent(this, LogInActivity.class);
}
 
开发者ID:ayushr2,项目名称:PlaySoduko,代码行数:33,代码来源:HomeActivity.java


示例4: getView

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    FbPage page = getItem(position);
    if (convertView == null) {
        convertView = LayoutInflater.from(getContext()).inflate(R.layout.item_page, parent, false);
    }

    TextView tvName = (TextView) convertView.findViewById(R.id.page_name_tv);
    ProfilePictureView pagePicture = (ProfilePictureView) convertView.findViewById(R.id.pageItemPicture);
    tvName.setText(page.getName());
    pagePicture.setProfileId(page.getID());
    return convertView;
}
 
开发者ID:mdamis,项目名称:journal,代码行数:14,代码来源:PageAdapter.java


示例5: getView

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    final FbUserComment comment = getItem(position);

    if (convertView == null) {
        convertView = LayoutInflater.from(getContext()).inflate(R.layout.item_user_feed_comment, parent, false);
    }


    //region init
    comment_tv = (TextView)convertView.findViewById(R.id.user_feed_comment_mess_tv);
    created_tv = (TextView)convertView.findViewById(R.id.user_feed_comment_created_tv);
    profilePictureView = (ProfilePictureView)convertView.findViewById(R.id.user_comment_picture);
    user_name = (TextView)convertView.findViewById(R.id.fb_user_name);
    //endregion init

    //region get mess, user,..
    comment_tv.setText(comment.getMessage());
    created_tv.setText(comment.getCreated_time());
    profilePictureView.setProfileId(comment.getUser());
    GraphRequest request = GraphRequest.newGraphPathRequest(
            AccessToken.getCurrentAccessToken(),
            "/" + comment.getUser(),
            new GraphRequest.Callback() {
                @Override
                public void onCompleted(GraphResponse response) {
                    try {
                        user_name.setText(response.getJSONObject().getString("name"));
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }
                }
            });

    request.executeAsync();
    //endregion get mess, user,..

    return convertView;
}
 
开发者ID:mdamis,项目名称:journal,代码行数:40,代码来源:FbUserFeedCommentAdapter.java


示例6: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_scar);
   // Intent i = getIntent();
   //  latit = i.getStringExtra("lati");
  //   longtit = i.getStringExtra("longti");
   // System.out.println(latit + longtit);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);


    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.setDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);
    View nav_header = LayoutInflater.from(this).inflate(R.layout.nav_header_main, null);
    profile = Profile.getCurrentProfile();
    ((TextView)nav_header.findViewById(R.id.data_ffffffname)).setText(profile.getName());
    ((ProfilePictureView)nav_header.findViewById(R.id.profile_picture)).setProfileId(profile.getId());
    navigationView.addHeaderView(nav_header);

    mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
    // Set up the ViewPager with the sections adapter.
    mViewPager = (ViewPager) findViewById(R.id.container);
    mViewPager.setAdapter(mSectionsPagerAdapter);
    tabLayout = (TabLayout) findViewById(R.id.tabs);
    tabLayout.setupWithViewPager(mViewPager);
    new SimpleTask().execute("http://203.151.92.179:8080/getuserprofile?id=" + MemberStatic.getFbID());
}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:Walk-Ranger,代码行数:35,代码来源:ScarActivity.java


示例7: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_bgroup);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);


    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.setDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);
    View nav_header = LayoutInflater.from(this).inflate(R.layout.nav_header_main, null);
    profile = Profile.getCurrentProfile();
    ((TextView)nav_header.findViewById(R.id.data_ffffffname)).setText(profile.getName());
    ((ProfilePictureView)nav_header.findViewById(R.id.profile_picture)).setProfileId(profile.getId());
    navigationView.addHeaderView(nav_header);

    jG = (Button) findViewById(R.id.joinG);
    cG = (Button) findViewById(R.id.createG);
    join();
    create();
}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:Walk-Ranger,代码行数:28,代码来源:BgroupActivity.java


示例8: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_user);



    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);

    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.setDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);
    View nav_header = LayoutInflater.from(this).inflate(R.layout.nav_header_main, null);
    profile = Profile.getCurrentProfile();
    ((TextView)nav_header.findViewById(R.id.data_ffffffname)).setText(profile.getName());
    ((ProfilePictureView)nav_header.findViewById(R.id.profile_picture)).setProfileId(profile.getId());
    navigationView.addHeaderView(nav_header);


    profile = Profile.getCurrentProfile();

    new SimpleTask().execute("http://203.151.92.179:8080/getuserprofile?id=" + MemberStatic.getFbID());
    profileSet( profile);

    rs = (ImageView)findViewById(R.id.reset);
    reset();

}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:Walk-Ranger,代码行数:35,代码来源:UserActivity.java


示例9: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_group);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);


    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.setDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);
    View nav_header = LayoutInflater.from(this).inflate(R.layout.nav_header_main, null);
    profile = Profile.getCurrentProfile();
    ((TextView)nav_header.findViewById(R.id.data_ffffffname)).setText(profile.getName());
    ((ProfilePictureView)nav_header.findViewById(R.id.profile_picture)).setProfileId(profile.getId());
    navigationView.addHeaderView(nav_header);

    mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
    // Set up the ViewPager with the sections adapter.
    mViewPager = (ViewPager) findViewById(R.id.container);
    mViewPager.setAdapter(mSectionsPagerAdapter);
    tabLayout = (TabLayout) findViewById(R.id.tabs);
    tabLayout.setupWithViewPager(mViewPager);

    new SimpleTaskG().execute("http://203.151.92.179:8080/getgroupprofile?id=" + MemberStatic.getFbID());

   // lG = (Button)findViewById(R.id.leaveG);
   // leave();
}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:Walk-Ranger,代码行数:35,代码来源:GroupActivity.java


示例10: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_leagroup);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);


    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.setDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);
    View nav_header = LayoutInflater.from(this).inflate(R.layout.nav_header_main, null);
    profile = Profile.getCurrentProfile();
    ((TextView)nav_header.findViewById(R.id.data_ffffffname)).setText(profile.getName());
    ((ProfilePictureView)nav_header.findViewById(R.id.profile_picture)).setProfileId(profile.getId());
    navigationView.addHeaderView(nav_header);

    mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
    // Set up the ViewPager with the sections adapter.
    mViewPager = (ViewPager) findViewById(R.id.container);
    mViewPager.setAdapter(mSectionsPagerAdapter);
    tabLayout = (TabLayout) findViewById(R.id.tabs);
    tabLayout.setupWithViewPager(mViewPager);

    new SimpleTaskG().execute("http://203.151.92.179:8080/getgroupprofile?id=" + MemberStatic.getFbID());

    //  dG = (Button)findViewById(R.id.disbandG);
    // disband();
}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:Walk-Ranger,代码行数:35,代码来源:LeagroupActivity.java


示例11: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_board);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);

    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.setDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);
    View nav_header = LayoutInflater.from(this).inflate(R.layout.nav_header_main, null);
    profile = Profile.getCurrentProfile();
    ((TextView)nav_header.findViewById(R.id.data_ffffffname)).setText(profile.getName());
    ((ProfilePictureView)nav_header.findViewById(R.id.profile_picture)).setProfileId(profile.getId());
    navigationView.addHeaderView(nav_header);

    mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
    // Set up the ViewPager with the sections adapter.
    mViewPager = (ViewPager) findViewById(R.id.container);
    mViewPager.setAdapter(mSectionsPagerAdapter);
    tabLayout = (TabLayout) findViewById(R.id.tabs);
    tabLayout.setupWithViewPager(mViewPager);
    new SimpleTask().execute("http://203.151.92.179:8080/getuserprofile?id=" + MemberStatic.getFbID());
}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:Walk-Ranger,代码行数:30,代码来源:BoardActivity.java


示例12: CommentHolder

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
public CommentHolder(View itemView) {
    super(itemView);
    this.pictureView = (ProfilePictureView) itemView.findViewById(R.id.profile_picturecomment);
    this.txtName = (TextView) itemView.findViewById(R.id.namecomment);
    this.txtTime = (TextView) itemView.findViewById(R.id.time);
    this.txtComment = (TextView) itemView.findViewById(R.id.comment);
    this.setting = (ImageButton) itemView.findViewById(R.id.settingcom);
}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:make-me-smile,代码行数:9,代码来源:CommentHolder.java


示例13: updateSessionInfo

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
private void updateSessionInfo() {
//		GraphRequest meRequest = GraphRequest.newMeRequest(AccessToken.getCurrentAccessToken(), new GraphRequest.GraphJSONObjectCallback() {
//			@Override
//			public void onCompleted(JSONObject object, GraphResponse response) {
//
//			}
//		});
//		Bundle parameters = new Bundle();
//		parameters.putString(FIELDS_PARAM, "id,name,link");
//		meRequest.setParameters(parameters);
//		meRequest.executeAsync();

		Profile profile = Profile.getCurrentProfile();
		if (profile != null) {
			findViewById(R.id.activity_facebook_information_container).setVisibility(View.VISIBLE);
			findViewById(R.id.activity_facebook_login_button).setVisibility(View.GONE);
			ProfilePictureView profilePictureView = (ProfilePictureView) findViewById(R.id.activity_facebook_profile_picture);
			profilePictureView.setProfileId(profile.getId());
			TextView informationTextView = (TextView) findViewById(R.id.activity_facebook_information);
			StringBuilder infoBuilder = new StringBuilder()
				.append("ID: ").append(profile.getId()).append("\n\n")
				.append("Username: ").append(profile.getName()).append("\n\n")
				.append("Full name: ").append(profile.getName()).append("\n\n")
				.append("Composed Name: ").append(
					TextUtils.join(" ",
						new String[]{
							profile.getFirstName(),
							profile.getMiddleName(),
							profile.getLastName()}))
				.append("\n\n");
			informationTextView.setText(infoBuilder.toString());
		} else {
			findViewById(R.id.activity_facebook_information_container).setVisibility(View.GONE);
			findViewById(R.id.activity_facebook_login_button).setVisibility(View.VISIBLE);
		}

	}
 
开发者ID:joaocsousa,项目名称:OAuth,代码行数:38,代码来源:FacebookActivity.java


示例14: onCreateView

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    final View view = inflater.inflate(R.layout.fb_page_info, container, false);
    Intent intent = getActivity().getIntent();
    String pageId = intent.getStringExtra("pageId");
    final String pageName = intent.getStringExtra("pageName");
    pagePicture = (ProfilePictureView) view.findViewById(R.id.pagePicture);

    pageName_tv = (TextView)view.findViewById(R.id.pageName);


    pagePicture.setProfileId(pageId);
    pageName_tv.setText(pageName);

    pageAbout(pageId);



    return view;
}
 
开发者ID:mdamis,项目名称:journal,代码行数:22,代码来源:FbPageInfoFragment.java


示例15: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FacebookSdk.sdkInitialize(this.getApplicationContext());

    callbackManager = CallbackManager.Factory.create();

    LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
        @Override
        public void onSuccess(LoginResult loginResult) {
            updateUI();
        }

        @Override
        public void onCancel() {
            updateUI();
        }

        @Override
        public void onError(FacebookException e) {
            updateUI();
        }
    });
    setContentView(R.layout.activity_laun);

    userName = (TextView) findViewById(R.id.user_name);
    profilePicture = (ProfilePictureView) findViewById(R.id.profile_picture);
    profileTracker = new ProfileTracker() {
        @Override
        protected void onCurrentProfileChanged(Profile profile, Profile profile1) {
            updateUI();
        }
    };

    mainMenu = (Button) findViewById(R.id.main_menu);
    mainMenu.setOnClickListener(new View.OnClickListener(){
        @Override
        public void onClick(View V){
            profile = Profile.getCurrentProfile();
            MemberStatic.setFbID(profile.getId());
            new SimpleTask().execute("http://203.151.92.179:8080/fblogin?name="+profile.getFirstName() + "%20" + profile.getLastName() +"&fb-code="+profile.getId());


        }
    });
}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:Walk-Ranger,代码行数:47,代码来源:LaunActivity.java


示例16: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Intent intent =getIntent();
    cc = intent.getStringExtra("step");
    cp1 = (ProgressBar)findViewById(R.id.progressBar);
    cp2 = (ProgressBar)findViewById(R.id.progressBark);
    cp3 = (ProgressBar)findViewById(R.id.progressBarm);

    count1 = (TextView) findViewById(R.id.count1);
    count2 = (TextView) findViewById(R.id.count2);
    count3 = (TextView) findViewById(R.id.count3);
  //  Bundle extra = getIntent().getExtras();
  //  String faceid = extra.getString("ID");


    profile = Profile.getCurrentProfile();
    //new SimpleTaskL().execute("http://203.151.92.179:8080/fblogin?name=" + profile.getName() + "&fb-code=" + profile.getId());
    new SimpleTask().execute("http://203.151.92.179:8080/getuserprofile?id=" + MemberStatic.getFbID());
    //while(user.getStepCount() == 0 );

    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);

    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.setDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);
    View nav_header = LayoutInflater.from(this).inflate(R.layout.nav_header_main, null);

    ((TextView)nav_header.findViewById(R.id.data_ffffffname)).setText(profile.getName());
    ((ProfilePictureView)nav_header.findViewById(R.id.profile_picture)).setProfileId(profile.getId());
    navigationView.addHeaderView(nav_header);



    sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);

    //count.setText(String.valueOf(user.getStepCount()));


}
 
开发者ID:CE-KMITL-OOAD-2015,项目名称:Walk-Ranger,代码行数:49,代码来源:MainActivity.java


示例17: onCreate

import com.facebook.login.widget.ProfilePictureView; //导入依赖的package包/类
/**
 * Metodo llamado cuando la actividad es creada
 * @param savedInstanceState Estado anterior de la actividad guardado
 */
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    //Establece la interfaz de usuario para esta Activity
    setContentView(R.layout.activity_pantalla_perfil);

    //Creamos el typeface para asignar la fuente a los textviews de la actividad
    Typeface fuente = Typeface.createFromAsset(getAssets(), "font/Square.ttf");

    //Asignamos las distintas variables a los elementos de la interfaz de usuario
    foto = (ProfilePictureView)findViewById(R.id.fotoperfil);
    nombre = (TextView) findViewById(R.id.nombre);
    nivel = (TextView)findViewById(R.id.nivel);
    mejorJugada = (TextView)findViewById(R.id.mejorpuntuacion);
    partidas = (TextView)findViewById(R.id.partidas);
    victorias = (TextView)findViewById(R.id.partidas_ganadas);
    fecha_registro = (TextView) findViewById(R.id.fecha_registro);
    fecha_ultima = (TextView)findViewById(R.id.fecha_ultima);
    reto1partida = (TableRow)findViewById(R.id.reto1partida);
    retoultimapartida = (TableRow)findViewById(R.id.retoultimajugada);
    reto1jugada = (TableRow)findViewById(R.id.reto1jugada);
    reto1minuto = (TableRow)findViewById(R.id.reto1minuto);
    retoamateur = (TableRow)findViewById(R.id.retoamateur);
    retoprofesioal = (TableRow)findViewById(R.id.retoprofesional);
    retoexperto = (TableRow)findViewById(R.id.retoexperto);

    //Cambiamos la fuente de los elementos de la interfaz de usuario
    nivel.setTypeface(fuente);
    mejorJugada.setTypeface(fuente);
    partidas.setTypeface(fuente);
    victorias.setTypeface(fuente);
    fecha_registro.setTypeface(fuente);
    fecha_ultima.setTypeface(fuente);

    //Inicializamos la base de datos
    BD = new BDPerfilJugador(this);

    //Obtenemos todos los datos del perfil de la base de datos
    obtenerDatosPerfil(BD);

    //Obtenemos los datos referentes a Facebook
    ObtenerDatosFacebook();
}
 
开发者ID:pedroag,项目名称:TFG,代码行数:48,代码来源:PantallaPerfil.java



注:本文中的com.facebook.login.widget.ProfilePictureView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ColumnFamilyDescriptor类代码示例发布时间:2022-05-22
下一篇:
Java HttpServer2类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap