This commit is contained in:
YGRXZYGR 2024-06-19 10:19:25 +08:00
parent 5c0686b778
commit 75dc2590f3
8 changed files with 483 additions and 15 deletions

View File

@ -14,27 +14,20 @@
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<!-- 访问网络进行地图相关业务数据请求包括地图数据路线规划POI检索等 -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- 获取网络状态,根据网络状态切换进行数据请求网络转换 -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- 读取外置存储。如果开发者使用了so动态加载功能并且把so文件放在了外置存储区域则需要申请该权限否则不需要 -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- 写外置存储。如果开发者使用了离线地图,并且数据写在外置存储区域,则需要申请该权限 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- 这个权限用于进行网络定位 -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- 这个权限用于访问GPS定位 -->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" /> <!-- 访问网络进行地图相关业务数据请求包括地图数据路线规划POI检索等 -->
<uses-permission android:name="android.permission.INTERNET" /> <!-- 获取网络状态,根据网络状态切换进行数据请求网络转换 -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- 读取外置存储。如果开发者使用了so动态加载功能并且把so文件放在了外置存储区域则需要申请该权限否则不需要 -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <!-- 写外置存储。如果开发者使用了离线地图,并且数据写在外置存储区域,则需要申请该权限 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- 这个权限用于进行网络定位 -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <!-- 这个权限用于访问GPS定位 -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<queries package="${applicationId}">
<intent>
<action android:name="android.media.action.IMAGE_CAPTURE"></action>
<action android:name="android.media.action.IMAGE_CAPTURE" />
</intent>
<intent>
<action android:name="android.media.action.ACTION_VIDEO_CAPTURE"></action>
<action android:name="android.media.action.ACTION_VIDEO_CAPTURE" />
</intent>
</queries>
@ -52,9 +45,17 @@
android:theme="@style/Theme.MyProject"
android:usesCleartextTraffic="true"
tools:targetApi="31">
<activity
android:name=".Personal_dataActivity"
android:exported="false" />
<activity
android:name=".HelperActivity"
android:exported="false" />
<meta-data
android:name="com.baidu.lbsapi.API_KEY"
android:value="01VrbOjU0YWyvJ6NChF3MgB8FOTXUvai" />
<activity
android:name=".MapActivity"
android:exported="false" />

View File

@ -0,0 +1,27 @@
package com.hnucm.c202201020328;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
public class HelperActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_helper);
ImageView imageView=findViewById(R.id.imageView35);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
}

View File

@ -0,0 +1,27 @@
package com.hnucm.c202201020328;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
public class Personal_dataActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_personal_data);
ImageView imageView=findViewById(R.id.imageView39);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- 背景色 -->
<solid android:color="#FFFFFF"/>
<!-- 边框色 -->
<stroke android:width="1dip" android:color="#BBBBBB" />
</shape>

View File

@ -0,0 +1,25 @@
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!--
注释说明:
shape形状设置形状为rectangle 长方形。
solid实体 android:color="#FFFFFF" 实体颜色为白色。
corners角落将四个角都设置为非常大的值使得整个形状变成圆形。
stroke设置边框的颜色
注意,这里的边框颜色可以更改为自己喜欢的颜色。
-->
<solid
android:color="#E2E0E0" >
</solid>
<corners
android:radius="1000dp" />
<stroke
android:width="1dip"
android:color="#BBBBBB" />
</shape>

View File

@ -0,0 +1,25 @@
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!--
注释说明:
shape形状设置形状为rectangle 长方形。
solid实体 android:color="#FFFFFF" 实体颜色为白色。
corners角落将四个角都设置为非常大的值使得整个形状变成圆形。
stroke设置边框的颜色为蓝色android:color="@color/blue"
注意,这里的边框颜色可以更改为自己喜欢的颜色。
-->
<solid
android:color="#6CED29" >
</solid>
<corners
android:radius="1000dp" />
<stroke
android:width="1dip"
android:color="#BBBBBB" />
</shape>

View File

