admin管理员组

文章数量:1532440

2024年2月9日发(作者:)

login = (Button) findViewById(n); usernameText = (EditText) findViewById(meText); passwordText = (EditText) findViewById(Text); lickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub if (loginCheck() == 1) { setContentView(_show); TextView usernameShow = (TextView) findViewById(meShow); TextView nicknameShow = (TextView) findViewById(meShow); TextView signatureShow = (TextView) findViewById(ureShow); setIcon = (ImageView) findViewById(ange); lickListener(new OnClickListener() {

@Override public void onClick(View v) { // TODO Auto-generated method stub Intent select = new Intent(,); ra("str",iconNumber); //startActivityForResult(select,ICON_POSITION);

} }); logout = (Button) findViewById(); lickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub finish(); } }); t(meShow); t(meShow); t(ureShow); ExpandableListAdapter adapter = new BaseExpandableListAdapter() { Resources res = getResources(); String[] groups = ingArray(); String[][] child = new String[][] { { "1", "2", "3", "4" }, { "5", "6", "7", "8", "9", "10" }, { "11", "12", "13", "14", "15", "16", "17", }, { "18" }, { "19", "20", "21", "22", "23", "24", "25", "26" }, }; @Override public int getGroupCount() { // TODO Auto-generated method stub return ; } @Override public int getChildrenCount(int groupPosition) { // TODO Auto-generated method stub return child[groupPosition].length; } @Override public Object getGroup(int groupPosition) { // TODO Auto-generated method stub return groups[groupPosition]; } startActivityForResult(select,REQUEST_CODE);//通过重写onActivi

@Override public Object getChild(int groupPosition, int childPosition) { // TODO Auto-generated method stub return child[groupPosition][childPosition]; } @Override public long getGroupId(int groupPosition) { // TODO Auto-generated method stub return groupPosition; } @Override public long getChildId(int groupPosition, int childPosition) { // TODO Auto-generated method stub return childPosition; } @Override public boolean hasStableIds() { // TODO Auto-generated method stub return true; } @Override public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { // TODO Auto-generated method stub TextView textView = new TextView(); tSize(18); vity(_VERTICAL | ); ding(50, 5, 5, 5); t(getGroup(groupPosition).toString() + "0/" + getChildrenCount(groupPosition)); return textView; } @Override public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { // TODO Auto-generated method stub TextView textView = new TextView(); tSize(14); vity(_VERTICAL | ); ding(70, 5, 5, 5); t(getChild(groupPosition, childPosition).toString()); return textView; } @Override public boolean isChildSelectable(int groupPosition, int childPosition) { // TODO Auto-generated method stub return true; } }; ExpandableListView expandableListView = (ExpandableListView) findViewById(); pter(adapter);

pter(adapter); } } }); }onActivityResult函数:protected void onActivityResult(int requestCode, int resultCode, Intent data)

{

if (requestCode==REQUEST_CODE)

{

if (resultCode==_CODE)

{

Bundle bundle=ras();

String str=ing("back"); iconNumber = str; geResource(imageIds[f(str)]); xt(, "更换头像成功", _LONG).show(); }

}

}

:

本文标签: 实验登陆更换实现界面