1) set adjustViewBounds to true
2) set maxWidth and maxHeight to 100
3) set the height and width layout params to WRAP_CONTENT.

android:adjustViewBounds="true"android:maxHeight="100px"android:maxWidth="100px"android:layout_width="wrap_content"android:layout_height="wrap_content"


更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 手工安装android-sdk-windows
  2. Android滑动事件冲突解决 Touch事件处理
  3. Ionic2实现自定义Cordova插件-Android屏
  4. 【Android开发进阶系列,整理】Android与h5
  5. Android获取Cookies,持久化PHPSESSID (Ok
  6. 安卓中引用工程
  7. android 4.2 rtlSupport对UI性能的坑
  8. Android中使用"running services"查看ser
  9. Android和H5交互
  10. Android(安卓)回调机制举例及个人理解