今日总结2023/02/23

今日学习了按钮控件的制作

1.新建module

2.找到activity_main.xml(首先项目内要有TextView)

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<Button

android:text="666666666"
android:background="@drawable/baseline_catching_pokemon_24"
android:backgroundTint="@color/btn_color"
android:layout_width="200dp"
android:layout_height="100dp"
/>


</LinearLayout>
通过各个属性控制该组件

 

posted @ 2023-02-24 22:17  十乂  阅读(14)  评论(0)    收藏  举报