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(); }
}
}
:
版权声明:本文标题:[安卓初学者实验]实现一个简单仿qq登陆界面 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1707435468a197206.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论