- 博客(27)
- 资源 (5)
- 收藏
- 关注
原创 隐藏标题栏
隐藏标题栏requestWindowFeature(Window.FEATURE_NO_TITLE);意思是不在活动中显示标题栏,注意这条代码放在setContentView()之前执行,否则会报错。
2015-06-17 10:57:08 495
原创 Android出现“R cannot be resolved to a variable"
检查:AndroidManifest.xml中paceage路径名与java源代码的包路径是否一直
2015-06-17 10:50:18 606
转载 Android横屏竖屏切换的问题
Android横屏竖屏切换的问题 一、禁止横竖屏转换:方法1:在AndroidManifest.xml中设置activity中的android:screenOrientation属性值:android:screenOrientation="portrait" 永远为竖屏显示android:screenOrientation="landscape",永远为横屏显示方法2:
2015-06-17 10:12:14 598
原创 Android项目之性别选择
package com.example.androiddemo;import android.app.Activity;import android.os.Bundle;import android.widget.RadioButton;import android.widget.RadioGroup;import android.widget.RadioGroup.OnChe
2015-06-16 23:08:36 11451
原创 Android项目密码框显示明文
package com.example.androiddemo;import android.app.Activity;import android.os.Bundle;import android.text.method.HideReturnsTransformationMethod;import android.text.method.PasswordTransformatio
2015-06-16 22:46:34 1424
原创 Android项目2之横屏和竖屏切换
xml代码http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:id="@+i
2015-06-16 20:49:06 1177
转载 Android uses-permission权限列表中文注释版
Android有一个精心设计的安全模型。每一个应用都有其自己Linux用户和群组,在单独的进程和VM上运行,不能影响到其他应用,android同时也限定了系统资源的使用,像网络设备,SD卡,录音设备等。如果你的应用希望去使用任何系统资源,我们必须去申请Android的权限。这就是元素的作用。一个权限通常有以下格式,用一个名字为name 的字符串去指导我们希望使用的权限。如想要获得net
2015-06-16 20:34:59 455
原创 Android 学习项目1之简单运算器
>xml代码http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:layo
2015-06-15 23:10:35 375
原创 Android 学习10之单击事件1
xml源代码:http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:id="@
2015-06-15 22:17:58 400
原创 UE正常打开文本文件出现乱码解决方法
打开C:\Users\Administrator\Application Data\IDMComp\UltraEdit\Uedit32.ini将[Settings]中Auto Detect UTF8=1改成Auto Detect UTF8=0
2015-06-15 15:52:01 18322
原创 Android学习8之图片按钮ImageButton
http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> android:id="@+id/info" android:text="图
2015-06-14 22:06:32 334
原创 Android学习7之ImageView组件
http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> android:id="@+id/cityinfo" android:tex
2015-06-14 21:58:14 420
原创 Android学习6.2下拉列表二
xml代码:http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> android:id="@+id/cityinfo" and
2015-06-14 21:49:16 408
原创 Android学习6.1下拉列表一
http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> android:id="@+id/cityinfo" android:tex
2015-06-14 21:20:51 447
原创 Android学习5之RadioGrop单选框
http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> android:id="@+id/encinfo" android:text
2015-06-14 20:19:32 491
原创 Android学习4复选框checkbox组件
http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> android:id="@+id/info" android:text="您
2015-06-14 20:09:49 503
原创 Android学习3之EditText可编辑的文本框组件
http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> 该编辑框ID默认为选中 --> android:id="@+id/m
2015-06-14 19:03:01 1424
原创 Android学习2控件之Button按钮组件
http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> 定义按钮的Id为mybutton1 宽度为整个容器的宽度 高度为文字高度
2015-06-14 18:58:40 709 1
原创 Android 学习控件1-TextView
http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> 定义文本框的Id为mytext1 宽度为整个容器的宽度 高度为文字高度
2015-06-14 18:54:23 422
原创 搭建Android开发环境出现错误“发现了以元素 'd:skin' 开头的无效内容。此处不应含有子元素”解决方案
问题描述:[2015-06-13 17:08:11 - Android SDK] Error when loading the SDK:Error: Error parsing D:\Android_SDK\android-sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xmlcvc-complex-t
2015-06-13 17:14:33 1346
原创 Android开发出现”This text field does not specify an inputType or a hint“
编写文本输入框时以下写法出现黄色警告提示”This text field does not specify an inputType or a hint“ android:id="@+id/etActivityc" android:layout_width="fill_parent" android:layout_height="wrap
2015-06-12 10:15:16 545
原创 Android 更新SDK 出现问题:Download interrupted: URL not
androidURL not found。可以试下:启动 Android SDK Manager ,打开主界面,依次选择Tools、Options...在 HTTP Proxy Server 和 HTTP Proxy Port 输入框内填入mirrors.neusoft.edu.cn和80,并且选中 Force https:sources to be fetched using http:
2015-06-11 23:39:15 4240 2
转载 Eclipse下使用git和github
第一节:eclipse下安装git插件本节主要介绍 git 插件最常用的安装方法:1.1点击 Help->Install New Software->add。1.2输入插件名称(自定义),以及插件地址( http://download.eclipse.org/egit/updates/)。 1.3选择插件
2015-06-11 15:12:07 602
原创 MTK 缩减编译Android时间(对于Android系统也是生效的)
1.移除modules_to_check:修改方法:alps/build/core/main.mkfiles: prebuilt \$(modules_to_install) \$(modules_to_check) \$(INSTALLED_ANDROID_INFO_TXT_TARGET)修改为:files: prebuilt \$(modules_to_inst
2015-06-11 14:57:43 1099
转载 MT6582 KK版本加入modem
1. modem编译./make.sh XXX.mk new2. modem文件拷贝通常应该把编译生成的modem文件放在mediatek/custom/common/modem目录下,例如:mediatek/custom/common/modem/XXX/然后将modem文件拷贝到这个目录下,拷贝之前需要对modem文件重命名,关于重命名规则可以参考ReleaseNote
2015-06-04 11:17:14 555
转载 Eclipse常用的快捷方式
Eclipse常用的快捷方式1. Ctrl+左键 这个是大多数人经常用到的,用来查看变量、方法、类的定义2. Ctrl+O 查看一个类的纲要,列出其方法和成员变量。提示 :再多按一次Ctrl+O ,可以列出该类继承的方法和变量。助记 :"O"--->"Outline"--->"纲要"3. Ctrl+T 查看一个类的继承关系树,是自顶向下的,再多按
2015-06-03 14:23:44 436
Centos 6配置静态IP地址后无法上网的情况
2017-12-16
IntelliJ IDEA 2017.1.3汉化文件
2017-12-14
eclipse4.5远程调试hadoop2.7.4依赖包
2017-12-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人