当前位置:  编程技术>移动开发
本页文章导读:
    ▪listView背景设立        listView背景设置 如果listview使用别的layout过滤,那么要想点击Item变背景颜色的话,需要在layout的父layout里边设置android:background="@drawable/list_bg"list_bg的xml文件<selector xmlns:android="http://schemas.andr.........
    ▪ Unity3D实用工具集锦        Unity3D实用工具汇总 Unity3D实用工具汇总   1. Free Shader editor 免费shaser编辑器 http://forum.unity3d.com/threads/56180-Strumpy-Shader-Editor-Beta-3.0-released-%28vertex-lighting-support%29   2. Commercial Shader Editor 商业shad.........
    ▪ 跳转到铃声抉择页面       跳转到铃声选择页面 private static final int RINGTONE_PICKED = 1; private void doPickRingtone() { Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, true);.........

[1]listView背景设立
    来源: 互联网  发布时间: 2014-02-18
listView背景设置
如果listview使用别的layout过滤,那么要想点击Item变背景颜色的话,需要在layout的父layout里边设置android:background="@drawable/list_bg"
list_bg的xml文件
<selector xmlns:android="http://schemas.android.com/apk/res/android"> 

<!-- 没有焦点时的背景图片 --> 
  <item android:state_window_focused="false"  
        android:drawable="@drawable/list_on" />  

<!-- 非触摸模式下获得焦点并单击时的背景图片 
  <item android:state_focused="true" android:state_pressed="true"  
        android:drawable= "@drawable/pic2" /> 
-->
<!-- 触摸模式下单击时的背景图片 --> 
  <item android:state_focused="false" android:state_pressed="true"  
        android:drawable="@drawable/list_press" />  
<!--选中时的图片背景  --> 
  <item android:state_selected="true"  
        android:drawable="@drawable/list_press" />  

<!--获得焦点时的图片背景  --> 
  <item android:state_focused="true"  
        android:drawable="@drawable/list_press" />  
</selector>  

    
[2] Unity3D实用工具集锦
    来源: 互联网  发布时间: 2014-02-18
Unity3D实用工具汇总

Unity3D实用工具汇总  
1. Free Shader editor 免费shaser编辑器 http://forum.unity3d.com/threads/56180-Strumpy-Shader-Editor-Beta-3.0-released-%28vertex-lighting-support%29  
2. Commercial Shader Editor 商业shader编辑器 http://forum.unity3d.com/threads/56593-ShaderFusion-%28node-based-shader-editor%29-released!.?highlight=shaderfusion  
3. Volumetric Cloud engine 体积云生成器 http://www.jocyf.com/utilsEnglih.html 
  4. Volumetric cloud generator (not animated) 体积云生成器 http://forum.unity3d.com/threads/56878-ParticlClouds-Package-v2-%28Volumetric-Clouds!!%29 
 5. Road and path generator 道路生成工具 http://sixtimesnothing.com/road-path-tool/ 
 6. River generator 河流生成工具 http://sixtimesnothing.com/river-tool/ 
 7. Terrain bump mapping! 凹凸映射 http://sixtimesnothing.wordpress.com/2010/10/10/bump-mapping-for-built-in-unity-terrain/  视频教程: http://www.youtube.com/watch?v=Pne0y...eature=related 
 8. Object Buoyancy 物体浮力 http://forum.unity3d.com/threads/31671-floating-a-object-on-water/page2?highlight=buoyancy  
9. Biped Editor  http://www.gamengines.com/article-1511.html 
 10. Quickly animate everything http://itween.pixelplacement.com/index.php Video tutorial and project files: http://dkoontz.wordpress.com/itween-visual-editor/  
11. Unity Steer - Behavior AI 行为AI http://www.arges-systems.com/articles/35/unitysteer-steering-components-for-unity 
12. Path finding 寻路 http://www.arongranberg.com/unity/a-pathfinding/download/
13. Multiplayer Server and Demo project  多人服务器和deom http://smartfoxserver.com/forums/viewtopic.php?t=9135  
14. Rope physics 绳索物理 http://reverieinteractive.com/downloads-2  
15. UnityScript Editor 脚本编辑器 http://www.arsoftware.co.uk/products/unityscript-editor/download  
16. Action HUD - for RPG games RPG游戏 动作HUD http://forum.unity3d.com/threads/67103-ActionsHUD-available-for-free-download  
17. Vectrocity (line renderer) - Commercial http://starscenesoftware.com/vectrosity.html 
 18. Ocean Shader 海洋shader https://github.com/trond/Unity-Community-Ocean 
 19. Decal Framework 贴花 http://unity3dstore.com/?page_id=59 
 20. EasyRoad3D 道路 http://www.unityterraintools.com/tools.php  
 20. EZ GUI - 菜单框架   
21. Sprite Manager - 2D游戏的精灵框架 http://unifycommunity.com/wiki/index.php?title=SpriteManager Better (Commercial): http://www.anbsoft.com/middleware/sm2/index.htm -  
 22. Prime31 - Unity iPhone and iPad 插件 (Commercial) http://www.prime31.com/unity/  
