Skip to content

Commit

Permalink
Fix for colors
Browse files Browse the repository at this point in the history
  • Loading branch information
rangerare committed Jan 16, 2022
1 parent 504f5d8 commit 8a8c840
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 86 deletions.
164 changes: 96 additions & 68 deletions app/src/main/res/layout/content_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,109 +19,137 @@
android:minHeight="100dp"
android:text="Server Offline" />

<LinearLayout
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:background="@drawable/border"
android:orientation="vertical">

<TextView
android:id="@+id/lblPayloadInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:gravity="center"
android:text="@string/payload_info"/>
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
app:cardCornerRadius="4dp"
app:cardElevation="4dp"
app:contentPadding="5dp">

<Button
android:id="@+id/btnStartServer"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:text="Start Server" />

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="5dp"
android:background="@drawable/border"
android:orientation="vertical">

<TextView
android:id="@+id/lblManualPayload"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/manual_payload_info" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
android:orientation="vertical">

<TextView
android:id="@+id/lblPayload2"
android:layout_width="wrap_content"
android:id="@+id/lblPayloadInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:layout_margin="5dp"
android:gravity="center"
android:text="PayLoad:"
android:textColor="@android:color/primary_text_light"
android:textSize="16sp"
android:textStyle="bold" />

<Spinner
android:id="@+id/spnrManualPayload"
android:layout_width="280dp"
android:text="@string/payload_info" />

<Button
android:id="@+id/btnStartServer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp" />
android:layout_marginRight="10dp"
android:text="Start Server" />

</LinearLayout>
</androidx.cardview.widget.CardView>

<Button
android:id="@+id/btnSendPayload"
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
app:cardCornerRadius="4dp"
app:cardElevation="4dp"
app:contentPadding="5dp">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:text="@string/send_payload"/>
android:layout_marginBottom="5dp"
android:orientation="vertical">

<TextView
android:id="@+id/txtVwPS4IP"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="PS4 Last IP Address:" />
<TextView
android:id="@+id/lblManualPayload"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/manual_payload_info" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">

<TextView
android:id="@+id/lblPayload2"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="left"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:gravity="center"
android:singleLine="true"
android:text="Payload:"
android:textColor="?android:textColorPrimary"
android:textSize="16sp"
android:textStyle="bold" />

<Spinner
android:id="@+id/spnrManualPayload"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:minWidth="200dp" />

</LinearLayout>

<Button
android:id="@+id/btnSendPayload"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:text="@string/send_payload" />

<TextView
android:id="@+id/txtVwPS4IP"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="PS4 Last IP Address:" />

</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>

<TextView
android:id="@+id/txtVwLog"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="15dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="15dp"
android:layout_marginRight="15dp"
android:layout_marginBottom="15dp"
Expand Down
9 changes: 0 additions & 9 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<resources>
<!-- Reply Preference -->
<string-array name="reply_entries">
<item>Reply</item>
<item>Reply to all</item>
</string-array>

<string-array name="reply_values">
<item>reply</item>
<item>reply_all</item>
</string-array>
</resources>
12 changes: 3 additions & 9 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
<resources>
<string name="payload_info">GoldHen 2.0 will be automatically loaded after the
exploit has finished working.</string>
<string name="manual_payload_info">Choose a payload below and press send to it on port 9090</string>
<string name="manual_payload_info">Choose a payload below and press the send button to send
it to port 9090 on the PS4</string>
<string name="send_payload">Send Payload to port 9090</string>
<string name="app_name">PS4 JailBreak</string>
<string name="action_settings">Settings</string>
<!-- Strings used for fragments for navigation -->
<string name="first_fragment_label">First Fragment</string>
<string name="second_fragment_label">Second Fragment</string>
<string name="next">Next</string>
<string name="previous">Previous</string>

<string name="hello_first_fragment">Hello first fragment</string>
<string name="hello_second_fragment">Hello second fragment. Arg: %1$s</string>
<string name="title_activity_settings">SettingsActivity</string>
<string name="title_activity_settings">Settings</string>

<!-- Preference Titles -->
<string name="server_header">PS4 Settings</string>
Expand Down

0 comments on commit 8a8c840

Please sign in to comment.