2020-05-15 07:51:48 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/colorPrimaryDark"
|
|
|
|
tools:context=".SettingsActivity">
|
|
|
|
|
2020-05-15 11:25:38 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/heading"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Settings"
|
|
|
|
android:textColor="#cccccc"
|
|
|
|
android:textSize="36sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_bias="0.100000024" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/sub_head_1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Actions"
|
|
|
|
android:textColor="#999"
|
|
|
|
android:textSize="18sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias=".1"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_bias="0.189" />
|
|
|
|
|
|
|
|
<TableLayout
|
|
|
|
android:id="@+id/actionschooser"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal|center_vertical"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/sub_head_1"
|
|
|
|
app:layout_constraintVertical_bias="0.120000005">
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_up"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Swipe Up"
|
|
|
|
android:textColor="#ccc"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_choose_up"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="chooseUpApp"
|
|
|
|
android:text="Choose App" />
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_down"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Swipe Down"
|
|
|
|
android:textColor="#ccc"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_choose_down"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="chooseDownApp"
|
|
|
|
android:text="Choose App" />
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_left"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Swipe Left"
|
|
|
|
android:textColor="#ccc"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_choose_left"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="chooseLeftApp"
|
|
|
|
android:text="Choose App" />
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_right"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Swipe Right"
|
|
|
|
android:textColor="#ccc"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_choose_right"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="chooseRightApp"
|
|
|
|
android:text="Choose App" />
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_vol_up"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Volume Up"
|
|
|
|
android:textColor="#ccc"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_choose_volume_up"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="chooseVolumeUpApp"
|
|
|
|
android:text="Choose App" />
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_vol_down"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Volume Down "
|
|
|
|
android:textColor="#ccc"
|
|
|
|
android:textSize="24sp" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_choose_volume_down"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="chooseVolumeDownApp"
|
|
|
|
android:text="Choose App" />
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
</TableLayout>
|
|
|
|
|
2020-05-15 16:59:48 +02:00
|
|
|
<TableLayout
|
|
|
|
android:id="@+id/buttons"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/actionschooser">
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center">
|
2020-05-15 11:25:38 +02:00
|
|
|
|
2020-05-15 16:59:48 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/button2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="resetSettingsClick"
|
|
|
|
android:text="Reset" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/button3"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="backHome"
|
|
|
|
android:text="Back Home" />
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
</TableLayout>
|
2020-05-15 11:25:38 +02:00
|
|
|
|
2020-05-15 16:28:38 +02:00
|
|
|
<TableLayout
|
2020-05-15 16:59:48 +02:00
|
|
|
android:id="@+id/about_footer"
|
2020-05-15 16:28:38 +02:00
|
|
|
android:layout_width="0dp"
|
2020-05-15 11:25:38 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/actionschooser"
|
2020-05-15 16:28:38 +02:00
|
|
|
app:layout_constraintVertical_bias="0.9">
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="By "
|
|
|
|
android:textColor="#999"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="openFinnWebsite"
|
|
|
|
android:text="Finn M Glas"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=" | "
|
|
|
|
android:textColor="#999"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:onClick="openGithubRepo"
|
|
|
|
android:text="Open Source"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
</TableLayout>
|
2020-05-15 11:25:38 +02:00
|
|
|
|
2020-05-15 07:51:48 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|