替换图标 适当调整大小

This commit is contained in:
BA7LZD 2020-05-18 21:51:20 +08:00
parent 993464f056
commit f3f76711cd
25 changed files with 118 additions and 226 deletions

View File

@ -14,9 +14,8 @@
android:label="@string/app_name"
android:maxAspectRatio="2.4"
android:resizeableActivity="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/FullTheme"
android:theme="@style/AppTheme"
tools:ignore="UnusedAttribute">
<meta-data

View File

@ -2,8 +2,14 @@ package com.yuxihan.sdu;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
import androidx.annotation.NonNull;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.gyf.immersionbar.ImmersionBar;
import com.yuxihan.sdu.comm.BaseActivity;
import com.yuxihan.sdu.gsv.SimpleDetailActivityMode2;
@ -13,13 +19,34 @@ public class MainActivity extends BaseActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ImmersionBar.with(this).titleBar(R.id.toolbar)
.navigationBarColor(R.color.shape1)
.init();
findViewById(R.id.start_local_video).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(MainActivity.this, SimpleDetailActivityMode2.class));
}
});
//设置导航栏菜单项Item选中监听
((BottomNavigationView) findViewById(R.id.bottomNavigationView))
.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
String title = item.getTitle().toString();
switch (item.getItemId()) {
case R.id.item_bottom_1:
Toast.makeText(getApplicationContext(), "Item1", Toast.LENGTH_SHORT).show();
break;
case R.id.item_bottom_2:
Toast.makeText(getApplicationContext(), "Item2", Toast.LENGTH_SHORT).show();
break;
case R.id.item_bottom_3:
Toast.makeText(getApplicationContext(), "Item3", Toast.LENGTH_SHORT).show();
break;
}
return true;
}
});
}
}

View File

@ -1,30 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="0"
android:centerX="0.7"
android:endColor="@color/shape2"
android:startColor="@color/shape1"
android:centerColor="@color/shape3"
android:type="linear" />
</shape>

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:fillColor="#FF000000"
android:pathData="M610.5,576.9c3,-13.7 -3.9,-27.3 -16,-33.3 29.8,-11.4 57.1,-29.1 80.4,-52.3 43.5,-43.5 67.5,-101.4 67.5,-162.9s-24,-119.4 -67.5,-162.9S573.5,98 512,98s-119.4,24 -162.9,67.5 -67.5,101.4 -67.5,162.9 24,119.4 67.5,162.9c22.9,22.9 49.8,40.4 79,51.8 -12.9,3.2 -25.6,7 -38.1,11.7 -37.7,13.9 -72.5,34.1 -103.5,59.9 -62.3,52 -105,124.2 -120.3,203.5 -3.1,16.3 7.5,32 23.8,35.1 1.9,0.4 3.8,0.5 5.7,0.5 14.1,0 26.7,-10 29.4,-24.3C251.6,692.4 372.2,593 512,593c21.2,0 42.3,2.3 62.8,6.8 16.2,3.5 32.1,-6.8 35.7,-22.9zM341.6,328.4C341.6,234.5 418,158 512,158s170.4,76.4 170.4,170.4S605.9,498.7 512,498.7s-170.4,-76.4 -170.4,-170.3zM907.3,736.9c-11,-7.5 -17.6,-20 -17.6,-33.3 0,-13.2 6.5,-25.6 17.3,-33.1l12.6,-8.8 -5.2,-14.4c-7,-19.6 -17.5,-37.6 -31.2,-53.4l-9.9,-11.4 -13.7,6.4c-5.4,2.5 -11.1,3.8 -17,3.8 -21,0 -38.3,-15.7 -40.2,-36.6L801,541l-14.9,-2.8c-20.3,-3.8 -41.5,-3.8 -61.8,0l-14.9,2.8 -1.4,15.1c-1.9,20.9 -19.2,36.6 -40.2,36.6 -5.9,0 -11.7,-1.3 -17,-3.8l-13.7,-6.4 -9.9,11.4c-13.7,15.8 -24.1,33.8 -31.2,53.4l-5.2,14.4 12.6,8.8c10.9,7.6 17.3,20 17.3,33.1 0,13.3 -6.6,25.8 -17.6,33.3l-12.6,8.6 5,14.5c6.8,19.6 17.1,37.6 30.6,53.5l10,11.8 14,-6.8c5.5,-2.7 11.4,-4 17.6,-4 21.2,0 38.9,16.5 40.3,37.6l1,15.5 15.3,2.8c10.1,1.9 20.5,2.8 30.8,2.8s20.7,-0.9 30.8,-2.8l15.3,-2.8 1,-15.5c1.4,-21.1 19.1,-37.6 40.3,-37.6 6.2,0 12.1,1.4 17.6,4l14,6.8 10,-11.8c13.5,-15.9 23.8,-33.9 30.6,-53.5l5,-14.5 -12.4,-8.6zM862,776.9c-6.3,-1.5 -12.7,-2.3 -19.3,-2.3 -36.4,0 -67.7,24.6 -77.3,58.4 -6.7,0.5 -13.5,0.5 -20.2,0 -9.6,-33.8 -40.9,-58.4 -77.3,-58.4 -6.6,0 -13,0.8 -19.3,2.3 -3.8,-5.6 -7.2,-11.5 -10.1,-17.6 14.2,-14.8 22.4,-34.7 22.4,-55.6 0,-20.7 -8,-40.4 -21.9,-55.1 3,-6.3 6.5,-12.3 10.5,-18 6,1.4 12.2,2.1 18.4,2.1 20.2,0 39.5,-7.5 54.3,-21.1 10.7,-9.8 18.4,-22.1 22.5,-35.7 7,-0.6 14,-0.6 21,0 4.2,13.6 11.9,25.9 22.5,35.7 14.9,13.6 34.1,21.1 54.3,21.1 6.3,0 12.4,-0.7 18.4,-2.1 4,5.7 7.5,11.7 10.5,18 -13.9,14.8 -21.9,34.5 -21.9,55.1 0,21 8.2,40.8 22.4,55.6 -2.7,6.1 -6.1,12 -9.9,17.6zM755.3,633.2c-39.2,0 -71.2,31.9 -71.2,71.2 0,39.2 31.9,71.2 71.2,71.2s71.2,-31.9 71.2,-71.2c0,-39.3 -32,-71.2 -71.2,-71.2zM755.3,735.5c-17.2,0 -31.2,-14 -31.2,-31.2s14,-31.2 31.2,-31.2 31.2,14 31.2,31.2 -14,31.2 -31.2,31.2z"/>
</vector>

