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

#3 #890 第三次实验 #1354

Merged
merged 6 commits into from
Apr 27, 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
25 changes: 25 additions & 0 deletions soft1614080902233/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="edu.hzuapps.androidlabs.soft1614080902233">

<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=".Soft1614080902233Activity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".SecordActivity"
android:label="@string/title_activity_secord"
android:theme="@style/AppTheme.NoActionBar" />
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package edu.hzuapps.androidlabs.soft1614080902233;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;

public class SecordActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_secord);

}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package edu.hzuapps.androidlabs.soft1614080902233;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import org.w3c.dom.Text;

public class Soft1614080902233Activity extends AppCompatActivity {

private TextView textView;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_soft1614080902233);

textView=(TextView)findViewById(R.id.maomao);

textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Soft1614080902233Activity.this,SecordActivity.class);
startActivity(intent);
}
});



}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions soft1614080902233/app/src/main/res/layout/activity_secord.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout 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=".SecordActivity">

<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">

<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_secord" />

<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@android:drawable/ic_dialog_email" />

</android.support.design.widget.CoordinatorLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?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=".Soft1614080902233Activity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/maomao"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/maomao"
android:text="hello_world" />

</android.support.constraint.ConstraintLayout>
4 changes: 4 additions & 0 deletions soft1614080902233/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<resources>
<string name="app_name">soft1614080902233</string>
<string name="title_activity_secord">SecordActivity</string>
</resources>
30 changes: 30 additions & 0 deletions soft1614080902233/repert3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# ������ʵ��

## 1.ʵ��Ŀ��
������AndroidӦ����ʹ��ͼƬ����Դ�ķ�����

## 2.ʵ�鲽��
�Ķ�ʵ��Ҫ��https://github.com/hzuapps/android-labs-2018/labels/Lab

�ڵ�����Android Studio��д����

// ����Ҫ�������У�
ʹ��Git�������ύ���Լ��Ŀ��У�https://github.com/YOUR_NAME/android-labs-2018
$ git pull
$ git add ѧ��Ŀ¼/*
$ git commit "#12345678 "
$ git push
���Լ���GitHub���ϴ����ͷ���Pull Request��ע��鿴Changed files��
// �Ƿ�ֻ�޸����Լ����ļ���
��GitHub��ʹ��Markdown�ļ���дʵ�鱨�棨report1.md, report2.md��
// �������Լ����ļ�����

## 3.ʵ����

![image](https://github.com/liaohuajjj/android-labs-2018/blob/master/soft1614080902233/tupian3.1.png)

![image](https://github.com/liaohuajjj/android-labs-2018/blob/master/soft1614080902233/tupian3.2.png)

## 4.ʵ�����
���ʵ�������˵�dz����ѣ���Ҫ����Ϊ������Java���﷨����Ҫ�ٶ�ѧϰ��
���ѳ���ת��Ϊapk�ļ����ֻ��ϰ�װ���У��о�ͦ�õġ�
2 changes: 1 addition & 1 deletion soft1614080902233/ropert2.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// ����Ҫ�������У�

��3��ʹ��Git�������ύ���Լ��Ŀ��У�https://github.com/YOUR_NAME/android-labs-2018
��3��ʹ��Git�������ύ���Լ��Ŀ��У�https://github.com/liaohuajjj/android-labs-2018

$ git pull
$ git add soft1614080902233/*
Expand Down
Binary file added soft1614080902233/tupian3.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902233/tupian3.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.