Skip to content

Commit

Permalink
#4 #hcwcc 第四次实验
Browse files Browse the repository at this point in the history
  • Loading branch information
hcwcc committed Apr 8, 2019
1 parent a738880 commit bcecb3e
Show file tree
Hide file tree
Showing 8 changed files with 145 additions and 20 deletions.
3 changes: 2 additions & 1 deletion students/soft1714080902419/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Soft1714080902419pikaActivity"></activity>
<activity android:name=".Soft1714080902419huaActivity"></activity>
<activity android:name=".Soft1714080902419pikaActivity" />
<activity android:name=".aa" />
<activity android:name=".mald" />
<activity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,26 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_soft1714080902419);

Button GoButton = (Button) findViewById(R.id.button);
Button GoButton = (Button) findViewById(R.id.button11);
GoButton.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {

Intent intent = new Intent(Soft1714080902419Activity.this,Soft1714080902419pikaActivity.class);
startActivity(intent);


}
});
Button GoButton1 = (Button) findViewById(R.id.button22);
GoButton1.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {

Intent intent = new Intent(Soft1714080902419Activity.this,Soft1714080902419huaActivity.class);
startActivity(intent);


}
});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package edu.hzuapps.androidlabs.soft1714080902419;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Soft1714080902419huaActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_soft1714080902419hua);
}
}
Original file line number Diff line number Diff line change
@@ -1,26 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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"
android:background="@drawable/pica"
android:orientation="vertical"
tools:context=".Soft1714080902419Activity">


<Button
android:id="@+id/button"
android:layout_width="146dp"
android:layout_height="83dp"
android:text="开始测距"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.873"
tools:ignore="MissingConstraints" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal">

<Button
android:id="@+id/button11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="开始测距"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.011"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.993"
tools:ignore="MissingConstraints" />

</android.support.constraint.ConstraintLayout>
<Button
android:id="@+id/button22"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="查看历史" />

</LinearLayout>


</RelativeLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
tools:context=".Soft1714080902419huaActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="horizontal">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/pipi"
android:orientation="horizontal"></LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/pipi"
android:layout_weight="1"
android:orientation="horizontal"></LinearLayout>

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="horizontal">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/pipi"
android:orientation="horizontal"></LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/pipi"
android:layout_weight="1"
android:orientation="horizontal"></LinearLayout>
</LinearLayout>
</LinearLayout>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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"
Expand All @@ -11,11 +11,24 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/pipi"
android:text="hello_world"

tools:layout_editor_absoluteX="2dp"
tools:layout_editor_absoluteY="0dp"
tools:ignore="MissingConstraints" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal">

<Button
android:id="@+id/button33"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="保存" />
</LinearLayout>


</android.support.constraint.ConstraintLayout>
</RelativeLayout>
6 changes: 6 additions & 0 deletions students/soft1714080902419/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
</resources>
11 changes: 11 additions & 0 deletions students/soft1714080902419/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>

</resources>

0 comments on commit bcecb3e

Please sign in to comment.