Android Studio TextView和Button详细步骤

       Android Studio TextView和Button
   1.编辑TextView和Button(你想要的形状,文字等等)
   2.声明控件TextView和Button
   3.用findViewByID找到控件TextView和Button
   4.用声明出的变量设置点击按钮
   5.创建一个新的empty activity
   6.检察在AndroidMainfest.xml中是否有了新建的声明(一般情况下自动声明),如果没有要声明,   如下:
   7.在新建的xml中进行设计![在这里插入图片描述](https://img-blog.csdnimg.cn/20200108113445590.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1OTUxNjI5,size_16,color_FFFFFF,t_70![在这里插入图片描述](https://img-blog.csdnimg.cn/20200108113422836.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1OTUxNjI5,size_16,color_FFFFFF,t_70)
   
    点进去会有另一个页面

android:id="@+id/t_3"
android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:text=“用按钮跳到下个页面但是”
android:maxLines=“2”
android:ellipsize=“end”
android:textColor="#CD9B9B"
android:textSize=“69sp”

    />



你可能感兴趣的:(Android Studio TextView和Button详细步骤)