activity_main.xml 添加自己画的view 组件

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<myapplication21.lum.com.mycanvas.MyView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

</LinearLayout>
--------------------- 

posted on 2019-08-03 19:18  激流勇进1  阅读(529)  评论(0编辑  收藏  举报