码迷,mamicode.com
首页 >  
搜索关键字:relativelayout    ( 982个结果
Android实战简易教程-第四十九枪(两种方式实现网络图片异步加载)
加载图片属于比较耗时的工作,我们需要异步进行加载,异步加载有两种方式:1.通过AsyncTask类进行;2.通过Handler来实现,下面我们就来看一下如何通过这两种方式实现网络图片的异步加载。一、AsyncTask方式1.main.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
分类:移动开发   时间:2015-09-01 21:36:38    阅读次数:371
Android listview ,ScrollView 回到顶部的按钮
在有些listview上面和ScrollView上,当滑动到底部的时候,在右下角会出现一个回到顶部的按钮,提供更好的用户体验。 效果图如下: 布局 先说布局,可以用帧布局Framelayout,也可以用相对布局relativelayout.看下listview的布局文件: <RelativeLayout xmlns:android="http://schemas.and...
分类:移动开发   时间:2015-08-29 09:54:12    阅读次数:314
Android layout布局属性、标签属性总结大全
RelativeLayout第一类:属性值为true可falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中android:layout_centerInparent 相对于父元素完全居中android:l...
分类:移动开发   时间:2015-08-28 12:34:24    阅读次数:199
Android常用控件之AutoCompleteTextView、Spinner
概述1、AutoCompleteTextView:相对于普通的TextView,AutoCompleteTextView的特点是可以自动提示文本,它可以通过SetAdapter()方法加载适配器。 2、Spinner:一种下拉列表。知识内容AutoCompletedTextView布局文件<RelativeLayout xmlns:android="http://schemas.android.c...
分类:移动开发   时间:2015-08-26 22:44:20    阅读次数:293
Andriod应用开发知识搜集2
1、常用五种布局: LinearLayout、RelativeLayout、FrameLayout、AbsoluteLayout、TableLayout 线性布局 相对布局 帧布局 绝对布局 表格布局 开发中主要用线性布局和相对布局。 表...
分类:其他好文   时间:2015-08-26 22:04:34    阅读次数:238
android学习笔记(1)
09:布局 LineaerLayout(线性布局)、RelativeLayout(相对布局):android:layout_toRightOf,android:layout_alignTop TableLayout(表格布局)、FrameLayout(帧布局) 常用RelativeLayout(相对布局)、TableLayout(表格布局) 10:测试 在应用配置文件导测试依赖包 ...
分类:移动开发   时间:2015-08-26 09:32:02    阅读次数:207
安卓基础开发-短信发送器
一个安卓基础开发小案例,短信发送器: 代码演示图: 布局文件: activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" androi...
分类:移动开发   时间:2015-08-21 21:32:49    阅读次数:238
Android实战简易教程-第四十一枪(显示倒计时的Button-适用于获取验证码)
最近在做获取验证码的功能,考虑到优良的用户体验,决定制作一个拥有倒计时提示的Button按钮,在网上查了一些资料,很是简单的就能实现,我写了一个小Demo,大家可以应用到自己的项目中。1.activity_main.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:too...
分类:移动开发   时间:2015-08-20 15:18:04    阅读次数:219
Custom ViewGroups
Android provides a few ViewGroups like?LinearLayout,?RelativeLayout,?FrameLayout?to position child Views. These general purpose ViewGroups have quite a lot of options in them. For e.g, LinearL...
分类:其他好文   时间:2015-08-20 10:57:39    阅读次数:212
给TextView,RelativeLayout 设置selector不起作用的原因总结
1、由于TextView,RelativeLayout(LinearLayout) 默认不具备可点击性的,要让background的selector 起作用有两种方法:                     一、在代码中给其设置点击事件OnClickListener              二、在xml中设置clickable = true 2、selector写的不对,不点击时的默认...
分类:其他好文   时间:2015-08-19 13:31:09    阅读次数:197
982条   上一页 1 ... 46 47 48 49 50 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!