码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果)
Android中RadionButton与CheckBox的应用
//RadioGroup中xml文件的配置 <RadioGroup android:id="@+id/radiogroupid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" > <RadioButton android:id="@+id/femalebutton" android:layout_width="wr..
分类:移动开发   时间:2015-06-04 12:07:53    阅读次数:132
Android PopupWindows
今天了解到PopupWindows这个布局,PopupWindow这个类用来实现一个弹出框,可以使用任意布局的View作为其内容,这个弹出框是悬浮在当前activity之上的。 下面是一个实例 xml文件         android:id="@+id/ll_popup"         android:layout_width="match_parent"      ...
分类:移动开发   时间:2015-06-03 17:46:47    阅读次数:137
让EditText只能输入数字的小技巧
准确的说让Edittext只能输入数字有方法两种,都是通过xml属性设置 方法一: <EditText android:id="@+id/u_account" android:layout_width="0dp" android:layout_height="match_parent" andro...
分类:其他好文   时间:2015-06-02 18:01:50    阅读次数:136
Android学习笔记--欢迎界面的实现
项目文档结构步骤一:布局activity_guide.xml <RelativeLayoutxmlns: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" tools:context="co..
分类:移动开发   时间:2015-05-30 18:27:20    阅读次数:152
设置闪屏以及跳转到登陆界面实例演示
<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"><ImageViewandroid:layout_width="fill_parent"android:layout_height..
分类:其他好文   时间:2015-05-30 18:25:28    阅读次数:157
单个水波纹
paint的使用 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout...
分类:其他好文   时间:2015-05-30 13:38:23    阅读次数:111
自定义CheckBox的选中与否样式
我们在做APP应用时,经常要用到CheckBox控件,但是系统原有的CheckBox样式又不满足我们的需求,我们就要自定义CheckBox选中与否状态,其实就同Button一样,设置其选择与否背景即可。 布局如下:                         android:id="@+id/foot_mark_cb"             android:layout_width...
分类:其他好文   时间:2015-05-29 23:21:33    阅读次数:305
Android必知必会--使用shape制作drawable素材
前言最近看到朋友制作的Android APP使用了极少的图片,但是图形却极其丰富,问了之后得知是使用shape绘制的,有很多优点。 下面是我整理的一些素材:预览下面是图片预览:代码布局文件<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_p...
分类:移动开发   时间:2015-05-29 13:59:35    阅读次数:222
android 初识ViewPager
1.准备工作 每一个view,只是img不一样,其他都是一样的 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:la...
分类:移动开发   时间:2015-05-29 10:03:45    阅读次数:129
重写listview,横向滑动出现删除按钮,点击按钮删除item
首先准备一个删除按钮的布局,新建button.xml文件,代码如下所示: <Button xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/btn" android:layout_width="wrap_content" android:layout_...
分类:其他好文   时间:2015-05-29 09:59:12    阅读次数:140
共981条   上一页 1 ... 54 55 56 57 58 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!