@ -1,14 +1,25 @@
|
|||||||
package com.example.leudaemialikeme.Activity;
|
package com.example.leudaemialikeme.Activity;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import com.example.leudaemialikeme.R;
|
import com.example.leudaemialikeme.R;
|
||||||
|
|
||||||
public class AboutActivity extends BaseActivity {
|
public class AboutActivity extends BaseActivity {
|
||||||
|
ImageView about_back;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_about);
|
setContentView(R.layout.activity_about);
|
||||||
|
about_back=findViewById(R.id.about_back);
|
||||||
|
about_back.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,26 @@
|
|||||||
package com.example.leudaemialikeme.Activity;
|
package com.example.leudaemialikeme.Activity;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import com.example.leudaemialikeme.R;
|
import com.example.leudaemialikeme.R;
|
||||||
|
|
||||||
public class SafetyActivity extends BaseActivity {
|
public class SafetyActivity extends BaseActivity {
|
||||||
|
|
||||||
|
private ImageView safety_back;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_safety);
|
setContentView(R.layout.activity_safety);
|
||||||
|
|
||||||
|
safety_back=(ImageView)findViewById(R.id.safety_back);
|
||||||
|
safety_back.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.example.leudaemialikeme.Activity;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.os.Handler;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
|
import com.example.leudaemialikeme.R;
|
||||||
|
|
||||||
|
public class SplashActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.activity_splash);
|
||||||
|
new Handler().postDelayed(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
Log.e("splash","开始跳转");
|
||||||
|
Intent mainIntent = new Intent(SplashActivity.this, LoginActivity.class);
|
||||||
|
startActivity(mainIntent);
|
||||||
|
Log.e("splash","跳转下一页面");
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
}, 1900);
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,17 @@
|
|||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<gradient
|
||||||
|
|
||||||
|
android:startColor="@color/white"
|
||||||
|
|
||||||
|
android:centerColor="@color/white"
|
||||||
|
|
||||||
|
android:endColor="@color/white"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/>
|
||||||
|
<corners
|
||||||
|
android:radius="30dp"/>
|
||||||
|
|
||||||
|
</shape>
|
@ -0,0 +1,17 @@
|
|||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<gradient
|
||||||
|
|
||||||
|
android:startColor="#07c160"
|
||||||
|
|
||||||
|
android:centerColor="#07c160"
|
||||||
|
|
||||||
|
android:endColor="#07c160"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/>
|
||||||
|
<corners
|
||||||
|
android:radius="30dp"/>
|
||||||
|
|
||||||
|
</shape>
|
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 686 B |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 3.6 KiB |
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<corners android:radius="16dp" />
|
||||||
|
<solid android:color="#FFFFFF" />
|
||||||
|
</shape>
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<corners android:radius="16dp" />
|
||||||
|
<solid android:color="@color/white" />
|
||||||
|
</shape>
|
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,18 @@
|
|||||||
|
<?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"
|
||||||
|
android:background="@color/white"
|
||||||
|
tools:context=".Activity.SplashActivity">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@drawable/splash_background"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_alignParentStart="true"
|
||||||
|
android:layout_alignParentLeft="true" />
|
||||||
|
</LinearLayout>
|