forked from hzuapps/android-labs-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6541e6d
commit 5cb917d
Showing
15 changed files
with
286 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
soft1614080902227/app/src/main/java/com/example/soft1614080902227activity/Remote_0f_Air.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.example.soft1614080902227activity; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class Remote_0f_Air extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_remote_0f__air); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
soft1614080902227/app/src/main/java/com/example/soft1614080902227activity/Remote_of_TV.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.example.soft1614080902227activity; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class Remote_of_TV extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_remote_of__tv); | ||
} | ||
} |
33 changes: 31 additions & 2 deletions
33
...27/app/src/main/java/com/example/soft1614080902227activity/Soft1614080902227Activity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,42 @@ | ||
package com.example.soft1614080902227activity; | ||
|
||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.view.Window; | ||
import android.widget.Button; | ||
|
||
public class Soft1614080902227Activity extends AppCompatActivity { | ||
public class Soft1614080902227Activity extends AppCompatActivity{ | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_soft1614080902227); | ||
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); | ||
Button btn_Click = (Button)findViewById(R.id.Air); | ||
Button btn_Click1 = (Button)findViewById(R.id.TV); | ||
btn_Click.setOnClickListener(new MyOnClickListener()); | ||
btn_Click1.setOnClickListener(new MyOnClickListener1()); | ||
} | ||
class MyOnClickListener implements View.OnClickListener{ | ||
@Override | ||
public void onClick(View v){ | ||
if(v.getId()==R.id.Air) { | ||
Intent intent = new Intent(Soft1614080902227Activity.this,Remote_0f_Air.class); | ||
startActivity(intent); | ||
} | ||
} | ||
|
||
} | ||
class MyOnClickListener1 implements View.OnClickListener{ | ||
@Override | ||
public void onClick(View v){ | ||
if(v.getId()==R.id.TV) { | ||
Intent intent1 = new Intent(Soft1614080902227Activity.this,Remote_of_TV.class); | ||
startActivity(intent1); | ||
} | ||
} | ||
|
||
} | ||
} |
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.
170 changes: 170 additions & 0 deletions
170
soft1614080902227/app/src/main/res/drawable/ic_launcher_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="108dp" | ||
android:height="108dp" | ||
android:viewportHeight="108" | ||
android:viewportWidth="108"> | ||
<path | ||
android:fillColor="#26A69A" | ||
android:pathData="M0,0h108v108h-108z" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M9,0L9,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M19,0L19,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M29,0L29,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M39,0L39,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M49,0L49,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M59,0L59,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M69,0L69,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M79,0L79,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M89,0L89,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M99,0L99,108" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,9L108,9" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,19L108,19" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,29L108,29" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,39L108,39" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,49L108,49" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,59L108,59" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,69L108,69" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,79L108,79" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,89L108,89" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M0,99L108,99" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M19,29L89,29" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M19,39L89,39" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M19,49L89,49" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M19,59L89,59" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M19,69L89,69" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M19,79L89,79" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M29,19L29,89" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M39,19L39,89" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M49,19L49,89" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M59,19L59,89" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M69,19L69,89" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
<path | ||
android:fillColor="#00000000" | ||
android:pathData="M79,19L79,89" | ||
android:strokeColor="#33FFFFFF" | ||
android:strokeWidth="0.8" /> | ||
</vector> |
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.
12 changes: 12 additions & 0 deletions
12
soft1614080902227/app/src/main/res/layout/activity_remote_0f__air.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?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="com.example.soft1614080902227activity.Remote_0f_Air"> | ||
<TextView | ||
android:layout_height="match_parent" | ||
android:layout_width="match_parent" | ||
/> | ||
</android.support.constraint.ConstraintLayout> |
12 changes: 12 additions & 0 deletions
12
soft1614080902227/app/src/main/res/layout/activity_remote_of__tv.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?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="com.example.soft1614080902227activity.Remote_of_TV"> | ||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
|
||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<resources> | ||
<string name="app_name">万能遥控器</string> | ||
<string name="title_activity_air">志高空调</string> | ||
</resources> |
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.