码迷,mamicode.com
首页 >  
搜索关键字:linearlayout    ( 1715个结果
毕设第一部分
在value/res下建立string.xml想清楚自己的按钮名称,各种部件的名称和显示 haha you are clicked me!!! red blue text再设计好布局:布局有线性布局linearLayout,包括两种现形布局,垂直vertical,...
分类:其他好文   时间:2015-05-14 18:11:53    阅读次数:99
[转]android使用shape stroke描边只保留底部
在项目中遇到这种情况:由于一些原因,自己需要用LinearLayout的垂直布局做出ListView的那种效果,但是ListView是自带了分割线的,而且顶部底部都是没有分割线的,每个item中间都是1dp宽度的分割线。我一开始是想到LinearLayout中的每个item用shape文件设置...
分类:移动开发   时间:2015-05-14 16:25:59    阅读次数:147
Android UI之TableLayout(表格布局)
Android UI之TableLayout(表格布局)说明:表格布局采用常见的表格方式来表示布局,与上文中提到的android:weight属性显示出来的效果有些相似。而事实上,TableLayout的确是LinearLayout的子类,因此本质上还是线性布局。实际开发中,我们经常会采用adnroid:weight属性来代替表格布局。 跟在html中写表格有点类似,在TableLayout中,我...
分类:移动开发   时间:2015-05-14 08:47:19    阅读次数:132
Android UI之TableLayout(表格布局)
说明:表格布局采用常见的表格方式来表示布局,与上文中提到的android:weight属性显示出来的效果有些相似。而事实上,TableLayout的确是LinearLayout的子类,因此本质上还是线性布局。实际开发中,我们经常会采用adnroid:weight属性来代替表格布局。 跟在html中写表格有点类似,在TableLayout中,我们可以通过TableRow标签来为表格添加一个新的行。与...
分类:移动开发   时间:2015-05-14 08:40:26    阅读次数:159
Android UI之LinearLayout(线性布局)
说明:线性布局是最常用的布局,其包含的所有View会按照线性来排列。 需要注意的就是四个比较常用的xml属性:1 android:gravity对应方法:setGravity(int) 说明:这个属性设置布局内组件的对齐方式,支持以下属性值: 属性值 作用 top 将对象放在其容器的顶部,不改变其大小 bottom 将对象放在其容器的底部,不改变其大小 left 将...
分类:移动开发   时间:2015-05-13 21:59:26    阅读次数:136
使用绑定服务实现一个简单的音乐播放器
效果布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="...
分类:其他好文   时间:2015-05-13 21:56:18    阅读次数:164
使用service实现一个简单的音乐播放器
效果布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="...
分类:其他好文   时间:2015-05-13 19:47:34    阅读次数:223
setGravity(Gravity.CENTER)为什么不生效?
一个动态添加组件的LinearLayout,其 anroid:layou_width / layout_height=”wrap_content”。这样在Java里,添加一个TextView组件,并setGravity(Gravity.CENTER)后,并不生效。 应该android:la...
分类:其他好文   时间:2015-05-13 19:23:45    阅读次数:4371
android.view.ViewGroup$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
LinearLayout layout = (LinearLayout) mInflater.inflate( R.layout.cell_check_item, null); LinearLayout.LayoutParams param...
分类:移动开发   时间:2015-05-13 18:52:17    阅读次数:472
Android触摸屏幕时间-android学习之旅(三)
android的多点触摸是经常遇到的编程技巧,这一篇可以将详细的介绍这个问题。简单实例android的触摸需要实现OnTouchListener接口,继承里面方法。布局代码: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"...
分类:移动开发   时间:2015-05-13 12:57:09    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!