修改icon图标、修改界面以及相关相应响应函数

chiyanzhen_branch
CYZ 2 years ago
parent d199c7a345
commit c129749983

@ -1,5 +0,0 @@
>
java:S1604"(Make this anonymous inner class a lambda(ʆ<C38A>õ
P
java:S1161":Add the "@Override" annotation above this method signature(¼²Á÷

@ -1,32 +0,0 @@
C
java:S1604Z"(Make this anonymous inner class a lambda(ƒø…Òÿÿÿÿÿ
>
java:S1604c"(Make this anonymous inner class a lambda(›³äª
t java:S115!"ZRename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.(­“ïÍøÿÿÿÿ
o java:S115""ZRename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.(šŸåå
t java:S116O"ZRename this field "Trans_to_Detect" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(¾¥Âöûÿÿÿÿ
y
java:S1450O"^Remove the "Trans_to_Detect" field and declare it as a local variable in the relevant methods.(¾¥Âöûÿÿÿÿ
m
java:S1450Q"RRemove the "btn" field and declare it as a local variable in the relevant methods.(ãȧ<C388>üÿÿÿÿ
`
java:S1124!"EReorder the modifiers to comply with the Java Language Specification.(­“ïÍøÿÿÿÿ
[
java:S1124""EReorder the modifiers to comply with the Java Language Specification.(šŸåå
[
java:S1124#"EReorder the modifiers to comply with the Java Language Specification.(ß×á
[
java:S1124$"EReorder the modifiers to comply with the Java Language Specification.(Ó¾þá
V java:S125]"<This block of commented-out lines of code should be removed.(è·¿¯ùÿÿÿÿ
C
java:S1185~"(Remove this method to simply inherit it.(ñ‰ÿÜýÿÿÿÿ
W java:S125"<This block of commented-out lines of code should be removed.(<28>­éäøÿÿÿÿ
W java:S125"<This block of commented-out lines of code should be removed.(çéŸþÿÿÿÿ
F
java:S2093<18>"*Change this "try" to a try-with-resources.(ç£ê<C2A3>úÿÿÿÿ
W java:S125Í"<This block of commented-out lines of code should be removed.(òœô˜úÿÿÿÿ
9
java:S1128"Remove this duplicated import.(°þÊóøÿÿÿÿ
L
java:S1068*"1Remove this unused "receiveSocket" private field.(ÜÁ‰Óúÿÿÿÿ

@ -1,54 +0,0 @@
p
java:S11049"[Make mLocationClient a static final constant or non-public and provide accessors if needed.(òó•L
q
java:S1104;"[Make mLocationOption a static final constant or non-public and provide accessors if needed.(ÈÀ‚§
k
java:S2259ê"MA "NullPointerException" could be thrown; "mLocationClient" is nullable here.(Ô¹¤<C2B9>8üÀ±•‡1
z java:S116>"YRename this field "Current_latlng" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(æàÁÆÿÿÿÿÿ8ýÀ±•‡1
v java:S116P"ZRename this field "ClearMarker_btn" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ëþ¥È8ýÀ±•‡1
y java:S116R"XRename this field "ChangeAct_btn" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ÂîœÃúÿÿÿÿ8ýÀ±•‡1
Ÿ
java:S1186Å"€Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.(±€¿ë8Á±•‡1
~
java:S1450R"\Remove the "ChangeAct_btn" field and declare it as a local variable in the relevant methods.(ÂîœÃúÿÿÿÿ8ƒÁ±•‡1
i
java:S1450="SRemove the "city" field and declare it as a local variable in the relevant methods.(“øÌà
t
java:S1450L"WRemove the "cityCode" field and declare it as a local variable in the relevant methods.(êýð†8ƒÁ±•‡1
N
java:S1874H"1Remove this use of "PoiSearch"; it is deprecated.(–ƒëÖ8ŒÁ±•‡1
S
java:S1874J"1Remove this use of "PoiSearch"; it is deprecated.(²¹·‘ÿÿÿÿÿ8<>Á±•‡1
] java:S125e"<This block of commented-out lines of code should be removed.(¤¯¿Îúÿÿÿÿ8˜Á±•‡1
m
java:S1874 "JDon't override a deprecated method or explicitly mark it as "@Deprecated".(Ó»×¶þÿÿÿÿ8œÁ±•‡1
Y java:S125Ö"<This block of commented-out lines of code should be removed.(©áèè8¤Á±•‡1
`
java:S1854"=Remove this useless assignment to local variable "longitude".(ËàÅ€ûÿÿÿÿ8¨Á±•‡1
_
java:S1854"<Remove this useless assignment to local variable "latitude".(û‘áäùÿÿÿÿ8©Á±•‡1
P
java:S1481"-Remove this unused "latitude" local variable.(û‘áäùÿÿÿÿ8«Á±•‡1
Q
java:S1481".Remove this unused "longitude" local variable.(ËàÅ€ûÿÿÿÿ8«Á±•‡1
Y java:S125Ä"<This block of commented-out lines of code should be removed.(É–Ö­8ÔŸÈ•‡1
N
java:S1172ç"+Remove this unused method parameter "view".(çÑ¢‰ýÿÿÿÿ8²Á±•‡1
\
java:S1155è">Use isEmpty() to check whether the collection is empty or not.(”ó±’8²Á±•‡1
N
java:S1172ð"+Remove this unused method parameter "view".(•É‘Îûÿÿÿÿ8³Á±•‡1
X java:S125"<This block of commented-out lines of code should be removed.(Ÿ…¦Q8¸Á±•‡1
\
java:S1117±"9Rename "query" which hides the field declared at line 72.(˜Ž“áûÿÿÿÿ8»Á±•‡1
^ java:S125Ê"<This block of commented-out lines of code should be removed.(±<>öîýÿÿÿÿ8½Á±•‡1
Y java:S125Õ"<This block of commented-out lines of code should be removed.(ÎÞ<C38E>û8½Á±•‡1
>
java:S1068="(Remove this unused "city" private field.(“øÌà
F
java:S1068H")Remove this unused "query" private field.(–ƒëÖ8¾Á±•‡1
O
java:S1068J"-Remove this unused "poiSearch" private field.(²¹·‘ÿÿÿÿÿ8¾Á±•‡1
I
java:S1068L",Remove this unused "cityCode" private field.(êýð†8¾Á±•‡1

@ -1,33 +0,0 @@
o
java:S2293Z"YReplace the type specification in this constructor call with the diamond operator ("<>").(œœÕ¼
K
java:S1066<18>"/Merge this if statement with the enclosing one.(¦­Üˆûÿÿÿÿ
K
java:S1066"/Merge this if statement with the enclosing one.(þÆÅ÷üÿÿÿÿ
>
java:S1604"(Make this anonymous inner class a lambda(ô§ê
i
java:S1104%"SMake TV_show a static final constant or non-public and provide accessors if needed.(úÀŸõ
>
java:S2189±""Add an end condition to this loop.(˜ïˆžÿÿÿÿÿ
>
java:S2189""Add an end condition to this loop.(˜ïˆžÿÿÿÿÿ
k java:S116!"VRename this field "receive_Msg" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ŒßÙú
g java:S116%"RRename this field "TV_show" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(úÀŸõ
^
java:S1659#"CDeclare "total1" and all following declarations on a separate line.(Æ‘ç¡üÿÿÿÿ
c java:S100<"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(Íš“è
h
java:S3776~"RRefactor this method to reduce its Cognitive Complexity from 50 to the 15 allowed.(“–ýþ
u
java:S2142Œ"^Either re-interrupt this method or rethrow the "InterruptedException" that can be caught here.(<>í†
W java:S125"<This block of commented-out lines of code should be removed.(‹ãà‘úÿÿÿÿ
R java:S125"<This block of commented-out lines of code should be removed.(çÓ®Ë
U
java:S1155·">Use isEmpty() to check whether the collection is empty or not.(†”“”
u
java:S2142È"^Either re-interrupt this method or rethrow the "InterruptedException" that can be caught here.(ä ¹€
O java:S106×"9Replace this use of System.out or System.err by a logger.(ŒŸÍÞ
A
java:S1068$"+Remove this unused "button0" private field.(Îÿæ¡

@ -11,19 +11,9 @@ k
;app/src/test/java/com/example/sixaunyi/ExampleUnitTest.java,8\9\892f839083a73d776402535dde27e522288853c9
i
9app/src/main/java/com/example/sixaunyi/FirstFragment.java,0\3\0336633037f72ee431c162e8d6cbc29d1cd6fa5d
j
:app/src/main/java/com/example/sixaunyi/SecondFragment.java,1\2\12963d86ac5c2888cc2a9ae459de5665bc06b01f
?
settings.gradle,0\5\05efc8b1657769a27696d478ded1e95f38737233
@
app/build.gradle,f\4\f4a01d6a4fcb971362ec00a83903fd3902f52164
j
:app/src/main/java/com/example/sixaunyi/DetectActivity.java,9\6\9668392b13e33166876f2a7d3f10eb5405e757ad
i
9app/src/main/java/com/example/sixaunyi/VideoActivity.java,7\1\71fd1993763df2214bbdad8cfee650733993fe44
h
8app/src/main/java/com/example/sixaunyi/MainActivity.java,7\c\7c120b7216f76ce98d1573d90803ab36f481640c
P
app/src/main/AndroidManifest.xml,8\c\8c55c3ccc257e5907959013f99656e4c8ec3903e
k
;app/src/main/java/com/example/sixaunyi/ControlActivity.java,c\9\c99a584c2117ed2df42496451bb97ac1147f5ea0

@ -36,6 +36,7 @@
<activity
android:name=".VideoActivity"
android:screenOrientation="landscape"
android:exported="false" />
<activity
android:name=".DetectActivity"

@ -13,6 +13,7 @@ import android.os.Message;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
@ -44,83 +45,65 @@ public class VideoActivity extends AppCompatActivity {
private DatagramSocket reveSocket;
private InetAddress serverAddr;
private SendHandler sendHandler = new SendHandler();
private ReceiveHandler receiveHandler = new ReceiveHandler();
private Button Trans_to_Detect;
private ImageView imgShow;
private Button btn;
private ImageButton Forward_btn;
private ImageButton Back_btn;
private ImageButton Left_btn;
private ImageButton Right_btn;
private ImageButton Down_btn;
private ImageButton Up_btn;
private ImageButton TurnLeft_btn;
private ImageButton TurnRight_btn;
private ImageButton TakeOff_btn;
private Button Landing_btn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_video);
imgShow = findViewById(R.id.img_show);
btn = findViewById(R.id.btn_send);
Trans_to_Detect = findViewById(R.id.transfer_to_detect);
btn.setOnClickListener(new View.OnClickListener() {
setContentView(R.layout.activity_control);
imgShow = findViewById(R.id.imageView);
Forward_btn = findViewById(R.id.forward_button);
Back_btn = findViewById(R.id.backward_button);
Left_btn = findViewById(R.id.left_button);
Right_btn = findViewById(R.id.right_button);
Down_btn = findViewById(R.id.down_button);
Up_btn = findViewById(R.id.up_button);
TurnLeft_btn = findViewById(R.id.rotate_left_button);
TurnRight_btn = findViewById(R.id.rotate_right_button);
TakeOff_btn = findViewById(R.id.takeoff_button);
//Trans_to_Detect = findViewById(R.id.transfer_to_detect);
TakeOff_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//new UdpSendThread().start();
new UdpReceiveThread().start();
UdpSendThread udpSendThread = new UdpSendThread();
udpSendThread.start();
udpSendThread.Send("TakeOff");
UdpReceiveThread udpReceiveThread = new UdpReceiveThread();
udpReceiveThread.start();
Log.i(TAG, "onClick: 2222222222222222222222222");
}
});
Trans_to_Detect.setOnClickListener(new View.OnClickListener() {
/*Trans_to_Detect.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(VideoActivity.this, DetectActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(intent);
}
});
});*/
}
class ReceiveHandler extends Handler{
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
imgShow.setImageBitmap(bp);
}
}
class SendHandler extends Handler {
@Override
public void handleMessage(Message msg) {
@ -128,8 +111,6 @@ public class VideoActivity extends AppCompatActivity {
}
}
/*
* UDP线
* */
@ -152,15 +133,10 @@ public class VideoActivity extends AppCompatActivity {
if(!inPacket.getAddress().equals(serverAddr)){
throw new IOException("未知名的报文");
}
ByteArrayInputStream in = new ByteArrayInputStream(inPacket.getData());
receiveHandler.sendEmptyMessage(1);
bp = BitmapFactory.decodeStream(in);
}
} catch (Exception e)
{
e.printStackTrace();
@ -178,7 +154,6 @@ public class VideoActivity extends AppCompatActivity {
public void run() {
try {
buf ="test".getBytes();
// 创建DatagramSocket对象使用端口8888
sendSocket = new DatagramSocket(8888);
@ -190,89 +165,27 @@ public class VideoActivity extends AppCompatActivity {
sendSocket.close();
sendHandler.sendEmptyMessage(1);
Log.i(TAG, "run: 111111111111111111111111111111111111111111111111");
} catch (Exception e) {
e.printStackTrace();
}
}
}
//*************************************************************************************************
/*public class TelloControlDemo {
private DatagramSocket socket;
private InetAddress telloAddress;
private int port = 8889;
public void main(String[] args) throws IOException {
TelloControlDemo demo = new TelloControlDemo();
demo.start();
}
public void start() throws IOException {
// Create a UDP socket
socket = new DatagramSocket(9000);
telloAddress = InetAddress.getByName("192.168.10.1");
// Start the receiver thread
Thread receiverThread = new Thread(new Receiver());
receiverThread.start();
System.out.println("\r\n\r\nTello Java Demo.\r\n");
System.out.println("Tello: command takeoff land flip forward back left right \r\n" +
" up down cw ccw speed speed?\r\n");
System.out.println("end -- quit demo.\r\n");
while (true) {
try {
// Read user input from console
byte[] buffer = new byte[1024];
System.in.read(buffer);
String message = new String(buffer).trim();
if (message.equalsIgnoreCase("end")) {
System.out.println("...");
socket.close();
break;
}
// Send command to Tello drone
byte[] sendData = message.getBytes();
DatagramPacket sendPacket = new DatagramPacket(sendData, sendData.length, telloAddress, port);
socket.send(sendPacket);
} catch (IOException e) {
e.printStackTrace();
}
}
}
private class Receiver implements Runnable {
@Override
public void run() {
byte[] receiveData = new byte[1024];
DatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length);
public void Send(String str){
try {
buf =str.getBytes();
// 创建DatagramSocket对象使用端口8888
sendSocket = new DatagramSocket(8888);
serverAddr = InetAddress.getByName(SEND_to_IP);
DatagramPacket outPacket = new DatagramPacket(buf, buf.length, serverAddr, SEND_PORT);
sendSocket.send(outPacket);
while (true) {
try {
// Receive data from Tello drone
socket.receive(receivePacket);
String message = new String(receivePacket.getData(), 0, receivePacket.getLength());
System.out.println(message);
} catch (IOException e) {
e.printStackTrace();
}
}
sendSocket.close();
sendHandler.sendEmptyMessage(1);
Log.i(TAG, "run: 111111111111111111111111111111111111111111111111");
} catch (Exception e) {
e.printStackTrace();
}
}
}*/
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
@ -7,62 +6,74 @@
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_height="match_parent"
android:scaleType="centerCrop"
/>
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true" />
<!-- 左侧竖直轴按钮 -->
<RelativeLayout
android:id="@+id/left_vertical_button_layout"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_marginLeft="20dp"
android:layout_marginTop="20dp"
android:layout_below="@+id/imageView">
android:layout_above="@id/imageView"
android:layout_marginLeft="50dp"
android:layout_marginBottom="10dp"
android:layout_gravity="left|bottom"
android:layout_marginTop="20dp">
<!-- 上升按钮 -->
<ImageButton
android:id="@+id/up_button"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:background="@null"
android:contentDescription="@string/up_button"
android:src="@drawable/img" />
android:src="@drawable/up"
android:scaleType="centerCrop"
/>
<!-- 下降按钮 -->
<ImageButton
android:id="@+id/down_button"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@null"
android:contentDescription="@string/down_button"
android:src="@drawable/img" />
android:src="@drawable/down"
android:scaleType="centerCrop"
/>
<!-- 左旋转按钮 -->
<ImageButton
android:id="@+id/rotate_left_button"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:background="@null"
android:contentDescription="@string/turn_left_button"
android:src="@drawable/img" />
android:src="@drawable/turnleft"
android:scaleType="centerCrop"
/>
<!-- 右旋转按钮 -->
<ImageButton
android:id="@+id/rotate_right_button"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:background="@null"
android:contentDescription="@string/turn_right_button"
android:src="@drawable/img" />
android:src="@drawable/turnright"
android:scaleType="centerCrop"
/>
</RelativeLayout>
@ -70,9 +81,10 @@
android:id="@+id/top_horizontal_button_layout"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_below="@+id/imageView"
android:layout_marginTop="20dp"
android:layout_marginRight="20dp"
android:layout_above="@id/imageView"
android:layout_marginRight="50dp"
android:layout_marginBottom="10dp"
android:layout_gravity="right|bottom"
android:layout_alignParentEnd="true">
<!-- 向左按钮 -->
@ -85,7 +97,9 @@
android:layout_centerVertical="true"
android:background="@null"
android:contentDescription="@string/move_left_button"
android:src="@drawable/img" />
android:src="@drawable/moveleft"
android:scaleType="centerCrop"
/>
<!-- 向右按钮 -->
<ImageButton
@ -96,7 +110,9 @@
android:layout_centerVertical="true"
android:background="@null"
android:contentDescription="@string/move_right_button"
android:src="@drawable/img" />
android:src="@drawable/moveright"
android:scaleType="centerCrop"
/>
<!-- 向前移动按钮 -->
<ImageButton
@ -106,7 +122,9 @@
android:layout_centerHorizontal="true"
android:background="@null"
android:contentDescription="@string/move_forward_button"
android:src="@drawable/img" />
android:src="@drawable/moveforward"
android:scaleType="centerCrop"
/>
<!-- 向后移动按钮 -->
<ImageButton
@ -115,41 +133,99 @@
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:contentDescription="@string/move_back_button"
android:layout_marginEnd="50dp"
android:contentDescription="@string/move_back_button"
android:background="@null"
android:src="@drawable/img" />
android:src="@drawable/movebackward"
android:scaleType="centerCrop"
/>
</RelativeLayout>
<LinearLayout
android:id="@+id/takeoff_landing_buttons_layout"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_width="100dp"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp"
android:gravity="center_horizontal"
android:orientation="horizontal">
android:layout_marginBottom="15dp"
android:layout_gravity="center|bottom"
android:orientation="horizontal"
>
<!-- 降落按钮 -->
<Button
<ImageButton
android:id="@+id/landing_button"
android:layout_width="80dp"
android:layout_height="61dp"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="left"
android:layout_marginRight="10dp"
android:contentDescription="@string/landing_button123"
android:layout_weight="1"
android:text="降落" />
android:background="@null"
android:src="@drawable/landing"
android:scaleType="centerCrop"
/>
<!-- 起飞按钮 -->
<Button
<ImageButton
android:id="@+id/takeoff_button"
android:layout_width="80dp"
android:layout_height="match_parent"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="right"
android:layout_weight="1"
android:text="起飞" />
android:background="@null"
android:scaleType="centerCrop"
android:src="@drawable/takeoff"
android:text="起飞"
android:contentDescription="@string/takeoff_button"
/>
</LinearLayout>
</RelativeLayout>
<!-- 添加三个按钮,用于设置、开始录制和显示当前状态 -->
<LinearLayout
android:id="@+id/top_left_buttons_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="10dp"
android:layout_gravity="left|top">
<ImageButton
android:id="@+id/setting_button"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/setting"
android:background="@null"
android:contentDescription="@string/setting_button"
android:scaleType="centerInside"
/>
<ImageButton
android:id="@+id/start_record_button"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@null"
android:layout_marginLeft="20dp"
android:src="@drawable/record"
android:contentDescription="@string/start_record_button"
android:text="开始录制"
android:scaleType="centerCrop"
/>
<ImageButton
android:id="@+id/show_status_button"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@null"
android:layout_marginLeft="20dp"
android:src="@drawable/status"
android:text="当前状态"
android:scaleType="centerCrop"
android:contentDescription="@string/show_status_button"
/>
</LinearLayout>
</FrameLayout>

@ -57,7 +57,7 @@
android:clickable="true"
android:onClick="changeAct"
app:fabSize="normal"
android:src="@drawable/img"
android:src="@drawable/wurenji"
app:backgroundTint="#FFF"
android:visibility="invisible"
app:backgroundTintMode="screen"

@ -14,6 +14,11 @@
<string name="move_back_button">向后按钮</string>
<string name="turn_left_button">向左旋转</string>
<string name="turn_right_button">向右旋转</string>
<string name="setting_button">设置</string>
<string name="start_record_button">开始录制</string>
<string name="show_status_button">查看状态</string>
<string name="landing_button123">降落按钮</string>
<string name="takeoff_button">降落按钮</string>
<string name="hello_first_fragment">Hello first fragment</string>
<string name="hello_second_fragment">Hello second fragment. Arg: %1$s</string>
</resources>
Loading…
Cancel
Save