View File

@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:pathData="M139.4,163.2c-5.9,-0.6 -11.8,-1.3 -17.6,-1.7v-0.2c5.8,0.5 11.7,1.1 17.6,1.9zM481.7,530.3h-0.2c-0.2,-5.9 -0.6,-11.8 -1.3,-17.4 0.6,5.6 1,11.5 1.5,17.4zM396.8,860c-13.2,13.4 -27.7,26 -43,37.8L341,881.2V860h55.8z"
android:fillColor="#1E1E1E"/>
<path
android:pathData="M328.1,864.3h160.4v42H328.1z"
android:fillColor="#1E1E1E"/>
<path
android:pathData="M923.3,192.6c-1.8,-0.1 -3.7,-0.3 -5.6,-0.4 -179.7,-0.4 -337.2,108.9 -402.9,269.4C474.5,268 306.9,123.3 101.3,118.3c-3.8,-0.2 -7.6,-0.2 -11.5,-0.2l-10.7,-0.4v21.6c0.2,230.4 175.4,416.8 402.6,433C476.2,688 421,793.4 328.1,864.4l12.8,16.8L340.9,860h55.9c59.6,-59 100,-133.1 117.4,-214.4 14.7,60.3 15.5,123.7 2.5,184.8h42.7c16.6,-86.2 8.3,-176 -24.2,-257.5 201,-9.7 369.6,-156.5 405.7,-355.7l4,-21.4 -21.6,-3.2zM481.4,530.3c-196.1,-15.8 -348.6,-172 -359.7,-368.8v-0.2c5.9,0.4 11.8,1 17.6,1.9 6.5,0.8 12.8,1.7 19.3,2.9 6.5,0.8 12.8,2.3 19.1,3.8 6.3,1.3 12.4,2.9 18.5,4.6 6.3,1.5 12.2,3.4 18.3,5.5 6.1,1.9 12.2,4 18.1,6.5 5.9,2.1 11.6,4.6 17.2,7.1 5.9,2.3 11.3,5 17,8 5.7,2.5 11.1,5.5 16.6,8.8 5.5,2.7 10.7,5.9 16,9.4 5.3,3.2 10.5,6.5 15.5,10.3 17.6,12.2 34.4,26 50,41.2 11.5,11.3 49.6,58.8 52.7,64 3.6,5 6.9,10.3 9.9,15.8 3.4,5.3 14.9,27.3 17.4,33 2.7,5.7 18.1,45.4 19.7,50.8 2.1,6.7 8.6,33 9.9,39.3 2.5,12.6 4.4,25.6 5.7,38.6 0.6,5.7 1,11.5 1.5,17.4h-0.3zM536.3,530.9c41.4,-165.7 186.1,-285.8 358,-295.9 -41.4,165.9 -186.3,286.1 -358,295.9z"
android:fillColor="#1E1E1E"/>
</vector>

