-
Evito_Ball
android小游戏,迷宫小球,初学游戏编程的同学可以看一看(android games, maze ball, game programming beginner students can take a look)
- 2014-01-15 18:49:17下载
- 积分:1
-
BatteryProject
在eclipse下配置的android2.3.3模拟器中创建一个获取电池电量的API(The eclipse configuration android2.3.3 simulator to create a multi-touch API)
- 2013-04-17 21:09:59下载
- 积分:1
-
Android 显示时钟 圆形指针时钟
Android 显示时钟 圆形指针时钟,显示Windows时间,比较经典的圆形钟表时钟。这类例子似乎比较多了,本例子是超简单类型的,想学习android应用开发的初学者可学习参考。
- 2022-02-06 21:52:24下载
- 积分:1
-
android sensor简例
本代码主要是一个关于android sensor的一个简单的例子。当你晃动手机的时候,就会拨打指定的手机号码。用一个sensormanager来管理。基于Java。
- 2022-09-13 05:50:03下载
- 积分:1
-
QT编写的组态源码
文中包含了程序的源码,可以使用qt creator编译。
- 2016-11-22下载
- 积分:1
-
LED显示通知屏
通过gridview分类显示消息通知,自定义每行的列数,字体
- 2022-03-31 06:19:16下载
- 积分:1
-
Android OnClickListener监听接口用法范例
Android OnClickListener监听接口用法范例,基础级的例子,
Button button = (Button) findViewById(R.id.Button01);//获取屏幕中的按钮控件对象
button.setOnClickListener(//为按钮对象添加OnClickListener接口实现
//OnClickListener为View的内部接口,其实现者负责监听鼠标点击事件
new View.OnClickListener(){
public void onClick(View v){
LinearLayout ll=(LinearLayout)findViewById(R.id.lla);//获取线性布局对象
String msg=LinearActivity.this.getResources().getString(R.string.button);
Button tempbutton=new Button(LinearActivity.this);//创建一个Button对象
tempbutton.setText(msg+(++count));//设置Button控件显示的内容
tempbutton.setWidth(80);//设置Button的宽度
ll.addView(tempbutton);//向线性布局中添加View
System.out.println("========= count"+count);
- 2023-05-27 15:00:04下载
- 积分:1
-
Android 屏幕旋转(改变屏幕方向)
Android 屏幕旋转实例,改变屏幕方向,这个和平时的锁定屏幕方向有关联,其基本的实现思路如下:
public void onConfigurationChanged(Configuration newConfig) {
Toast.makeText(this, "系统的屏幕方向发生改变", Toast.LENGTH_LONG).show();
updateEditText();//更新EditText显示的内容
super.onConfigurationChanged(newConfig);
}
public void updateEditText(){
int o = getRequestedOrientation();//获取屏幕朝向
switch(o){ //判断屏幕当前朝向
case ActivityInfo.SCREEN_ORIENTATION_PORTRAIT:
et.setText("当前屏幕朝向为:PORTRAIT");
break;
case ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE:
et.setText("当前屏幕朝向为:LANDSCAPE");
break;
}
}
- 2023-09-06 06:05:03下载
- 积分:1
-
Android Layout多种使用方法源码演示
Android Layout多种使用方法源码演示,这个例子中演示了如何使用FrameLayout、如何使用RelativeLayout、如何使用RelativeLayout和LinearLayout以及如何使用TableLayout的例子,都挺实用,平时用的比较多,但是比较基础,android编程打基础的参考范例,示例运行后,单击对应的按钮,演示对应的功能。
- 2022-01-26 00:30:23下载
- 积分:1
-
android WIN8系统 磁贴点击下沉倾斜效果源码下载
android WIN8系统 磁贴点击下沉倾斜效果源码下载
- 2014-08-24下载
- 积分:1