通过隐式意图来打开照相机 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
其他好文 时间:
2015-05-26 23:32:15
阅读次数:
312
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:lay...
前三个是添加到TableLayout中的。 <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" ??? android:layout_width="fill_parent" ??...
分类:
其他好文 时间:
2015-05-26 16:38:21
阅读次数:
174
布局:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="ma...
分类:
其他好文 时间:
2015-05-26 09:15:07
阅读次数:
153
<LinearLayout xmlns: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"...
分类:
移动开发 时间:
2015-05-26 00:21:42
阅读次数:
194
1.主布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@drawa...
分类:
移动开发 时间:
2015-05-25 16:48:31
阅读次数:
211
1.首先编写main.xml文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientatio...
分类:
微信 时间:
2015-05-25 16:44:58
阅读次数:
925
效果如下:
布局文件activity_main.xml如下:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"...
分类:
移动开发 时间:
2015-05-25 14:31:57
阅读次数:
239
1,首先在res下面新建一个名字为raw的文件夹,添加一个txt文件在其下面;
2,创建一个布局文件,上面一个按钮出发点击事件,下面一个textview显示文本信息;
3,通过一个InputStream获取内容;
xml布局代码:
android:layout_width="fill_parent"
android:layout_height="fill_pare...
分类:
移动开发 时间:
2015-05-25 10:17:30
阅读次数:
419
最近在搞一个关于日期选择DatePicker的PopupWindow需求,默认拖出来的空间都是年/月 可以上下滑动选择,可是日那块就是Calendar板的样式,网上搜了一大堆 ,竟然发现都是一样的,小白苟且猜测,大多是复制别人的,废话不多说,上代码:
<DatePicker
android:layout_width="wrap_content"
...
分类:
其他好文 时间:
2015-05-25 10:15:13
阅读次数:
228