提交 bf4c15a5 编写于 作者: S suhy

temp

上级 75e8745f
......@@ -11,18 +11,15 @@
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_register.xml" value="0.18614130434782608" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_update_photo.xml" value="0.19927536231884058" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_user_information.xml" value="0.17980072463768115" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/add_message.xml" value="0.12" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/add_message.xml" value="0.3081232492997199" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/addmessage.xml" value="0.17980072463768115" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/appbar.xml" value="0.17980072463768115" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/bottle_details.xml" value="0.176" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/draft_details.xml" value="0.264" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/drawer_header.xml" value="0.17980072463768115" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_chat.xml" value="0.17980072463768115" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_home.xml" value="0.1598731884057971" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_news.xml" value="0.17980072463768115" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_photo.xml" value="0.17617753623188406" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/historyrecord_item.xml" value="0.19927536231884058" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/message_details.xml" value="0.4" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/msg_left_layout.xml" value="0.19927536231884058" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/msg_right_layout.xml" value="0.19927536231884058" />
<entry key="..\:/Users/71962/Desktop/drift-bottle/MyHomeWork/app/src/main/res/layout/recycler_item.xml" value="0.19927536231884058" />
......@@ -65,20 +62,25 @@
<entry key="..\:/Users/suhy/Desktop/github/Android/MyHomeWork/app/src/main/res/layout/fragment_news.xml" value="0.19972826086956522" />
<entry key="..\:/Users/suhy/Desktop/github/Android/MyHomeWork/app/src/main/res/layout/fragment_photo.xml" value="0.16964285714285715" />
<entry key="..\:/Users/suhy/Desktop/github/Android/MyHomeWork/app/src/main/res/layout/userhead_item.xml" value="0.14791666666666667" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/drawable/ic_dashboard_black_24dp.xml" value="0.2564814814814815" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_ar.xml" value="0.13858695652173914" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_evalute.xml" value="0.2" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_historical_records.xml" value="0.13858695652173914" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_login.xml" value="0.264" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_login1.xml" value="0.2" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_main.xml" value="0.176" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_main.xml" value="0.264" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_register.xml" value="0.1793478260869565" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_update_photo.xml" value="0.1793478260869565" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/activity_user_information.xml" value="0.1793478260869565" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/add_message.xml" value="0.4" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/appbar.xml" value="0.264" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/drawer_header.xml" value="0.13858695652173914" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_blank.xml" value="0.16302083333333334" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_chat.xml" value="0.13858695652173914" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_home.xml" value="0.13858695652173914" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_item_list_dialog_list_dialog.xml" value="0.2223731884057971" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_item_list_dialog_list_dialog_item.xml" value="0.18541666666666667" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_mine.xml" value="0.17760416666666667" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_news.xml" value="0.11822916666666666" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/fragment_photo.xml" value="0.13858695652173914" />
<entry key="..\:/Users/suhy/Desktop/github/drift-bottle/MyHomeWork/app/src/main/res/layout/historyrecord_item.xml" value="0.13858695652173914" />
......
......@@ -14,6 +14,9 @@ android {
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}
buildTypes {
......@@ -29,6 +32,19 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
useIR = true
}
composeOptions {
kotlinCompilerExtensionVersion compose_version
kotlinCompilerVersion '1.5.21'
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}
dependencies {
......@@ -55,7 +71,4 @@ dependencies {
implementation files('libs\\gson-2.2.4.jar')
implementation files('libs\\IndoorscapeAlbumPlugin.jar')
implementation files('libs\\org.apache.http.legacy.jar')
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
\ No newline at end of file
......@@ -46,15 +46,17 @@
android:name=".activity.LoginActivity"
android:exported="true"
android:theme="@style/Theme.MyHomeWork.NoActionBar">
</activity>
<activity
android:name=".activity.MainActivity"
android:exported="true" >
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity
android:name=".activity.MainActivity"
android:exported="true" />
<provider
android:name="androidx.core.content.FileProvider"
......
package com.example.myhomework.activity;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.drawerlayout.widget.DrawerLayout;
......@@ -26,14 +27,9 @@ public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setSoftInputMode(WindowManager.LayoutParams. SOFT_INPUT_ADJUST_NOTHING);
//NgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
binding = ActivityMainBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
// ActionBar actionBar = getSupportActionBar();
// if (actionBar != null) {
// actionBar.hide();
// }
hideActionBar();
// mainActivity=this;
// UserService.ResetUserData();
// drawerLayout=binding.drawerLayout;
......@@ -48,4 +44,13 @@ public class MainActivity extends AppCompatActivity {
PermissionsUtils.verifyStoragePermissions(this);
}
private void hideActionBar(){
getWindow().setSoftInputMode(WindowManager.LayoutParams. SOFT_INPUT_ADJUST_NOTHING);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.hide();
}
}
}
package com.example.myhomework.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.example.myhomework.R;
/**
* A simple {@link Fragment} subclass.
* Use the {@link MapFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class MapFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
// TODO: Rename and change types of parameters
private String mParam1;
private String mParam2;
public MapFragment() {
// Required empty public constructor
}
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment BlankFragment.
*/
// TODO: Rename and change types and number of parameters
public static MapFragment newInstance(String param1, String param2) {
MapFragment fragment = new MapFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_map, container, false);
}
}
\ No newline at end of file
package com.example.myhomework.fragment;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.myhomework.R;
/**
* A simple {@link Fragment} subclass.
* Use the {@link MineFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class MineFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
// TODO: Rename and change types of parameters
private String mParam1;
private String mParam2;
public MineFragment() {
// Required empty public constructor
}
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment BlankFragment.
*/
// TODO: Rename and change types and number of parameters
public static MineFragment newInstance(String param1, String param2) {
MineFragment fragment = new MineFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_mine, container, false);
}
}
\ No newline at end of file
package com.example.myhomework.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Region;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
import com.example.myhomework.R;
import com.google.android.material.card.MaterialCardView;
/**
* Created by jingzz on 2020/3/20.
*/
public class RadiusCardView extends MaterialCardView {
private float tlRadiu;
private float trRadiu;
private float brRadiu;
private float blRadiu;
public RadiusCardView(Context context) {
this(context, null);
}
public RadiusCardView(Context context, AttributeSet attrs) {
this(context, attrs, R.attr.materialCardViewStyle);
}
public RadiusCardView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
setRadius(0);
TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.RadiusCardView);
tlRadiu = array.getDimension(R.styleable.RadiusCardView_rcv_topLeftRadiu, 0);
trRadiu = array.getDimension(R.styleable.RadiusCardView_rcv_topRightRadiu, 0);
brRadiu = array.getDimension(R.styleable.RadiusCardView_rcv_bottomRightRadiu, 0);
blRadiu = array.getDimension(R.styleable.RadiusCardView_rcv_bottomLeftRadiu, 0);
setBackground(new ColorDrawable());
}
@Override
protected void onDraw(Canvas canvas) {
Path path = new Path();
RectF rectF = getRectF();
float[] readius = {tlRadiu,tlRadiu,trRadiu,trRadiu,brRadiu,brRadiu,blRadiu,blRadiu};
path.addRoundRect(rectF,readius,Path.Direction.CW);
canvas.clipPath(path,Region.Op.INTERSECT);
super.onDraw(canvas);
}
private RectF getRectF() {
Rect rect = new Rect();
getDrawingRect(rect);
RectF rectF = new RectF(rect);
return rectF;
}
}
\ No newline at end of file
package com.example.myhomework.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.example.myhomework.R;
public class TopBar extends RelativeLayout {
private Button mLeftButton, mRightButton;
private TextView mTitleView;
private TopBarClickListener topBarClickListener;
public TopBar(Context context, AttributeSet attrs) {
super(context, attrs);
TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.TopBar);//获取自定义xml那些属性
int mLeftTextColor = ta.getColor(R.styleable.TopBar_leftTextColor,0);//取出对应的值,如果不能存在默认值为0
Drawable mBackground = ta.getDrawable(R.styleable.TopBar_background);
String mLeftText = ta.getString(R.styleable.TopBar_leftText);
int mRightTextColor = ta.getColor(R.styleable.TopBar_rightTextColor,0);
Drawable mRightBackground = ta.getDrawable(R.styleable.TopBar_rightBackground);
String mRightText = ta.getString(R.styleable.TopBar_rightText);
float mTextSize = ta.getDimension(R.styleable.TopBar_titleTextSize,10);
int mTitleTextColor = ta.getColor(R.styleable.TopBar_titleTextColor,0);
String mTitle = ta.getString(R.styleable.TopBar_title);
ta.recycle(); //避免重建时发生错误 资源回收
mLeftButton = new Button(context);
mRightButton = new Button(context);
mTitleView = new TextView(context);
//赋值
mLeftButton.setText(mLeftText); //标题
mLeftButton.setTextColor(mLeftTextColor);
mLeftButton.setBackground(mBackground);
mRightButton.setTextColor(mRightTextColor);
mRightButton.setBackground(mRightBackground);
mRightButton.setText(mRightText);
mTitleView.setText(mTitle);
mTitleView.setTextColor(mTitleTextColor);
mTitleView.setTextSize(mTextSize);
mTitleView.setGravity(Gravity.CENTER);
//布局
RelativeLayout.LayoutParams mLeftParams = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.MATCH_PARENT);
mLeftParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT,TRUE);
addView(mLeftButton,mLeftParams); //添加到viewGroup
RelativeLayout.LayoutParams mRightParams = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.MATCH_PARENT);
mRightParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT,TRUE);
addView(mRightButton,mRightParams); //添加到viewGroup
RelativeLayout.LayoutParams mTitleParams = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.MATCH_PARENT);
mTitleParams.addRule(RelativeLayout.CENTER_IN_PARENT,TRUE);
addView(mTitleView,mTitleParams); //添加到viewGroup
mRightButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if(topBarClickListener != null){
topBarClickListener.rightClick(); //右边点击事件
}
}
});
mLeftButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if(topBarClickListener != null){
topBarClickListener.leftClick(); //左边点击事件
}
}
});
}
/**
* 是否隐藏或者显示
* @param id 0 显示 其他为隐藏
* @param flag ture 显示 false 隐藏
*/
public void setButtonVisible(int id,boolean flag){
if(flag){
if(id == 0){
mLeftButton.setVisibility(VISIBLE);
}else {
mRightButton.setVisibility(VISIBLE);
}
}else {
if(id == 0){
mLeftButton.setVisibility(GONE);
}else {
mRightButton.setVisibility(GONE);
}
}
}
/**
* 暴露一个方法实现调用者来注册接口回调
* @param topBarClickListener
*/
public void setTopBarClickListener(TopBarClickListener topBarClickListener) {
this.topBarClickListener = topBarClickListener;
}
//定义接口
public interface TopBarClickListener{
/**
* 左按钮点击事件
*/
void leftClick();
/**
* 右按钮点击事件
*/
void rightClick();
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="#2792D9" android:state_checked="true" />
<item android:color="@android:color/white" android:state_checked="false"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout
<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/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.MainActivity"
tools:ignore="MissingConstraints">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/nav_view"
<com.example.myhomework.view.RadiusCardView
android:id="@+id/radiusCardView"
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="@color/white"
android:layout_height="wrap_content"
app:cardElevation="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0"
app:menu="@menu/bottom_nav_menu" />
<fragment
android:id="@+id/nav_host_fragment_activity_main"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@id/nav_view"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0"
app:navGraph="@navigation/mobile_navigation" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.drawerlayout.widget.DrawerLayout>
\ No newline at end of file
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:rcv_topLeftRadiu="20dp"
app:rcv_topRightRadiu="20dp">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_nav"
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="#B3D4EA"
app:itemIconSize="25dp"
app:itemIconTint="@color/selector_color"
app:itemTextColor="@color/selector_color"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0"
app:menu="@menu/bottom_nav_menu" />
</com.example.myhomework.view.RadiusCardView>
<ImageButton
android:id="@+id/imageButton2"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="@color/transparent"
android:scaleType="fitXY"
app:borderWidth="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.97"
app:srcCompat="@drawable/add_btn" />
<!-- <fragment-->
<!-- android:id="@+id/nav_host_fragment_activity_main"-->
<!-- android:name="androidx.navigation.fragment.NavHostFragment"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- app:defaultNavHost="true"-->
<!-- app:layout_constraintBottom_toTopOf="@id/nav_view"-->
<!-- app:layout_constraintHorizontal_bias="1.0"-->
<!-- app:layout_constraintLeft_toLeftOf="parent"-->
<!-- app:layout_constraintRight_toRightOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent"-->
<!-- app:layout_constraintVertical_bias="1.0"-->
<!-- app:navGraph="@navigation/mobile_navigation" />-->
</androidx.constraintlayout.widget.ConstraintLayout>
<?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:layout_height="match_parent"
android:layout_width="match_parent"
tools:context=".fragment.ChatFragment">
<include
android:id="@+id/include"
layout="@layout/appbar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.cardview.widget.CardView
android:layout_width="320dp"
android:layout_height="600dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.43">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/chatRecyclerView"
android:layout_width="310dp"
android:layout_height="540dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"/>
<EditText
android:id="@+id/messageEditText"
android:layout_width="208dp"
android:layout_height="49dp"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
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="1.0" />
<Button
android:id="@+id/sendButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="#F4F4F4"
android:text="发送"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.985"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cardView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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.404">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/userHeadRecyclerView"
android:layout_width="85dp"
android:layout_height="600dp" />
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
<?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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".fragment.HomeFragment"
>
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="70dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0"
tools:Text="占位Padding" />
<include
layout="@layout/appbar"
app:layout_constraintBottom_toTopOf="@+id/imageButton_UserItem_HomePage"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"></include>
<!-- 背景 -->
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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.166">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/imageButton_UserItem_HomePage"
android:layout_width="411dp"
android:layout_height="152dp"
android:background="@color/white"
android:selectableItemBackground="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<!--用户基本信息-->
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/imageView_UserHead_homepage"
android:layout_width="107dp"
android:layout_height="102dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.052"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
<TextView
android:id="@+id/textView_UserName_HomePage"
android:layout_width="189dp"
android:layout_height="40dp"
android:gravity="left"
android:text="用户名"
android:textSize="34sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.698"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.357" />
<TextView
android:id="@+id/textView_UserType_HomePage"
android:layout_width="101dp"
android:layout_height="27dp"
android:gravity="left"
android:text="个人账户"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.551"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.76" />
<ImageView
android:layout_width="19dp"
android:layout_height="25dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.91"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.503"
app:srcCompat="@drawable/minibutton" />
<!--用户基本信息-->
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.411"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/imageButton_Message_HomePage"
android:layout_width="413dp"
android:layout_height="70dp"
android:background="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.411" />
<!--我的消息-->
<ImageView
android:id="@+id/imageView2"
android:layout_width="54dp"
android:layout_height="41dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.137"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.42000002"
app:srcCompat="@drawable/icon_message" />
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我的消息"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/imageButton_Message_HomePage"
app:layout_constraintHorizontal_bias="0.458"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.426" />
<ImageView
android:layout_width="19dp"
android:layout_height="25dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/imageButton_Message_HomePage"
app:layout_constraintHorizontal_bias="0.872"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/imageButton_Message_HomePage"
app:layout_constraintVertical_bias="0.511"
app:srcCompat="@drawable/minibutton" />
<!--我的消息-->
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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.55"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/imageButton_Contact_HomePage"
android:layout_width="413dp"
android:layout_height="70dp"
android:background="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView19"
android:layout_width="19dp"
android:layout_height="25dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.875"
app:layout_constraintStart_toStartOf="@+id/imageButton_Contact_HomePage"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.55"
app:srcCompat="@drawable/minibutton" />
<!--浏览记录-->
<ImageView
android:layout_width="54dp"
android:layout_height="54dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/imageButton_Contact_HomePage"
app:layout_constraintHorizontal_bias="0.136"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.548"
app:srcCompat="@drawable/icon_hirstory" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="浏览记录"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.46"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.546" />
<!--浏览记录-->
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.674"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/imageButton_Settle_HomePage"
android:layout_width="413dp"
android:layout_height="70dp"
android:background="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView20"
android:layout_width="19dp"
android:layout_height="25dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.875"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.664"
app:srcCompat="@drawable/minibutton" />
<!--联系我们-->
<ImageView
android:layout_width="55dp"
android:layout_height="56dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.137"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.671"
app:srcCompat="@drawable/icon_contact" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="联系我们"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.46"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.67" />
<!--联系我们-->
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?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:layout_height="match_parent"
android:layout_width="match_parent"
tools:context=".fragment.MapFragment">
</androidx.constraintlayout.widget.ConstraintLayout>
<?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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".fragment.MineFragment"
>
<com.example.myhomework.view.TopBar
android:layout_width="match_parent"
android:layout_height="50dp"
android:id="@+id/topBar"
app:background="@drawable/ic_launcher_background"
app:leftText="菜单"
app:leftTextColor="#666666"
app:title="未标题"
app:titleTextColor="#333333"
app:titleTextSize="10sp"
app:rightBackground="@drawable/ic_launcher_background"
app:rightText="菜单"
app:rightTextColor="#666666"
>
</com.example.myhomework.view.TopBar>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".fragment.NewsFragment">
<include
android:id="@+id/include2"
layout="@layout/appbar"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="615dp"
app:layout_constraintBottom_toTopOf="@+id/textView5"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/include2" />
<TextView
android:id="@+id/textView5"
android:layout_width="match_parent"
android:layout_height="70dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0"
tools:Text="占位Padding" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".fragment.PhotoFragment">
<!-- TODO: Update blank fragment layout -->
<include
android:id="@+id/include3"
layout="@layout/appbar"
app:layout_constraintBottom_toBottomOf="@+id/textView4"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/picture"
android:layout_width="413dp"
android:layout_height="231dp"
android:fitsSystemWindows="true"
android:scaleType="centerCrop"
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.16"
app:srcCompat="@drawable/shool_view" />
<Button
android:id="@+id/take_photo"
android:layout_width="193dp"
android:layout_height="170dp"
android:background="#00FFFFFF"
android:backgroundTint="#FFFFFF"
android:drawableTop="@drawable/camera"
android:text="随手拍"
android:textSize="34sp"
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.67" />
<Button
android:id="@+id/history"
android:layout_width="171dp"
android:layout_height="170dp"
android:background="#00FFFFFF"
android:drawableTop="@drawable/history"
android:text="历史记录"
android:textSize="34sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.67" />
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="70dp"
android:text="hhhhh"
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.996" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -3,13 +3,13 @@
<group android:checkableBehavior="single">
<item
android:id="@+id/page_news"
android:icon="@drawable/ic_notifications_black_24dp"
android:title="@string/title_news" />
android:icon="@drawable/map"
android:title="@string/title_main" />
<item
android:id="@+id/page_photo"
android:icon="@drawable/photo"
android:title="@string/title_photo" />
android:icon="@drawable/user"
android:title="@string/title_second" />
</group>
</menu>
\ No newline at end of file
......@@ -6,28 +6,15 @@
app:startDestination="@+id/page_news">
<fragment
android:id="@+id/page_news"
android:name="com.example.myhomework.fragment.NewsFragment"
android:label="@string/title_news"
tools:layout="@layout/fragment_news" />
android:id="@+id/page_map"
android:name="com.example.myhomework.fragment.MapFragment"
android:label="@string/title_main"
tools:layout="@layout/fragment_map" />
<fragment
android:id="@+id/page_photo"
android:name="com.example.myhomework.fragment.PhotoFragment"
android:label="@string/title_photo"
tools:layout="@layout/fragment_photo" />
<fragment
android:id="@+id/page_chat"
android:name="com.example.myhomework.fragment.ChatFragment"
android:label="@string/title_chat"
tools:layout="@layout/fragment_chat" />
<fragment
android:id="@+id/page_home"
android:name="com.example.myhomework.fragment.HomeFragment"
android:label="@string/title_home"
tools:layout="@layout/fragment_home" />
android:name="com.example.myhomework.fragment.MineFragment"
android:label="@string/title_second"
tools:layout="@layout/fragment_mine" />
</navigation>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="TopBar">
<attr name="title" format="string"/><!-- string-->
<attr name="titleTextSize" format="dimension"/>
<attr name="titleTextColor" format="color"/>
<attr name="background" format="reference"/>
<attr name="leftTextColor" format="color"/>
<attr name="leftText" format="string"/>
<attr name="rightTextColor" format="color"/>
<attr name="rightBackground" format="reference"/>
<attr name="rightText" format="string"/>
</declare-styleable>
<declare-styleable name="RadiusCardView">
<!-- 左上圆角大小-->
<attr name="rcv_topLeftRadiu" format="dimension" />
<!-- 右上圆角大小-->
<attr name="rcv_topRightRadiu" format="dimension" />
<!-- 右下圆角大小-->
<attr name="rcv_bottomRightRadiu" format="dimension" />
<!-- 左下圆角大小-->
<attr name="rcv_bottomLeftRadiu" format="dimension" />
</declare-styleable>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#9dd9f4</color>
<color name="colorPrimaryDark">#9dd9f4</color>
<color name="colorPrimary">#2792D9</color>
<color name="colorPrimaryVariant">#B3D4EA</color>
<color name="colorPrimaryDark">#2792D9</color>
<color name="colorAccent">#03DAC5</color>
<color name="purple_200">#9dd9f4</color>
<color name="purple_500">#9dd9f4</color>
<color name="purple_700">#9dd9f4</color>
<!-- <color name="purple_200">#2792D9</color>-->
<!-- <color name="purple_500">#2792D9</color>-->
<!-- <color name="purple_700">#2792D9</color>-->
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="fragment_background">#FFFFFFFF</color>
<color name="label_text">#8C8383</color>
<color name="transparent">#FFFFFFFF</color>
<color name="transparent">#00FFFFFF</color>
</resources>
\ No newline at end of file
......@@ -6,4 +6,6 @@
<dimen name="fragment_horizontal_margin">16dp</dimen>
<dimen name="fragment_vertical_margin">16dp</dimen>
<dimen name="fab_margin">16dp</dimen>
<dimen name="list_item_spacing">16dp</dimen>
<dimen name="list_item_spacing_half">8dp</dimen>
</resources>
\ No newline at end of file
<resources>
<string name="app_name">校园随手拍</string>
<string name="title_news">新闻</string>
<string name="title_photo">随手拍</string>
<string name="title_chat">通讯</string>
<string name="title_home">主页</string>
<string name="app_name">校园漂流瓶</string>
<string name="title_main">地图</string>
<string name="title_second">我的</string>
<!-- TODO: Remove or change this placeholder text -->
<!-- Strings related to login -->
<string name="prompt_email">Email</string>
......@@ -27,4 +25,5 @@
<string name="hello_second_fragment">Hello second fragment. Arg: %1$s</string>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
<string name="title_activity_main2">MainActivity2</string>
</resources>
\ No newline at end of file
......@@ -2,8 +2,8 @@
<!-- Base application theme. -->
<style name="Theme.MyHomeWork" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryVariant">@color/colorPrimaryVariant</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
......
......@@ -3,6 +3,9 @@ ext {
buildToolsVersion = '28.0.3'
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
compose_version = '1.0.1'
}
repositories {
google()
mavenCentral()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册