1 / 20
文档名称:

安卓学习笔记.docx

格式:docx   大小:1,995KB   页数:20页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

安卓学习笔记.docx

上传人:mh900965 2018/3/28 文件大小:1.95 MB

下载得到文件列表

安卓学习笔记.docx

相关文档

文档介绍

文档介绍:设置控件透明度
Spinner使用!!
结束其他activity:
蓝牙操作
JSON数据解析:
从硬盘建立输入流,并对外建立输出流:
从输入流得到数据:
Thread t=new Thread(r)
();
Runable r=new Runable()
{
}
List点击响应:
(new OnItemClickListener() {
            ***@Override
            public void onItemClick(AdapterView<?> parent, View view,
                    int position, long id) {
                (, "你点击了第"+(position+1)+"项", ).show();
            }
        });
Menu的实现:
   (,"获取到Action了!!",).show(); 
(, "我是短时间提示", ).show();
(, "我是长时间提示", ).show();
使用动画效果:
Anim下的xml文件:

Animation:
替换xml文件的内容:
通过soap(http)协议发送xml文件:
按钮不同状态图标:
插入文本框滚动条:
访问网络权限:
<!-- 访问网络的权限-->
<uses-permission android:name="."/>
得到文本框内容:
在<application>
中添加Android:theme=”***@stytle/notitle”
在values/stytle/xml
<stytle name=”notitle”>
<item name=”android:windowNoTitle”>true</item>
</stytle>
andandroid:textSize=""更换字体大小
3android:textColor="#8d9dfd"
4颜色
<?xml version="" encoding="utf-8"?>
<resources>
<color name="red">#fd8d8d</color>
<color name="green">#008000</color>
<color name="blue">#8d9dfd</color>
<color name="white">#FFFFFF</color>
<color name="black">#000000</color>
</resources>
5图片
<ImageView
android:id="@+id/faceImg"
android:background="***@drawable/login_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
6
<ImageButton
android:id="@+id/ImageButton02"
android:background="***@drawable/more_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight=""
android:layout_alignTop="@+id/loginE1"
android:layout_alignRight="@+id/loginE1"
android:layout_alignBottom="@+id/loginE1"
/>
7密码验证:
<CheckBox
android:textSize=""
android:textColor="#ff222222"
andro