在include标签中不能省略
layout_width或者layout_height否则设置layout_weight就会无效。如下设置即可
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="w...
分类:
其他好文 时间:
2014-05-13 07:12:47
阅读次数:
389
首先,先创建一个安卓项目(我的版本是4.4.2的),名字为"短信发送器"
然后在res文件夹下找到layout文件夹,找到activity_main.xml或fragment_main.xml,在里面输入或拖拽按钮
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:too...
分类:
移动开发 时间:
2014-05-13 05:20:58
阅读次数:
383
楼主让这个问题郁闷了一晚上。。。。。在logcat里明明显示adapter的getview方法里的list大于一条数据 ,但posotion却一直是0.。。。。运行后也只显示list[0]里面的数据。。。。最后的最后原来错误出在布局文件上
我以前的是这样的;
<ScrollView
android:layout_width="fill_parent"
...
分类:
移动开发 时间:
2014-05-12 23:36:45
阅读次数:
386
.box{overflow:auto;zoom:1;}.box-in{display:inline-block;vertical-align:top;}.border-box{-webkit-box-sizing:
border-box;-moz-box-sizing: border-box;box...
分类:
Web程序 时间:
2014-05-12 06:14:48
阅读次数:
460
1、通过系统服务来获得,这是最标准的:LayoutInflater inflater =
(LayoutInflater)
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);2、通过LayoutInflater的静态方法获得:Layo...
分类:
移动开发 时间:
2014-05-12 05:25:30
阅读次数:
389
首先,给Actionbar添加返回图标:代码: @Override protected
void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.s.....
分类:
移动开发 时间:
2014-05-12 01:38:48
阅读次数:
379
Windows界面编程第一篇 位图背景与位图画刷
可以通过WM_CTLCOLORDLG消息来设置对话框的背景,MSDN上对这个消息的说明如下:TheWM_CTLCOLORDLGmessage is sent
to a dialog box before the system draws the di...
分类:
Windows程序 时间:
2014-05-12 00:56:39
阅读次数:
1748
效果图:
此程序主要的知识点是:SimpleAdapter本身是不支持网络图片的, 如果在Map.put(a,b)中 b为一个Bitmap,程序不会报红色字体,而是在控制台输出绿色的字体,如下
05-10 15:46:45.474: I/System.out(846): resolveUri failed on bad bitmap uri: android.graph...
分类:
移动开发 时间:
2014-05-11 20:35:03
阅读次数:
506
首先,先创建一个安卓项目(我的版本是4.4.2的),名字为"电话拨号器",创建的时候点击"clipart",如图:
然后在res文件夹下找到layout文件夹,找到activity_main.xml或fragment_main.xml,在里面输入或拖拽按钮
<RelativeLayout xmlns:android="http://schemas.android.com/apk/r...
分类:
移动开发 时间:
2014-05-11 13:31:33
阅读次数:
448
第一步:首先是Widget的定义声明:
在资源文件下的xml文件夹中建立文件example_appwidget_info.xml:
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:initialLayout="@layout/process_widget"
...
分类:
移动开发 时间:
2014-05-11 04:22:25
阅读次数:
503