摘要: 设置adjustViewBounds // 是否保持宽高比<ImageView android:id="@+id/iv_test" android:layout_width="fill_parent" android:layout_height="wrap_content" android:adju 阅读全文
posted @ 2016-09-19 22:26 runleo 阅读(24543) 评论(0) 推荐(0)
摘要: 下载PagerSlidingTabStrip https://github.com/astuetz/PagerSlidingTabStrip主界面: 1 public class MainActivity extends FragmentActivity { 2 3 private ... 阅读全文
posted @ 2015-04-16 17:43 runleo 阅读(283) 评论(0) 推荐(0)
摘要: 1 public class BitmapUtil { 2 3 private static BitmapFactory.Options opt; 4 /** 5 * 从SD Card中获取图片 6 * 7 */ 8 public ... 阅读全文
posted @ 2015-04-16 16:00 runleo 阅读(132) 评论(0) 推荐(0)
摘要: 1 public class SensorZhinan extends Activity implements SensorEventListener{ 2 3 private ImageView point; 4 private SensorManager sensor; 5 ... 阅读全文
posted @ 2015-04-16 15:50 runleo 阅读(121) 评论(0) 推荐(0)
摘要: 1 public class MainApp extends Application { 2 3 private static ArrayList> activitys; 4 public volatile static MainApp instance; 5 ... 阅读全文
posted @ 2015-04-16 15:46 runleo 阅读(162) 评论(0) 推荐(0)
摘要: 自定义一个view 1 public class AdView extends RelativeLayout { 2 3 4 private List urls; 5 private ViewPager pager; 6 private int currentItem = 0; 7... 阅读全文
posted @ 2015-04-16 15:43 runleo 阅读(129) 评论(0) 推荐(0)
摘要: public void saveImage2Phone(SlideShowImage image){ String imagePath; if(Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){ ... 阅读全文
posted @ 2014-11-11 18:13 runleo 阅读(690) 评论(0) 推荐(0)
摘要: 首先需要到ShareSDK官方网站注册并且下载SDK,创建应用,获得ShareSDK的Appkey;文件如图: 在ShareSDK中打开即可;输入项目名称和包名,选择要分享的平台,点击确定会自动生成一个文件夹,把次文件夹里面的内容复制到新建好的项目中,代替原项目中的文件即可... 阅读全文
posted @ 2014-09-30 15:29 runleo 阅读(518) 评论(0) 推荐(0)