Android-RadioButton&RadioGroup
一 定义
符合单选框,两个需要配合使用
二 事件机制
private void showRadioButton()
{
mRadioGroup = (RadioGroup)findViewById(R.id.radioGroup1);
mRadioGroup.setOnCheckedChangeListener(n...
分类:
移动开发 时间:
2015-06-09 10:03:59
阅读次数:
135
1.向下一个activity传递数据activity1 1 Button button=(Button) findViewById(R.id.button1); 2 button.setOnClickListener(new OnClickListener() { 3...
分类:
移动开发 时间:
2015-06-07 00:54:48
阅读次数:
194
用LayoutParams:
RelativeLayout insertLayout = (RelativeLayout)view1.findViewById(R.id.screen);//screen是一个RelativeLayout 布局的id
ImageView imgApple2 = new ImageView(MainActivity.this);
imgA...
分类:
移动开发 时间:
2015-06-04 12:02:48
阅读次数:
1021
之前讲到了介绍了一下xUtils的基本使用方法,今天我们就来详细介绍一下关于xUtils中的ViewUtils模块。 在ViewUtils模块中我们首先看到的是它采用了一种注解的方式进行声明,那么我们首先来了解一下什么是注解。 注解(Annotation)很重要,未来的开发模式都是基于注解的...
分类:
其他好文 时间:
2015-06-03 19:04:41
阅读次数:
88
之前讲到了介绍了一下xUtils的基本使用方法,今天我们就来详细介绍一下关于xUtils中的ViewUtils模块。
在ViewUtils模块中我们首先看到的是它采用了一种注解的方式进行声明,那么我们首先来了解一下什么是注解。
注解(Annotation)很重要,未来的开发模式都是基于注解的,JPA是基于注解的,Spring2.5以上都是基于注解的,Hibernate3.x以后也是基于...
分类:
其他好文 时间:
2015-06-03 17:37:07
阅读次数:
140
用户名和密码框的英文字体是不同的,遇到情况请看下图:解决办法:xml中去掉:1 android:password="true"java中:1 EditText password = (EditText) findViewById(R.id.register_password_text);2 pass...
分类:
移动开发 时间:
2015-06-03 17:16:38
阅读次数:
151
1. 通过继承Activity实现ListView1.1 在XML布局文件中实现一个ListView1 1.2 在MainActivity中实现代码1 ListView listView = (ListView) findViewById(R.id.listView);2 String [] ...
分类:
其他好文 时间:
2015-06-03 11:43:27
阅读次数:
100
Button= (Button)findViewById(R.id.coinTitle); Button.setEnabled(true); Button.setEnabled(false); ? 获取button.setEnabled(boolean)的状态 Button.isEnabled();...
分类:
移动开发 时间:
2015-06-03 10:09:31
阅读次数:
284
promotionLinkText = (TextView) this .findViewById(R.id. text_promotion_link );中间加横线promotionLinkText .getPaint().setFlags(Paint. STRIKE_THRU_TEXT_FLAG...
分类:
其他好文 时间:
2015-06-01 16:34:07
阅读次数:
96
1.首先我们要知道spinner系统自带字体和颜色本质:原生的Spring 控件是无法更改字体和颜色的...从下面的代码可以看出...红色的标注显示使用的是Android默认的布局.. 1 Spinner s1 = (Spinner) findViewById(R.id.spinner1); 2 ....
分类:
移动开发 时间:
2015-05-31 09:06:57
阅读次数:
204