代码如下:
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.gra...
分类:
其他好文 时间:
2015-04-17 11:37:48
阅读次数:
85
android:layout_width="200dp"
android:layout_height="wrap_content"
android:background="@android:color/black"
android:src="@drawable/v2_boutique_app_viewpager_indicator" />
...
分类:
移动开发 时间:
2015-04-17 09:42:47
阅读次数:
138
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
lp.setMargins(10, 20, 30, 40);
imageView.setLayoutPara...
分类:
其他好文 时间:
2015-04-16 17:41:06
阅读次数:
805
package com.nobeg.adapter; import java.io.InputStream; /* * * 自定义主页面导航列表适配器 */ public class MainAdapter extends Bas...
分类:
其他好文 时间:
2015-04-16 17:16:10
阅读次数:
161
1 public class SensorZhinan extends Activity implements SensorEventListener{ 2 3 private ImageView point; 4 private SensorManager sensor; 5 ...
分类:
其他好文 时间:
2015-04-16 16:58:31
阅读次数:
128
- (void)centerImageAndTitle:(float)spacing{ // get the size of the elements here for readability CGSize imageSize = self.imageBtn.imageView.frame.si.....
分类:
其他好文 时间:
2015-04-16 12:03:26
阅读次数:
180
Android中国开发精英②:207203815目前包括: Android开源项目第一篇——个性化控件(View)篇 包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、Sc...
分类:
移动开发 时间:
2015-04-15 19:29:21
阅读次数:
449
在Android里可以逐帧的播放图片,然后产生一种动态的效果,准备好几张连续的图片,然后在于源程序res文件夹下建立anim文件夹,然后新建一个XML
XML代码如下:
xml version="1.0" encoding="utf-8"?>
animation-list xmlns:android="http://schemas.android.com/apk/res/andr...
分类:
移动开发 时间:
2015-04-15 17:06:24
阅读次数:
175
android系统的照相功能,已实现2种方法,可供大家参考:1.调用系统摄像头来拍照首先,找到AndroidManifest.xml文件里加入用户权限其次,在主类java文件里加入2个控件(button和imageview),是用来触发按钮事件和显示图片的,纯是个人爱好final int TAKE_...
分类:
移动开发 时间:
2015-04-14 16:22:34
阅读次数:
155
http://www.linuxidc.com/Linux/2014-12/110764.htm Android 自定义控件——图片剪裁http://www.cnblogs.com/linjzong/p/4212474.htmlAndroid:手把手教你打造可缩放移动的ImageView(下)调用a...
分类:
其他好文 时间:
2015-04-14 16:12:40
阅读次数:
134