23. GUIKit001 - iPhone and iPad GUI Skin collection (Commercial) http://gameassets.net/ 
 24.Detonator – Explosions for Unity3D http://variancetheory.com/detonator/ 
 25. Object deformation on impact http://vidiludi.com/unity3d-prefabs/ 
 26. Antares Project - Nice tools and Classes for large project management http://shop.unity3d.ru/index.php/en/en/component/content/article/18.html  
27. Networking Book and example file http://forum.unity3d.com/threads/29015-UniKnowledge-entry-Unity-Networking-the-Zero-to-Hero-guide  
28. Auto Patcher tool for updating your games http://forum.unity3d.com/threads/62326-M2HPatcher?p=398858#post398858  
29. Unity Game examples - Nice tutorials shipped as some mini games http://forum.unity3d.com/threads/51017-5-Unity-game-examples-C-scripting-tutorial-for-beginners?p=323510#post323510  
30. Occlusion cooling system http://forum.unity3d.com/threads/52130-M2HCulling-Optimize-your-game-culling-system-for-Unity  
31. In game rewind - Documentation with code http://m2h.nl/files/replay/replay.pdf  
32. Converting Javascript to C# - Online tool http://m2h.nl/files/js_to_c.php  
33. RPG inventory system http://forum.unity3d.com/threads/48229-RPG-INVENTORY-SOURCE/page4  
34. Flashlight http://forum.unity3d.com/threads/31926-Flashlight/page3 
 35. Fracture Script http://forum.unity3d.com/threads/57994-Simple-Fracture-Script-v-1.01  
36. Role playing game (RPG) development kit - (Commercial) http://rpg-kit.com/ 
 37. Save and load state of your game - (Commercial) http://www.anbsoft.com/middleware/ezs/  
38. Flight Simulator http://forum.unity3d.com/threads/43984-Unity-testproject-a-little-flightsim/page2  
39.Stereoscopy package http://forum.unity3d.com/threads/61759-3D-Anaglyph-System-for-Unity-iPhone-Basic-Pro-and-Unity-Free    

    
[3] 跳转到铃声抉择页面
    来源: 互联网  发布时间: 2014-02-18
跳转到铃声选择页面

	private static final int RINGTONE_PICKED = 1;

	private void doPickRingtone() {

		Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);
		intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, true);
		intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE,
				RingtoneManager.TYPE_RINGTONE);
		intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, false);
		Uri ringtoneUri;

		ringtoneUri = RingtoneManager
				.getDefaultUri(RingtoneManager.TYPE_RINGTONE);
		intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI,
				ringtoneUri);
		startActivityForResult(intent, RINGTONE_PICKED);
	}

	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		if (resultCode != RESULT_OK) {
			return;
		}

		switch (requestCode) {
		case RINGTONE_PICKED: 
			// 选择完铃声之后获得选中铃音的URI,将其值存入数据库
			Uri pickedUri = data
					.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI);
			new MyLog(pickedUri.toString());//铃声URL
			new MyLog(RingtoneManager.getRingtone(this, pickedUri).getTitle(this));//铃声名称
			break;
		}
	}
 

    
最新技术文章:
▪Android开发之登录验证实例教程
▪Android开发之注册登录方法示例
▪Android获取手机SIM卡运营商信息的方法
▪Android实现将已发送的短信写入短信数据库的...
▪Android发送短信功能代码
▪Android根据电话号码获得联系人头像实例代码
▪Android中GPS定位的用法实例
▪Android实现退出时关闭所有Activity的方法
▪Android实现文件的分割和组装
▪Android录音应用实例教程
▪Android双击返回键退出程序的实现方法
▪Android实现侦听电池状态显示、电量及充电动...
▪Android获取当前已连接的wifi信号强度的方法
▪Android实现动态显示或隐藏密码输入框的内容
▪根据USER-AGENT判断手机类型并跳转到相应的app...
▪Android Touch事件分发过程详解
▪Android中实现为TextView添加多个可点击的文本
▪Android程序设计之AIDL实例详解
▪Android显式启动与隐式启动Activity的区别介绍
▪Android按钮单击事件的四种常用写法总结
▪Android消息处理机制Looper和Handler详解
▪Android实现Back功能代码片段总结
▪Android实用的代码片段 常用代码总结
▪Android实现弹出键盘的方法
▪Android中通过view方式获取当前Activity的屏幕截...
▪Android提高之自定义Menu(TabMenu)实现方法
▪Android提高之多方向抽屉实现方法
▪Android提高之MediaPlayer播放网络音频的实现方法...
▪Android提高之MediaPlayer播放网络视频的实现方法...
▪Android提高之手游转电视游戏的模拟操控
 


站内导航:


特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,,E-mail:www_#163.com(请将#改为@)

浙ICP备11055608号-3