adjust view layout

dev
xufuji456 3 years ago
parent 1a2e8a55b7
commit 159f76954b
  1. 2
      Live/src/main/java/com/frank/live/PushActivity.java
  2. 19
      Live/src/main/res/layout/activity_push.xml
  3. 1
      Live/src/main/res/values-en/strings.xml
  4. 1
      Live/src/main/res/values/strings.xml

@ -94,7 +94,7 @@ public class PushActivity extends Activity implements Callback {
//SurfaceView //SurfaceView
mSmartCameraView = findViewById(R.id.gl_surfaceview); mSmartCameraView = findViewById(R.id.gl_surfaceview);
//beauty type //beauty type
beautyTypeSelector = findViewById(R.id.beauty_type_selctor); beautyTypeSelector = findViewById(R.id.beauty_type_selector);
//mute //mute
btnMute = findViewById(R.id.button_mute); btnMute = findViewById(R.id.button_mute);
//take photo //take photo

@ -7,12 +7,12 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:id="@+id/gl_surfaceview" android:id="@+id/gl_surfaceview"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" android:layout_alignParentStart="true"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_alignParentRight="true" /> android:layout_alignParentEnd="true" />
<Spinner <Spinner
android:id="@+id/beauty_type_selctor" android:id="@+id/beauty_type_selector"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp"/> android:layout_marginTop="20dp"/>
@ -21,20 +21,21 @@
android:id="@+id/img_photo" android:id="@+id/img_photo"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true" android:layout_alignParentEnd="true"
android:src="@drawable/ic_camera_switch" android:src="@drawable/ic_camera_switch"
android:text="拍照" android:text="@string/take_photo"
android:clickable="true" android:clickable="true"
android:focusable="true" android:focusable="true"
android:tint="@color/colorPrimary" /> android:tint="@color/colorPrimary"
android:contentDescription="@string/take_photo" />
<Button <Button
android:id="@+id/button_mute" android:id="@+id/button_mute"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text=" 静音" android:text="@string/mute"
android:layout_alignParentRight="true" android:layout_alignParentEnd="true"
android:layout_marginTop="10dp" android:layout_marginTop="20dp"
android:layout_below="@+id/img_photo"/> android:layout_below="@+id/img_photo"/>
</RelativeLayout> </RelativeLayout>

@ -5,6 +5,7 @@
<string name="stop">stop</string> <string name="stop">stop</string>
<string name="mute">mute</string> <string name="mute">mute</string>
<string name="voice">voice</string> <string name="voice">voice</string>
<string name="take_photo">photo</string>
<string name="effect_beauty">beauty</string> <string name="effect_beauty">beauty</string>
<string name="effect_cool">cool</string> <string name="effect_cool">cool</string>

@ -5,6 +5,7 @@
<string name="stop">停止</string> <string name="stop">停止</string>
<string name="mute">静音</string> <string name="mute">静音</string>
<string name="voice">取消静音</string> <string name="voice">取消静音</string>
<string name="take_photo">拍照</string>
<string name="effect_beauty">美颜</string> <string name="effect_beauty">美颜</string>
<string name="effect_cool">冷酷</string> <string name="effect_cool">冷酷</string>

Loading…
Cancel
Save