<?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"
|
android:background="@mipmap/bgm"
|
tools:context=".MainActivity">
|
|
<!-- <com.google.android.material.floatingactionbutton.FloatingActionButton
|
android:id="@+id/fab"
|
android:visibility="gone"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_alignParentTop="true"
|
android:layout_margin="0dp"
|
android:onClick="gotoSetting"
|
android:alpha="0.5"
|
android:scaleType="fitXY"
|
android:src="@mipmap/setting"
|
app:borderWidth="0dp"
|
app:elevation="20dp"
|
app:fabSize="normal"
|
app:pressedTranslationZ="5dp"
|
app:rippleColor="@color/DarkGray" />-->
|
|
<ImageView
|
android:id="@+id/logo"
|
android:layout_width="100dp"
|
android:layout_height="100dp"
|
android:scaleType="center"
|
android:layout_marginTop="10dp"
|
android:layout_marginLeft="50dp"
|
android:src="@mipmap/logo"/>
|
|
<LinearLayout
|
android:layout_width="450dp"
|
android:layout_height="450dp"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"
|
android:layout_marginRight="50dp"
|
android:gravity="center"
|
android:orientation="vertical">
|
<Button
|
android:id="@+id/button1"
|
android:layout_width="300dp"
|
android:layout_height="150dp"
|
android:minWidth="0dp"
|
android:minHeight="0dp"
|
android:padding="0dp"
|
android:onClick="putIn"
|
android:background="@drawable/round_button"/>
|
|
<Button
|
android:layout_width="300dp"
|
android:layout_height="150dp"
|
android:minWidth="0dp"
|
android:minHeight="0dp"
|
android:onClick="take"
|
android:padding="0dp"
|
android:background="@drawable/round_button_down" />
|
</LinearLayout>
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设置"
|
android:onClick="toset"
|
android:textColor="@color/white"
|
android:textSize="30sp"
|
android:layout_alignParentRight="true"
|
android:layout_margin="10dp"
|
android:layout_alignParentBottom="true"/>
|
</RelativeLayout>
|