首先要加上两个命名空间分别为:xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"xmlns:ec="clr-namespace:Microsoft.Expression....
分类:
其他好文 时间:
2014-10-19 21:22:22
阅读次数:
246
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" co...
分类:
Web程序 时间:
2014-10-19 18:42:55
阅读次数:
306
1.使用LinearLayout底部布局+p_w_picpathView实现底部四个主导航页面布局文件activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_wid..
分类:
移动开发 时间:
2014-10-17 18:57:14
阅读次数:
218
1:页面的扩展名为:.xaml文件类似于ASPX一样可以编写客户端显示内容和后台处理内容一般的前台页面的形式为: xmlns:TabCtl="using:CustomControl" SizeChanged="pageSizeChanged" Background=...
加一个红色的边框:
textView的XML:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orienta...
分类:
移动开发 时间:
2014-10-17 13:54:32
阅读次数:
275
XAML代码如下:
<Window x:Class="Demo006.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="...
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_alignParentBottom="true"
android:layout_width="fill_parent"
android:...
分类:
移动开发 时间:
2014-10-16 23:27:53
阅读次数:
201
用dom4j把两个手上的element撮合到一起,dom4j就会在被加的元素上写上xmlns="",当时我也没在意,后来用户要求去掉,查了一下还不是那么容易,原来xml本身对namespace管理非常严格,如果两个element的namespace不同,而后者没有namespace也就是缺省为“”,...
分类:
其他好文 时间:
2014-10-16 18:22:32
阅读次数:
170
Fragment在实际项目开发中使用的越来越多,现在简单介绍一下
布局文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_par...
分类:
移动开发 时间:
2014-10-15 22:54:41
阅读次数:
265
帧布局由FrameLayout所代表,FrameLayout直接继承了ViewGoup组件。
帧布局容器为每个加入其中的组件创建一个空白的区域(称为一个帧),每个子组件占据一帧,这些帧都会根据gravity属性执行自动对齐。
代码:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
and...
分类:
移动开发 时间:
2014-10-15 13:57:42
阅读次数:
176