部分按钮改为 ImageButton

chenghonghao_branch
MikkoAyaka 1 year ago
parent fd848f13e6
commit 908633f868

@ -12,6 +12,7 @@ import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.Toast;
@ -36,8 +37,8 @@ public class MyVideo extends Activity {
URL videoUrl;
MySurfaceView r;
OutputStream socketWriter;
private Button TakePhotos;
private Button ViewPhotos;
private ImageButton TakePhotos;
private ImageButton ViewPhotos;
private Socket socket;
private RockerView rockerView;
private long exitTime = 0;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

@ -23,19 +23,23 @@
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<Button
<ImageButton
android:id="@+id/TakePhoto"
android:layout_width="66dp"
android:layout_height="55dp"
android:text="拍照" />
android:src="@drawable/snapshot"
android:scaleType="centerCrop"
/>
<Button
<ImageButton
android:layout_toRightOf="@+id/TakePhoto"
android:id="@+id/ViewPhoto"
android:layout_width="66dp"
android:layout_height="55dp"
android:layout_x="90dp"
android:text="查看" />
android:src="@drawable/look"
android:scaleType="centerCrop"
/>
<!-- <ImageView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->

Loading…
Cancel
Save