zoukankan      html  css  js  c++  java
  • 兴趣爱好

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout 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=".MainActivity2">
     
     
        <TextView
            android:id="@+id/tv21"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="用户名:"
            android:textSize="80px"
            android:layout_marginTop="100dp"
            android:layout_marginLeft="50dp"
            />
        <TextView
            android:id="@+id/tv22"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="密码    :"
            android:textSize="80px"
            android:layout_below="@+id/tv21"
            android:layout_marginLeft="50dp"
            />
        <TextView
            android:id="@+id/tv23"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="性别    :"
            android:textSize="80px"
            android:layout_below="@+id/tv22"
            android:layout_marginLeft="50dp"
            />
        <TextView
            android:id="@+id/tv24"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="爱好    :"
            android:textSize="80px"
            android:layout_below="@+id/tv23"
            android:layout_marginLeft="50dp"
            />
     
     
        <TextView
            android:id="@+id/tv221"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/tv21"
            android:layout_marginTop="100dp"
            android:textSize="75px"
            />
     
        <TextView
            android:id="@+id/tv222"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/tv22"
            android:layout_below="@+id/tv221"
            android:textSize="75px"
            />
        <TextView
            android:id="@+id/tv223"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/tv22"
            android:textSize="75px"
            android:layout_below="@+id/tv222"
     
            />
        <TextView
            android:id="@+id/tv224"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/tv223"
            android:layout_toRightOf="@id/tv23"
            android:layout_marginTop="10dp"
            android:textSize="75px"
    />
    </RelativeLayout>
    package com.example.activtiy;
     
    import androidx.appcompat.app.AppCompatActivity;
     
    import android.content.Intent;
    import android.os.Bundle;
    import android.widget.Button;
    import android.widget.TextView;
    import android.widget.Toast;
     
     
    public class MainActivity2 extends AppCompatActivity {
        private TextView tv221,tv222,tv223,tv224;
     
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main2);
            tv221 = (TextView)findViewById(R.id.tv221);
            tv222 = (TextView)findViewById(R.id.tv222);
            tv223 = (TextView)findViewById(R.id.tv223);
            tv224 = (TextView)findViewById(R.id.tv224);
     
            Intent intent = getIntent();
            tv221.setText(intent.getStringExtra("name"));
     
            tv222.setText(intent.getStringExtra("password"));
     
            tv223.setText(intent.getStringExtra("sex"));
     
            tv224.setText(intent.getStringExtra("ai"));
     
        }
    }
  • 相关阅读:
    【网络安全设备系列】2、IDS(入侵检测系统)
    【网络安全设备系列】4、漏洞扫描设备
    【网络安全设备系列】3、IPS(入侵防御系统)
    【网络安全设备系列】1、防火墙
    [操作系统作业]os
    [web知识]网页当中使用base64表示png图片
    [struts]异常Caught Exception while registering Interceptor class org.crazyit.auction.action.interceptor.AuthorityInterceptor interceptor
    [struts]使用struts验证框架验证表单输入如何配置Action
    [操作系统作业]os实验三:进程的管道通信
    [spring]异常 Illegal UTF8 string in constant pool in class file com/mchange/lang/PotentiallySecondaryException
  • 原文地址:https://www.cnblogs.com/1234y-7/p/13887597.html
Copyright © 2011-2022 走看看