main.xml item.xml 主要代码public class MainActivity extends Activity {private ListView listView; @Override protected void onCreate(Bundle s...
分类:
移动开发 时间:
2014-06-21 08:51:44
阅读次数:
307
转:http://blog.csdn.net/softkexin/article/details/5933589android:layout_above="@id/xxx" --将控件置于给定ID控件之上android:layout_below="@id/xxx" --将控件置于给定ID控件之下an...
分类:
移动开发 时间:
2014-06-21 06:51:19
阅读次数:
219
XML文件里有一个textView 和 一个按钮。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andro...
分类:
移动开发 时间:
2014-06-18 11:35:25
阅读次数:
219
poj 3169 Layout(图论-差分约束)...
分类:
其他好文 时间:
2014-06-18 11:32:08
阅读次数:
217
MainActivity如下:
package cc.cc;
import java.util.Calendar;
import java.util.Locale;
import android.os.Bundle;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingI...
分类:
移动开发 时间:
2014-06-18 06:13:43
阅读次数:
268
POJ 3169 Layout (图论-差分约束)
题目大意:
n头奶牛按1到n排好序,md个限制及mt个限制,md行表示奶牛A与奶牛B相差最多D,mt个限制奶牛A与奶牛B相差最少D,问你奶牛1与奶牛n最多相差多少?
解题思路:
限制条件 :
1、相邻奶牛之间,编号大的距离大于编号小的,即 dist[1]-dist[2]<=0,dist[2]-dist[3]<=0,dist[3]-dist[4]<=0。。。。dist[n-1]-dist[n]<=0
2、md个限制 A与奶牛B相差最多D,dist[A]...
分类:
其他好文 时间:
2014-06-18 06:07:39
阅读次数:
209
从前文《 源码解析:dialog, popupwindow, 和activity 的第一个view是怎么来的?》中知道了activity第一个view或者说根view或者说mDecorView 其实就是一个FrameLayout,以及是在系统handleResume的时候加入到系统windowManager中的,并由framework中的ViewRootImpl
接管,通过ViewRootIm...
分类:
其他好文 时间:
2014-06-17 22:07:59
阅读次数:
277
有好几周没写东西了,一方面是因为前几个周末都有些事情,另外也是因为没能找到好的写作方向,或者说有些话题
值得分享、写作,可是自己积累还不够,没办法只好闷头继续研究了。这段时间一边在写代码,一边也在想Android中
究竟是如何将R.layout.xxx_view.xml这样的布局文件加载到Android系统的view层次结构中的(即我们常说的view树)。
这期间一方面自己研究了下源码,另一...
分类:
移动开发 时间:
2014-06-17 19:14:28
阅读次数:
353
extjs4.2控制form表单中field等组件的宽度。首先,确保form的layout是‘anchor’的。然后,在代码中配置anchor属性,如下图:initComponent:function(){
this.items=[{
xtype:‘textfield‘,
padding:‘10005‘,
anchor:‘30%‘,
fieldLabel:‘申请书编号‘,
name:‘appNum‘
},{
xtype:‘..
分类:
Web程序 时间:
2014-06-17 17:36:45
阅读次数:
293
ListAdapter bookAdapter = new SimpleCursorAdapter(this,R.layout.booklist,cursor,from,to);提示:The constructor SimpleCursorAdapter(Context, int, Cursor,....
分类:
其他好文 时间:
2014-06-17 12:58:51
阅读次数:
472