@ -0,0 +1,134 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".HelperActivity">
<ImageView
android:id="@+id/imageView33"
android:layout_width="65dp"
android:layout_height="56dp"
android:layout_marginStart="16dp"
android:layout_marginTop="56dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:srcCompat="@tools:sample/avatars" />
<TextView
android:id="@+id/textView70"
android:layout_width="81dp"
android:layout_height="40dp"
android:layout_marginStart="24dp"
android:layout_marginTop="8dp"
android:text="小助手"
android:textSize="22sp"
android:textStyle="bold"
android:textColor="#101010"
app:layout_constraintStart_toEndOf="@+id/imageView33"
app:layout_constraintTop_toTopOf="@+id/imageView33" />
<TextView
android:id="@+id/textView71"
android:layout_width="258dp"
android:layout_height="60dp"
android:layout_marginStart="48dp"
android:layout_marginTop="20dp"
android:text="TextView"
android:gravity="center"
android:background="@drawable/text_shape1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView33" />
<TextView
android:id="@+id/textView72"
android:layout_width="258dp"
android:layout_height="60dp"
android:layout_marginEnd="15dp"
android:background="@drawable/text_shape2"
android:gravity="center"
android:text="TextView"
app:layout_constraintEnd_toStartOf="@+id/imageView34"
app:layout_constraintTop_toTopOf="@+id/imageView34" />
<ImageView
android:id="@+id/imageView34"
android:layout_width="65dp"
android:layout_height="56dp"
android:layout_marginTop="64dp"
android:layout_marginEnd="28dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView71"
tools:srcCompat="@tools:sample/avatars" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="70dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/textView73"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/setbar_bg"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />
<ImageView
android:id="@+id/imageView35"
android:layout_width="52dp"
android:layout_height="42dp"
android:layout_marginStart="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:srcCompat="@tools:sample/avatars" />
<ImageView
android:id="@+id/imageView36"
android:layout_width="52dp"
android:layout_height="42dp"
android:layout_marginEnd="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:srcCompat="@tools:sample/avatars" />
<TextView
android:id="@+id/textView74"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:background="#BBBBBB"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/imageView35"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView75"
android:layout_width="216dp"
android:layout_height="43dp"
android:layout_marginStart="12dp"
android:background="@drawable/setbar_bg"
android:text="我来说几句..."
android:textSize="25sp"
android:textColor="#BBBBBB"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/textView74"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.592" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,222 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
tools:context=".Personal_dataActivity">
<TextView
android:id="@+id/textView77"
android:layout_width="match_parent"
android:layout_height="65dp"
android:layout_marginTop="1dp"
android:background="@drawable/frame"
android:gravity="center_vertical|start"
android:paddingStart="35dp"
android:text="梦日记头像"
android:textColor="#101010"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView76" />
<TextView
android:id="@+id/textView76"
android:layout_width="match_parent"
android:layout_height="60dp"
android:text="个人资料"
android:textStyle="bold"
android:gravity="center"
android:textSize="22sp"
android:background="#AFEEEE"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView38"
android:layout_width="65dp"
android:layout_height="50dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="24dp"
app:layout_constraintEnd_toEndOf="@+id/textView77"
app:layout_constraintTop_toTopOf="@+id/textView77"
tools:srcCompat="@tools:sample/avatars" />
<TextView
android:id="@+id/textView78"
android:layout_width="match_parent"
android:layout_height="65dp"
android:layout_marginTop="16dp"
android:background="@drawable/frame"
android:gravity="center_vertical|start"
android:paddingStart="35dp"
android:text="梦日记昵称"
android:textColor="#101010"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView77" />
<TextView
android:id="@+id/textView79"
android:layout_width="108dp"
android:layout_height="33dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="4dp"
android:text="微信昵称"
android:textColor="#797676"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="@+id/textView78"
app:layout_constraintTop_toTopOf="@+id/textView78" />
<TextView
android:id="@+id/textView80"
android:layout_width="match_parent"
android:layout_height="65dp"
android:background="@drawable/frame"
android:gravity="center_vertical|start"
android:paddingStart="35dp"
android:text="微信号"
android:textColor="#101010"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView78" />
<TextView
android:id="@+id/textView81"
android:layout_width="108dp"
android:layout_height="33dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="4dp"
android:text="微信昵称"
android:textColor="#797676"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="@+id/textView80"
app:layout_constraintTop_toBottomOf="@+id/textView78" />
<TextView
android:id="@+id/textView82"
android:layout_width="match_parent"
android:layout_height="65dp"
android:background="@drawable/frame"
android:gravity="center_vertical|start"
android:paddingStart="35dp"
android:text="手机号"
android:textColor="#101010"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView80" />
<TextView
android:id="@+id/textView83"
android:layout_width="140dp"
android:layout_height="33dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="24dp"
android:text="18173534078"
android:textColor="#797676"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="@+id/textView82"
app:layout_constraintTop_toBottomOf="@+id/textView80" />
<TextView
android:id="@+id/textView84"
android:layout_width="match_parent"
android:layout_height="65dp"
android:background="@drawable/frame"
android:gravity="center_vertical|start"
android:paddingStart="35dp"
android:text="出生年月"
android:textColor="#101010"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView82" />
<TextView
android:id="@+id/textView85"
android:layout_width="115dp"
android:layout_height="33dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="18dp"
android:text="2004/5/29"
android:textSize="22sp"
android:textColor="#797676"
app:layout_constraintEnd_toEndOf="@+id/textView84"
app:layout_constraintTop_toBottomOf="@+id/textView82" />
<TextView
android:id="@+id/textView86"
android:layout_width="match_parent"
android:layout_height="65dp"
android:background="@drawable/frame"
android:gravity="center_vertical|start"
android:paddingStart="35dp"
android:text="星座"
android:textColor="#101010"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView84" />
<TextView
android:id="@+id/textView87"
android:layout_width="80dp"
android:layout_height="33dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="14dp"
android:text="双子座"
android:textSize="22sp"
android:textColor="#797676"
app:layout_constraintEnd_toEndOf="@+id/textView86"
app:layout_constraintTop_toBottomOf="@+id/textView84" />
<TextView
android:id="@+id/textView88"
android:layout_width="match_parent"
android:layout_height="65dp"
android:background="@drawable/frame"
android:gravity="center_vertical|start"
android:paddingStart="35dp"
android:text="性别"
android:textColor="#101010"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView86" />
<TextView
android:id="@+id/textView89"
android:layout_width="40dp"
android:layout_height="33dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="10dp"
android:text="男"
android:textColor="#797676"
android:textSize="22sp"
app:layout_constraintEnd_toEndOf="@+id/textView88"
app:layout_constraintTop_toBottomOf="@+id/textView86" />
<ImageView
android:id="@+id/imageView39"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginStart="16dp"
android:layout_marginBottom="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:srcCompat="@tools:sample/avatars" />
</androidx.constraintlayout.widget.ConstraintLayout>