2012年12月5日
摘要: vb 使用Array.ConvertAll将object类型数组转为string类型数组有两种方法1.方法1 1 Dim int_array() As Object = {1, 2, 3}2 Dim str_array() As String = Array.ConvertAll(int_array, Function(n) n.ToString)2. 方法21 Dim array1 As Object() = {1, 2}2 Dim returnValue As String() = Array.ConvertAll(array1, New Converter(Of Obje... 阅读全文
posted @ 2012-12-05 15:31 逐梦lj 阅读(3349) 评论(0) 推荐(0) 编辑
摘要: 1 Imports System 2 Imports System.Drawing 3 Imports System.Collections.Generic 4 5 Public Class Example 6 7 Public Shared Sub Main() 8 9 Dim apf() As PointF = { _10 New PointF(27.8, 32.62), _11 New PointF(99.3, 147.273), _12 New PointF(7.5, 1412.2)... 阅读全文
posted @ 2012-12-05 14:24 逐梦lj 阅读(1242) 评论(0) 推荐(0) 编辑
摘要: 01.using System; 02.using System.Collections.Generic; 03. 04.//int[]到string[]的转换 05.public class Example 06.{ 07. static void Main() 08. { 09. int[] int_array = { 1, 2, 3 }; 10. 11. string[] str_array = Array.ConvertAll(int_array, new Converter<int, string>(IntT... 阅读全文
posted @ 2012-12-05 14:22 逐梦lj 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: 1 activity布局初步 2 LinearLayout 线性布局 就是以一条线的形式就行布局 可以分为直线型和垂直型 3 4 <!-- 5 android:id —— 为控件指定相应的ID 6 android:text —— 指定控件当中显示的文字,需要注意的是,这里尽量使用strings.xml文件当中的字符串 7 android:grivity —— 指定控件的基本位置,比如说居中,居右等位置 8 android:textSize —— 指定控件当中字体的大小 9 ... 阅读全文
posted @ 2012-12-05 10:45 逐梦lj 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 <TextView 2 android:id="@+id/text" 3 android:layout_width="wrap_content" 4 android:layout_height="wrap_content" 5 android:text="text1" 6 android:textSize="35dip" 7 android:textStyle="bold" 8 android:textColor="#FFFFFF" 9 andr 阅读全文
posted @ 2012-12-05 10:14 逐梦lj 阅读(300) 评论(0) 推荐(0) 编辑