android小项目
文章平均质量分 86
孤独的IT
理想主义
展开
-
[Android] ImageView.ScaleType设置图解
ImageView的Scaletype决定了图片在View上显示时的样子,如进行何种比例的缩放,及显示图片的整体还是部分,等等。设置的方式包括:1. 在layout xml中定义android:scaleType="CENTER"2. 或在代码中调用imageView.setScaleType(ImageView.ScaleType.CENTER);接下来,将对Scal转载 2014-09-20 08:28:39 · 261 阅读 · 0 评论 -
打开浏览器的选择
1: xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > androi原创 2015-03-15 10:45:42 · 463 阅读 · 0 评论 -
提交数据(get,post)l两种方式
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:orientation="vertical" android:layout_height="match_parent" tools:context=".MainActivity"原创 2015-03-01 20:56:12 · 472 阅读 · 0 评论 -
post提交数据
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"原创 2015-02-06 17:39:43 · 324 阅读 · 0 评论 -
操作联系人
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"原创 2015-01-19 08:38:27 · 336 阅读 · 0 评论 -
数据提交(get和post)
package="com.itheim28.submitdata" android:versionCode="1" android:versionName="1.0" > android:minSdkVersion="8" android:targetSdkVersion="17" />原创 2015-02-05 17:53:18 · 306 阅读 · 0 评论 -
Android读取word文件
Android中读取word文件需要用第三方jar包tm-extractors-0.4.jar。读取的过程很简单,基本和操作普通的文件流一样,下面写一个简单例子:package com.word.read;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException原创 2015-02-06 16:13:46 · 1451 阅读 · 0 评论 -
自动发短信
package com.itcast.text;import android.net.Uri;import android.os.Bundle;import android.os.SystemClock;import android.app.Activity;import android.content.ContentValues;import android.vi原创 2015-01-18 22:01:29 · 603 阅读 · 2 评论 -
音乐播放器
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"原创 2015-03-29 21:05:00 · 303 阅读 · 0 评论