- 博客(7)
- 收藏
- 关注
转载 新创建的项目AndroidManifast报App is not indexable by Google Search;
原错误提示:App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter. See issue explanation for more details.Google翻译:在SDK版本23及更高版本上,您的应用数据将在应用安装...
2019-03-12 09:28:00 137
转载 eclipse项目导入到android studio中文乱码处理
由于eclipse项目是gbk编码,Android studio默认用的是utf-8。就会导致代码中的汉字,注释全部显示为乱码。解决方法:在module的bulid.gradle中加入: compileOptions.encoding = 'gbk'图例:然后点击同步就成功了,注意,别加到project的bulid.gradle里去。转载于:http...
2017-03-25 11:51:00 133
转载 解决在eclipse中写ImageView时有警告的问题
Eclipse中写了一个android程序其中main.xml中ImageView哪行是个黄叹号!不知道为什么?解决办法:android:contentDescription="@string/desc" 加上这个属性就可以了。解答:android:contentDescription的作用是什么在写Android的XML布局文件时,在ImageView或I...
2016-11-14 14:26:00 135
转载 简单的android启动跳转页面
java代码示例:package com.rcl;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.os.Handler;import android.view.Window;public class QiDong extends ...
2016-11-13 11:35:00 88
转载 android使用TextView实现跑马灯的效果(1)
android使用TextView实现跑马灯的效果1.activity_main.xml<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://sc...
2016-11-06 14:39:00 81
转载 设置EditText控件中提示消息hint的字体颜色和大小
设置EditText控件中提示消息hint的字体颜色和大小1.设置字体大小代码例:public void init(){ hint= (EditText) findViewById(R.id.in_login); // 新建一个可以添加属性的文本对象 SpannableString ss = new SpannableString("请输入用户名"); ...
2016-11-03 10:08:00 315
转载 android中在java代码中设置Button按钮的背景颜色
android中在java代码中设置Button按钮的背景颜色1.设置背景图片,图片来源于drawable;flightInfoPanel.setBackgroundDrawable(getResources().getDrawable(R.drawable.search_label_click));2.转换字符串为int(颜色);listItemView.deleteF...
2016-11-03 09:56:00 3067
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人