![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android应用开发
小泊
学无止境!
展开
-
安卓学习之布局
RelativeLayout用到的一些重要的属性: 第一类:属性值为true或false android:layout_centerHrizontal 水平居中 android:layout_centerVertical 垂直居中 android:layout_centerInparent 相对于父元素完全居中 and原创 2014-09-18 22:16:44 · 293 阅读 · 0 评论 -
Android开发-对bitmap的一些的操作
/** 获取 drawable 的图片 可以循环 1.图名 2.drawable 3.包名 **/int imgid = getResources().getIdentifier("ic_launcher", "drawable", "com.example.anywight"); text.setBackgroundResource(imgid); /** 通过图片id获得原创 2015-08-19 10:18:21 · 353 阅读 · 0 评论