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

#4 #881 第四次实验 #1798

Merged
merged 8 commits into from
May 12, 2018
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

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="edu.hzuapps.androidlabs.soft1614080902117activity">
package="edu.hzuapps.androidlabs.soft1614080902117">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="Soft1614080902117备忘录"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
Expand All @@ -16,12 +16,7 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Soft1614080902117Activity_1"
android:label="@string/app_name"
>

</activity>
<activity android:name=".Soft1614080902117Activity1"></activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package edu.hzuapps.androidlabs.soft1614080902117activity;

package edu.hzuapps.androidlabs.soft1614080902117;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.app.Activity;


public class Soft1614080902117Activity extends AppCompatActivity {
public class Soft1614080902117Activity extends Activity {

Button button = null;

Expand All @@ -16,12 +17,12 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_soft1614080902117);

button = (Button)findViewById(R.id.button1);
button = (Button)findViewById(R.id.button);
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(Soft1614080902117Activity.this,Soft1614080902117Activity_1.class);
intent.setClass(Soft1614080902117Activity.this,Soft1614080902117Activity1.class);
startActivity(intent);
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package edu.hzuapps.androidlabs.soft1614080902117;
import android.content.Intent;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.view.View.OnClickListener;
public class Soft1614080902117Activity1 extends Activity {

Button button = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_soft16140809021171);

button = (Button)findViewById(R.id.button4);
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(Soft1614080902117Activity1.this,Soft1614080902117Activity.class);
startActivity(intent);
}
});
}
}
132 changes: 132 additions & 0 deletions soft1614080902117/app/src/main/layout/activity_soft1614080902117.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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=".Soft1614080902117Activity"
tools:layout_editor_absoluteY="73dp">

<TextView
android:id="@+id/textView3"
android:layout_width="360dp"
android:layout_height="94dp"
android:background="@drawable/background1"
app:layout_constraintBottom_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<SearchView
android:id="@+id/searchView"
android:layout_width="291dp"
android:layout_height="35dp"
android:layout_marginTop="8dp"
android:iconifiedByDefault="false"
android:queryHint="搜索笔记"
app:layout_constraintBottom_toTopOf="@+id/textView3"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.505"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0">

</SearchView>

<ListView
android:layout_width="346dp"
android:layout_height="426dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
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.493" />
<TextView
android:id="@+id/textView"
android:layout_width="363dp"
android:layout_height="91dp"
android:background="@drawable/background"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.333"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="parent"
app:layout_constraintVertical_bias="0.516" />
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="18dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:text="设置"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.781"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/button2"
app:layout_constraintVertical_bias="1.0" />

<Button
android:id="@+id/button"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginBottom="16dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="68dp"
android:layout_marginRight="8dp"
android:layout_marginStart="68dp"
android:background="@drawable/xinjian"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.026"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView2"
app:layout_constraintVertical_bias="1.0" />

<TextView
android:id="@+id/textView2"
android:layout_width="34dp"
android:layout_height="17dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="68dp"
android:layout_marginRight="8dp"
android:layout_marginStart="68dp"
android:layout_marginTop="8dp"
android:text="新建"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.027"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.997" />

<Button
android:id="@+id/button2"
android:layout_width="27dp"
android:layout_height="25dp"
android:layout_marginBottom="4dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:background="@drawable/shezhi"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.678"
app:layout_constraintStart_toEndOf="@+id/button"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.975" />



</android.support.constraint.ConstraintLayout>
Loading