修改主布局

pull/107/head
xufulong 6 years ago
parent 054f6dfb27
commit 0726a7f022
  1. 1
      app/src/main/java/com/frank/ffmpeg/activity/MainActivity.java
  2. 125
      app/src/main/res/layout/activity_main.xml

@ -21,7 +21,6 @@ public class MainActivity extends BaseActivity {
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
hideActionBar();
initViewsWithClick( initViewsWithClick(
R.id.btn_audio, R.id.btn_audio,
R.id.btn_video, R.id.btn_video,

@ -3,76 +3,73 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<Button <ScrollView
android:id="@+id/btn_audio" android:layout_width="match_parent"
android:layout_width="wrap_content" android:layout_height="match_parent">
android:layout_height="wrap_content" <LinearLayout
android:layout_marginTop="40dp" android:layout_width="match_parent"
android:layout_centerHorizontal="true" android:layout_height="wrap_content"
android:text="@string/audio_handle"/> android:orientation="vertical"
android:gravity="center_horizontal">
<Button <Button
android:id="@+id/btn_video" android:id="@+id/btn_audio"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/video_handle" android:layout_marginTop="40dp"
android:layout_marginTop="10dp" android:text="@string/audio_handle"/>
android:layout_centerHorizontal="true"
android:layout_below="@+id/btn_audio"/>
<Button <Button
android:id="@+id/btn_media" android:id="@+id/btn_video"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/media_handle" android:text="@string/video_handle"
android:layout_marginTop="10dp" android:layout_marginTop="10dp" />
android:layout_centerHorizontal="true"
android:layout_below="@+id/btn_video"/>
<Button <Button
android:id="@+id/btn_play" android:id="@+id/btn_media"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/media_play" android:text="@string/media_handle"
android:layout_marginTop="10dp" android:layout_marginTop="10dp" />
android:layout_centerHorizontal="true"
android:layout_below="@+id/btn_media"
android:visibility="gone"/>
<Button <Button
android:id="@+id/btn_push" android:id="@+id/btn_play"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/video_push" android:text="@string/media_play"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_centerHorizontal="true" android:visibility="gone"/>
android:layout_below="@+id/btn_play"/>
<Button <Button
android:id="@+id/btn_live" android:id="@+id/btn_push"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/video_live" android:text="@string/video_push"
android:layout_marginTop="10dp" android:layout_marginTop="10dp" />
android:layout_centerHorizontal="true"
android:layout_below="@+id/btn_push"/>
<Button <Button
android:id="@+id/btn_filter" android:id="@+id/btn_live"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/video_filter" android:text="@string/video_live"
android:layout_marginTop="10dp" android:layout_marginTop="10dp" />
android:layout_centerHorizontal="true"
android:layout_below="@+id/btn_live"/>
<Button <Button
android:id="@+id/btn_preview" android:id="@+id/btn_filter"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/video_preview" android:text="@string/video_filter"
android:layout_marginTop="10dp" android:layout_marginTop="10dp" />
android:layout_centerHorizontal="true"
android:layout_below="@+id/btn_filter"/> <Button
android:id="@+id/btn_preview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/video_preview"
android:layout_marginTop="10dp" />
</LinearLayout>
</ScrollView>
</RelativeLayout> </RelativeLayout>

Loading…
Cancel
Save