android
文章平均质量分 62
iteye_20620
这个作者很懒,什么都没留下…
展开
-
疯狂android讲义学习总结---各种按钮的制作
第一种:给按钮的文字加重影操作重影操作主要涉及android的四个xml属性,分别是 shadowColor,shadowRadius,shadowDx,shadowDy。第二种:用图片作为按钮 第三种:在按的时候可以设置鼠标的动作 用drawable类,绘制xml文件这里的button_selector是一个存放在,res/drawable/mdpi文件夹下的xm...原创 2013-05-16 10:46:11 · 94 阅读 · 0 评论 -
libgdx--中文显示与汉字绘制
要用libgdx框架下显示中文 那么不得不用到hiero工具首先下载hiero.jar工具,运行hiero.jar 设置自己喜欢的字体 并保存入下图自动生成俩个文件 *.png,和*.fnt并把这俩个文件存入assets文件夹中。 private BitmapFont bitmapfont; private SpriteBatch batch; @Overrid...原创 2013-03-05 11:02:20 · 181 阅读 · 0 评论 -
libgdx的使用--绘制图片
上一节我们用到了SpriteBatch类 但是我们并没有使用它 现在用它的draw()方法来绘制图片的位置.要绘制图片 首先要有图片 ,我们找到图片存储在assets文件夹中,assets文件夹是开发android工程中专门存储图片的文件夹首先要声明一个Texture 私有变量texture;在HelloGame类中的create()方法里实例化一个Texture;texture=ne...原创 2013-03-02 14:19:03 · 220 阅读 · 0 评论 -
libgdx的使用--环境搭建测试
首先在eclise中创建android工程 new-->project-->android project.最低兼容版本选择1.5最高一般选择3.2 theme选项 选择holo light;默认的类名为MainActivity.java 将其继承AndroidApplication类,此类作为主线程新建一个类 名为HelloGame类实现ApplicationListener接口...原创 2013-03-02 11:00:17 · 124 阅读 · 0 评论 -
ArrayAdapter requires the resource ID to be a TextView问题
在使用ArrayAdapter时使用自己写的R.layout.list_item布局容易出现:ArrayAdapter requires the resource ID to be a TextView 报错R.layout.list_item.xml: xmlns:android=http://schemas.android....原创 2013-08-09 07:00:42 · 132 阅读 · 0 评论 -
疯狂android讲义学习总结---ImageView
imageView 做图片浏览器================================================================================== =======================...原创 2013-05-18 13:32:26 · 115 阅读 · 0 评论 -
疯狂android讲义学习总结---toggle与switch
ToggleButton 与Switch二者都是Button的子类,与RadioButton和CheckBox不同的是,ToggleButton 与Switch二者通常用作切换程序中的某种状态ToggleButton 与Switch二者常用的xml属性是 android:checked;android:textOn;android:textOff;而Switch常用的属性还有,andro...原创 2013-05-16 18:49:10 · 289 阅读 · 0 评论 -
疯狂android讲义学习总结---RadioButton——CheckBox
RadioButton(单选按钮)与CheckBox(复选框)都是Button的子类,Button的所有属性二者都可用,唯一不同的是二者多一个android:checked的属性,下面的程序中添加了一个RadioGroup按钮,包括两个RadioButton,RadioGroup有自己的唯一的ID标识,RadioButton也有自己的唯一的ID标识。彼此不同。本文中对该RadioGroup设置了一...原创 2013-05-16 12:10:49 · 89 阅读 · 0 评论 -
疯狂android讲义学习总结---TextView
这里只想说一句,在EditText中 如果想让输入框中的有默认的内容,用hint原创 2013-05-16 10:50:11 · 117 阅读 · 0 评论 -
android之sqlite数据库初级
package com.example.testsqlite;import android.os.Bundle;import android.app.Activity;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;imp...原创 2013-03-11 23:52:22 · 93 阅读 · 0 评论