Skip to content

Commit

Permalink
A blank for hiding unnecessary interface elements when the server is …
Browse files Browse the repository at this point in the history
…turned off
  • Loading branch information
sashaqwert committed Nov 12, 2019
1 parent 538df03 commit 9b4ea05
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 59 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
126 changes: 67 additions & 59 deletions app/src/main/res/layout/fragment_resources.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,75 +15,83 @@
android:layout_height="wrap_content"
android:orientation="vertical">

<!--Игроки-->
<!--Layout, видемый если сервер не выключен-->
<LinearLayout
android:id="@+id/res_starting_or_running"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:orientation="vertical">

<TextView
android:id="@+id/res_players_title"
<!--Игроки-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/res_players" />

<ProgressBar
android:id="@+id/res_players_pb"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:max="100"
android:minHeight="179dp"
android:progress="10" />
</LinearLayout>

<!--Процессор-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<TextView
android:id="@+id/res_cpu_title"
android:orientation="horizontal">

<TextView
android:id="@+id/res_players_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/res_players" />

<ProgressBar
android:id="@+id/res_players_pb"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:max="100"
android:minHeight="179dp"
android:progress="10" />
</LinearLayout>

<!--Процессор-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/res_cpu" />

<ProgressBar
android:id="@+id/res_cpu_pb"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:max="100"
android:progress="10" />
</LinearLayout>


<!--ОЗУ-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<TextView
android:id="@+id/res_ram_title"
android:orientation="horizontal">

<TextView
android:id="@+id/res_cpu_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/res_cpu" />

<ProgressBar
android:id="@+id/res_cpu_pb"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:max="100"
android:progress="10" />
</LinearLayout>


<!--ОЗУ-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/res_ram" />

<ProgressBar
android:id="@+id/res_ram_pb"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:max="100"
android:progress="10" />
android:orientation="horizontal">

<TextView
android:id="@+id/res_ram_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/res_ram" />

<ProgressBar
android:id="@+id/res_ram_pb"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:max="100"
android:progress="10" />
</LinearLayout>
</LinearLayout>

<!--Диск-->
Expand Down

0 comments on commit 9b4ea05

Please sign in to comment.