码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
自定义PopupWindow+ListView+Anim
activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:lay...
分类:Windows程序   时间:2015-05-26 21:29:14    阅读次数:368
js获取url中的参数
function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r!=nu...
分类:Web程序   时间:2015-05-26 20:27:45    阅读次数:115
Android布局管理器浅析
在Android应用开发中,为了更好地管理Android应用的用户界面里的各组件,Android提供了布局管理器来实现Android应用的图形用户界面平台无关性,其中所有布局管理器的父类为ViewGroup。一般来说,推荐使用布局管理器来管理组件的分布、大小,而不是直接设置组件位置和大小。在开发当中,最常用的方法是预先设置好容器边距(分布)、大小,然后其包含的组件使用"fill_match"或"w...
分类:移动开发   时间:2015-05-26 10:44:20    阅读次数:288
AdapterViewFlipper学习笔记
布局: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma...
分类:其他好文   时间:2015-05-26 09:15:07    阅读次数:153
Android布局中对输入密码的隐藏和显示
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"...
分类:移动开发   时间:2015-05-26 00:21:42    阅读次数:194
android 实现侧滑菜单
1.主布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:background="@drawa...
分类:移动开发   时间:2015-05-25 16:48:31    阅读次数:211
UI设计之--仿微信聊天界面
1.首先编写main.xml文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientatio...
分类:微信   时间:2015-05-25 16:44:58    阅读次数:925
Android中Gallery和ImageSwitcher的使用
效果如下: 布局文件activity_main.xml如下:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"...
分类:移动开发   时间:2015-05-25 14:31:57    阅读次数:239
自定义控件事件监听设置
iOS系统上方的工具栏很漂亮,也很实用,下面让我们来仿制一下吧。 首先新建一个布局文件title.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="...
分类:其他好文   时间:2015-05-25 10:11:15    阅读次数:230
Android的GridView和ScrollView的嵌套
来源于回答频道答题,因此内容都是基于回答频道的原题布局进行 1、布局文件如下 文件名:testxm.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="ma...
分类:移动开发   时间:2015-05-24 23:42:00    阅读次数:479
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!