android开发教程之view组件添加边框示例

2019-12-10 20:11:02于丽

            <TextView
                 android:layout_width="wrap_content"
                 android:layout_width="wrap_content"
                 android:textColor="#FFFFFF"
                 android:textSize="22sp"
                 android:background="#0000000"/>
       </com.android.camera.ui.RoateLayout>
</RelativeLayout>

 

需要注意的是我给TextureView的父容器RelativeLayout设置了Drawable,并设置了Padding。