View File

@ -1,170 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>

View File

@ -0,0 +1,21 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:pathData="M442.8,176.4c-134,0 -239.5,120.8 -272,220 -0.2,0.5 -0.3,1 -0.5,1.6 -1.5,4.8 -2.4,9.5 -0.9,14.3 1.7,5.3 5.3,9.7 10.2,12.3l0.1,0.1c3.2,1.6 6.3,2.3 9.6,2.3 7.8,0 16.1,-3.7 18.6,-11.2 0.2,-0.6 0.4,-1.3 0.7,-1.9 29.4,-85.1 127,-199.8 234.3,-195.7 11.5,0.4 20.9,-9.4 20.9,-20.9 -0.1,-11.5 -9.5,-20.9 -21,-20.9zM628.6,244.3c-3.7,-3.1 -8.5,-4.9 -13.4,-4.9 -6.1,0 -12,2.7 -16,7.4 -3.5,4.2 -5.3,9.7 -4.8,15.3 0.6,5.6 3.2,10.7 7.4,14.1 9.4,7.9 18.1,16.3 26.1,25.3 6.3,7.1 16.6,9.1 25.1,4.7 12.2,-6.2 15.1,-22.3 6,-32.5 -9.4,-10.4 -19.5,-20.2 -30.4,-29.4z"
android:fillColor="#1A1A1A"/>
<path
android:pathData="M499.8,98.7c-1.1,-0.2 -2.2,-0.3 -3.3,-0.3 -10.2,0 -19,7.6 -20.6,17.6 -0.8,5.5 0.5,11 3.8,15.5 3.3,4.6 8.1,7.6 13.6,8.4 30.3,4.9 50.9,34.5 45.9,66.1 -4.4,28.1 -28.4,49.3 -55.7,49.3 -2.8,0 -5.6,-0.2 -8.4,-0.7 -1.1,-0.2 -2.2,-0.2 -3.4,-0.2 -10.1,0 -19,7.5 -20.6,17.6 -0.8,5.5 0.5,11 3.8,15.5 3.3,4.4 8.1,7.5 13.6,8.3 5,0.8 10.1,1.3 15,1.3 23.1,0 45.5,-8.4 63.1,-23.9 18,-15.4 29.9,-37 33.7,-60.7 8.7,-54.4 -27.5,-105.4 -80.5,-113.8zM280.5,672.2c-2.7,-2.3 -5.4,-4.7 -8,-7.2 -27.2,-25.7 -48.9,-57.6 -62.7,-93.9l-0.1,-0.2c-0.6,-1.3 -1.3,-2.7 -2.4,-4.2l-0.3,-0.4 -0.2,-0.4c-3.3,-7.7 -10.7,-12.7 -19.1,-12.7 -31.7,0 -57.5,-25.8 -57.5,-57.5 0,-31.6 25.6,-57.3 57.1,-57.5 9.7,-0.1 18.5,-6.5 20.7,-15.9 0.7,-2.9 0.7,-5.7 0.3,-8.4 -1.6,-9.9 -10.3,-17.5 -20.6,-17.5 -6,0 -11.9,0.5 -17.6,1.6 -46.4,8.3 -81.7,48.9 -81.7,97.7 0,23.7 8.5,46.6 24,64.6 15.3,17.7 36.4,29.5 59.4,33.2l2.2,0.3 0.8,2.1c15.8,37.4 39,70.7 68.1,98.4 3.3,3.1 6.6,6.1 10,9.1 8.3,7.2 20.7,6.9 28.5,-0.9 4.1,-4.1 6.1,-9.4 6.1,-14.7 0.1,-5.7 -2.3,-11.5 -7,-15.6zM444,867.9L330.7,754.6c-10.4,-10.4 -27.3,-10.4 -37.8,0 -10.4,10.4 -10.4,27.3 0,37.8l113.2,113.3c6.7,6.7 16.6,9.4 25.8,6.9s16.4,-9.7 18.9,-18.9 -0.1,-19.1 -6.8,-25.8z"
android:fillColor="#1A1A1A"/>
<path
android:pathData="M488.6,761.5l-41.4,34.1 -41.4,34.1 -20.1,16.6c-11.4,9.4 -28.2,7.7 -37.6,-3.6 -9.4,-11.4 -7.7,-28.2 3.6,-37.6l16.1,-13.3 41.4,-34.1 41.4,-34.1 9.3,9.3 28.7,28.6z"
android:fillColor="#1A1A1A"/>
<path
android:pathData="M927.3,271.2c-10.4,-10.4 -27.3,-10.4 -37.7,0l-80.9,80.9c-33.1,-29.2 -76.1,-40.3 -116.8,-33.8 -14.1,2.3 -27.9,6.6 -41,13.1 -13.4,6.7 -25.9,15.6 -37.1,26.7L362.2,609.9c-4.3,4.3 -8.2,8.7 -11.8,13.4L318.1,591c-10.4,-10.4 -27.3,-10.4 -37.8,0 -10.4,10.4 -10.4,27.3 0,37.8l95.1,95.1 33.8,33.8 17.1,17.1 20.8,20.8 122.6,122.6c10.4,10.4 27.3,10.4 37.7,0 10.4,-10.4 10.4,-27.3 0,-37.7l-32.2,-32.2c4.7,-3.7 9.1,-7.6 13.4,-11.8l251.7,-251.7c53.1,-53.2 55.8,-138.5 6.1,-194.8l80.9,-80.9c10.4,-10.5 10.4,-27.4 0,-37.9zM802.6,547L550.9,798.6c-4.2,4.2 -8.9,8 -13.8,11.3l-48.5,-48.5 -28.6,-28.5 -9.3,-9.3 -62.1,-62.1c3.2,-4.9 7,-9.5 11.3,-13.8l113.2,-113.2 69.2,69.2c10.4,10.4 27.3,10.4 37.8,0 10.4,-10.4 10.4,-27.3 0,-37.8l-69.2,-69.2 37.7,-37.8 69.2,69.2c10.4,10.4 27.3,10.4 37.8,0 10.4,-10.4 10.4,-27.3 0,-37.7l-69.2,-69.2 25.2,-25.2c34.8,-34.8 91.1,-34.8 125.8,0l25.2,25.2c34.7,34.7 34.7,91 0,125.8z"
android:fillColor="#1A1A1A"/>
<path
android:pathData="M368.5,433.5m-33.8,0a33.8,33.8 0,1 0,67.6 0,33.8 33.8,0 1,0 -67.6,0Z"
android:fillColor="#1A1A1A"/>
</vector>

