Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#第四次实验_订餐App #983

Merged
merged 2 commits into from
Mar 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="lun.com.myapplication">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name="edu.hzuapps.androidlabs.Soft1714080902238.pic"
android:label="订餐App"></activity>
<activity
android:name="edu.hzuapps.androidlabs.Soft1714080902238.Soft1714080902238Activity"
android:label="订餐App">

</activity>
<activity android:name="edu.hzuapps.androidlabs.Soft1714080902238.displayActivity" android:label="订餐App">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package edu.hzuapps.androidlabs.Soft1714080902238;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import lun.com.myapplication.R;

public class displayActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_display);
Log.i("Activity01","onCreate()");
}
protected void Click(View view){
Intent intent = new Intent(this,Soft1714080902238Activity.class);
startActivity(intent);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?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="edu.hzuapps.androidlabs.Soft1714080902238.displayActivity">

<LinearLayout
android:id="@+id/bt01"
android:layout_width="match_parent"
android:layout_height="wrap_content"

android:gravity="center"
android:orientation="horizontal"
tools:ignore="MissingConstraints"
android:layout_alignStart="@+id/bt02"
android:layout_alignParentTop="true">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="订餐"
android:textSize="20dp"/>

</LinearLayout>
<LinearLayout
android:id="@+id/bt02"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_below="@id/bt01"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="22dp"
android:gravity="center"
android:orientation="horizontal"
tools:ignore="MissingConstraints"
android:weightSum="1">

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="54dp"
android:layout_gravity="center_horizontal"
android:text="选择类别"
android:textSize="40dp" />

</LinearLayout>

<GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:columnCount="4"
android:layout_marginLeft="12dp"
android:orientation="horizontal"
android:id="@+id/gridLayout"
android:layout_below="@+id/bt02"
android:layout_alignParentStart="true">
<Button
android:id="@+id/menu1"
android:layout_width="186dp"
android:layout_height="138dp"
android:layout_columnSpan="2"

android:layout_rowSpan="4"
android:text="肉类荤食"
android:onClick="Click"
android:textSize="30dp"
android:layout_below="@+id/bt02"
android:layout_alignStart="@+id/menu4" />

<Button
android:id="@+id/menu2"
android:layout_width="186dp"
android:layout_height="138dp"
android:layout_columnSpan="2"


android:layout_rowSpan="4"
android:text="烧烤炸鸡"
android:layout_below="@+id/gridLayout"
android:layout_alignParentEnd="true"
android:textSize="30dp"/>
<Button
android:id="@+id/menu3"
android:layout_width="186dp"
android:layout_height="138dp"
android:layout_columnSpan="2"

android:layout_rowSpan="4"
android:text="面食粥点"
android:textSize="30dp"
android:layout_below="@+id/menu2"
android:layout_alignParentEnd="true" />
<Button
android:id="@+id/menu4"
android:layout_width="186dp"
android:layout_height="138dp"
android:layout_columnSpan="2"

android:layout_rowSpan="4"
android:text="地方菜系"
android:textSize="30dp"
android:layout_below="@+id/menu1"
android:layout_toStartOf="@+id/menu2" />
<Button
android:id="@+id/menu5"
android:layout_width="186dp"
android:layout_height="138dp"
android:layout_columnSpan="2"

android:layout_rowSpan="4"
android:text="点心甜品"
android:textSize="30dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true" />
<Button
android:id="@+id/menu6"
android:layout_width="186dp"
android:layout_height="138dp"
android:layout_columnSpan="2"

android:layout_rowSpan="4"
android:text="果蔬饮品"
android:textSize="30dp"
android:layout_alignStart="@+id/menu4" />
</GridLayout>




</RelativeLayout>

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.