最近看到同事写的一段代码,很简单吧就是:
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:orientation...
分类:
移动开发 时间:
2015-06-24 11:01:00
阅读次数:
122
activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layou...
分类:
移动开发 时间:
2015-06-23 21:43:43
阅读次数:
178
对于inline-block元素,如几个设置为display:inline-block的span元素,在ie6、7中显示无间隙,在其他ie版本和高级浏览器中显示有间隙。 span{ width: 50px; height: 50px; border: 1px sol...
分类:
其他好文 时间:
2015-06-23 21:29:54
阅读次数:
202
矩形 1、x:定义矩形左上角的点的x坐标2、y:定义矩形左上角的点的y坐标3、rx:定义矩形四个角的x方向圆角半径4、ry:定义矩形四个角的y方向圆角半径5、width:定义矩形的宽度6、height:定义矩形的高度圆形 1、cx:圆心x坐标2、cy:圆心y坐标3、r:圆的半径椭...
分类:
其他好文 时间:
2015-06-23 19:32:35
阅读次数:
100
xml文件<LinearLayoutxmlns: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"
android:orientation="vertical"
android:padding="5dp"
&g..
分类:
移动开发 时间:
2015-06-23 18:12:19
阅读次数:
144
一、首先列一下公认的资料:先看到下面的代码你肯定就明白了一些:123456-(CGRect)frame{returnCGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.size.width,self.frame.size.hei...
分类:
移动开发 时间:
2015-06-23 15:22:10
阅读次数:
123
本博文介绍了基本的Spinner的使用方法首先写一下xml中的代码部分<Spinner
android:id="@+id/myspinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>再写一下Strings.xml中的文件部分<string-array
name="tongxue"
>
<ite..
分类:
移动开发 时间:
2015-06-23 13:45:51
阅读次数:
182
show,hide——>是通过改变height,width,opacity来实现动画的显示与隐藏的fadeIn、fadeOut——>只通过opacity来实现动画的显示与隐藏的它们两个在动画显示与隐藏完后都会设置disply:none或displya:block。
分类:
其他好文 时间:
2015-06-23 11:51:26
阅读次数:
189
width:100%和width:auto的区别width:auto比较聪明,如果margin已经左右占去10px的空间,那么width给的值就是580px。 123如果是width:100%,则说明p的width会得到600px就已经充满div区域,然后自己又有margin,所以会出现滚动条...
分类:
Web程序 时间:
2015-06-22 17:53:20
阅读次数:
133
html================css=================*{ margin: 0;padding: 0;}#box1{z-index: 1;position: absolute;width: 240px;height: 160px;left: 0px;top: 48px;ba...
分类:
其他好文 时间:
2015-06-21 20:59:24
阅读次数:
114