View File

@ -4,8 +4,16 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#AAAAFA"
tools:context=".MainActivity">
<androidx.appcompat.widget.Toolbar
app:layout_constraintTop_toTopOf="parent"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:background="@drawable/shape"
app:title="雨曦成长记录系统"
app:titleTextColor="@android:color/white" />
<TextView
android:id="@+id/start_local_video"
android:layout_width="wrap_content"
@ -19,10 +27,11 @@
<com.google.android.material.bottomnavigation.BottomNavigationView
app:layout_constraintBottom_toBottomOf="parent"
app:labelVisibilityMode="labeled"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="46dp"
android:id="@+id/bottomNavigationView"
app:itemBackground="@color/gray"
app:itemBackground="@color/white_bg"
app:itemIconTint="@color/bottom_container_bg"
app:itemTextColor="@color/bottom_container_bg"
app:menu="@menu/menu_bottom_navigation_view" />

View File

@ -4,20 +4,20 @@
<item
android:id="@+id/item_bottom_1"
android:enabled="true"
android:icon="@drawable/wel_icon"
android:title="选项一"
android:icon="@drawable/ic_grow_record"
android:title="@string/grow_record"
app:showAsAction="ifRoom" />
<item
android:id="@+id/item_bottom_2"
android:enabled="true"
android:icon="@drawable/wel_icon"
android:title="选项二"
android:icon="@drawable/ic_vaccine"
android:title="@string/vaccine_plan"
app:showAsAction="ifRoom" />
<item
android:id="@+id/item_bottom_3"
android:enabled="true"
android:icon="@drawable/wel_icon"
android:title="选项三"
android:icon="@drawable/ic_account"
android:title="@string/account_info"
app:showAsAction="ifRoom" />
</menu>

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -4,5 +4,12 @@
<color name="colorPrimaryDark">#3700B3</color>
<color name="colorAccent">#03DAC5</color>
<color name="white">#FFFFFF</color>
<color name="gray">#FF00FF</color>
<color name="gray">#AAFFFFFF</color>
<color name="white_bg">#fafafa</color>
<color name="shape1">#5d8df7</color>
<color name="shape2">#5EB9F8</color>
<color name="shape3">#5CC2F8</color>
</resources>

View File

@ -1,5 +1,5 @@
<resources>
<string name="app_name">雨曦成长记录</string>
<string name="app_name">成长记录</string>
<string name="title_activity_login">登录</string>
<string name="prompt_email">邮箱</string>
<string name="prompt_password">密码</string>
@ -11,4 +11,7 @@
<string name="login_failed">"登录失败"</string>
<string name="detail_text">简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介</string>
<string name="yuxi">雨曦</string>
<string name="grow_record">成长记录</string>
<string name="account_info">账号信息</string>
<string name="vaccine_plan">疫苗计划</string>
</resources>

View File

@ -1,7 +1,7 @@
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>