Skip to content

Commit

Permalink
Add ScrollView for Activity layout
Browse files Browse the repository at this point in the history
  • Loading branch information
NightlyNexus committed Jun 3, 2015
1 parent feee44b commit afb347e
Showing 1 changed file with 109 additions and 100 deletions.
209 changes: 109 additions & 100 deletions telecine/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,113 +1,122 @@
<LinearLayout
<?xml version="1.0" encoding="utf-8"?>

<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/content_padding"
android:gravity="center_horizontal"
android:orientation="vertical"
tools:context=".TelecineActivity"
>

<Button
android:id="@+id/launch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="24dp"
android:paddingBottom="24dp"
android:text="@string/launch_overlay"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/content_padding"
android:gravity="center_horizontal"
android:orientation="vertical"
>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:layout_marginBottom="8dp"
android:text="@string/preferences"
android:textAllCaps="true"
android:textColor="?android:attr/colorAccent"
android:fontFamily="sans-serif-condensed"
android:textAlignment="viewStart"
/>
<Button
android:id="@+id/launch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="24dp"
android:paddingBottom="24dp"
android:text="@string/launch_overlay"
/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:gravity="center_vertical"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/video_size_percentage"
android:textAlignment="viewStart"
/>
<Spinner
android:id="@+id/spinner_video_size_percentage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:layout_marginBottom="8dp"
android:text="@string/preferences"
android:textAllCaps="true"
android:textColor="?android:attr/colorAccent"
android:fontFamily="sans-serif-condensed"
android:textAlignment="viewStart"
/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:gravity="center_vertical"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/countdown"
android:textAlignment="viewStart"
/>
<Switch
android:id="@+id/switch_show_countdown"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:gravity="center_vertical"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/video_size_percentage"
android:textAlignment="viewStart"
/>
<Spinner
android:id="@+id/spinner_video_size_percentage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:gravity="center_vertical"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/recents_hide"
android:textAlignment="viewStart"
/>
<Switch
android:id="@+id/switch_hide_from_recents"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:gravity="center_vertical"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/countdown"
android:textAlignment="viewStart"
/>
<Switch
android:id="@+id/switch_show_countdown"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:gravity="center_vertical"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/recording_notification"
android:textAlignment="viewStart"
/>
<Switch
android:id="@+id/switch_recording_notification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:gravity="center_vertical"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/recents_hide"
android:textAlignment="viewStart"
/>
<Switch
android:id="@+id/switch_hide_from_recents"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:gravity="center_vertical"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/recording_notification"
android:textAlignment="viewStart"
/>
<Switch
android:id="@+id/switch_recording_notification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>

</LinearLayout>

</LinearLayout>
</ScrollView>

0 comments on commit afb347e

Please sign in to comment.