Skip to content

Commit 406870f

Browse files
author
Shushant
committed
Improved layout
1 parent d12a8c9 commit 406870f

File tree

82 files changed

+859
-310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+859
-310
lines changed

res/anim/loading_small.xml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:oneshot="false">
4+
<item
5+
android:drawable="@drawable/loading_1_36x36"
6+
android:duration="150" />
7+
<item
8+
android:drawable="@drawable/loading_2_36x36"
9+
android:duration="150" />
10+
<item
11+
android:drawable="@drawable/loading_3_36x36"
12+
android:duration="150" />
13+
<item
14+
android:drawable="@drawable/loading_4_36x36"
15+
android:duration="150" />
16+
<item
17+
android:drawable="@drawable/loading_5_36x36"
18+
android:duration="150" />
19+
<item
20+
android:drawable="@drawable/loading_6_36x36"
21+
android:duration="150" />
22+
<item
23+
android:drawable="@drawable/loading_7_36x36"
24+
android:duration="150" />
25+
<item
26+
android:drawable="@drawable/loading_8_36x36"
27+
android:duration="150" />
28+
<item
29+
android:drawable="@drawable/loading_9_36x36"
30+
android:duration="150" />
31+
<item
32+
android:drawable="@drawable/loading_10_36x36"
33+
android:duration="150" />
34+
<item
35+
android:drawable="@drawable/loading_11_36x36"
36+
android:duration="150" />
37+
<item
38+
android:drawable="@drawable/loading_12_36x36"
39+
android:duration="150" />
40+
</animation-list>

res/anim/slide_left_in.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<translate
4+
android:duration="200"
5+
android:fromXDelta="100.0%p"
6+
android:toXDelta="0.0" />
7+
</set>

res/anim/slide_left_out.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<translate
4+
android:duration="200"
5+
android:fromXDelta="0.0"
6+
android:toXDelta="-100.0%p" />
7+
</set>

res/anim/slide_right_in.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<translate
4+
android:duration="200"
5+
android:fromXDelta="-100.0%p"
6+
android:toXDelta="0.0" />
7+
</set>

res/anim/slide_right_out.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<translate
4+
android:duration="200"
5+
android:fromXDelta="0.0"
6+
android:toXDelta="100.0%p" />
7+
</set>

res/drawable-hdpi/btn.9.png

1.29 KB

res/drawable-hdpi/btn_down.9.png

1.28 KB

res/drawable-hdpi/download_btn.png

1.02 KB

res/drawable-hdpi/downloading_btn.png

1.02 KB

res/drawable-hdpi/et_bg.9.png

501 Bytes

res/drawable-hdpi/ic_action_about.png

707 Bytes

res/drawable-hdpi/ic_action_home.png

611 Bytes

res/drawable-hdpi/ic_action_mysql.png

680 Bytes
532 Bytes

res/drawable-hdpi/ic_cloud.png

584 Bytes
923 Bytes
1.42 KB
1.15 KB
1.66 KB
1.18 KB
1.66 KB

res/drawable-hdpi/loading_1_36x36.png

925 Bytes

res/drawable-hdpi/loading_1_50x50.png

1.38 KB

res/drawable-hdpi/loading_2_36x36.png

1.02 KB

res/drawable-hdpi/loading_2_50x50.png

1.63 KB

res/drawable-hdpi/loading_3_36x36.png

1.02 KB

res/drawable-hdpi/loading_3_50x50.png

1.65 KB

res/drawable-hdpi/loading_4_36x36.png

933 Bytes

res/drawable-hdpi/loading_4_50x50.png

1.41 KB

res/drawable-hdpi/loading_5_36x36.png

1.15 KB

res/drawable-hdpi/loading_5_50x50.png

1.64 KB

res/drawable-hdpi/loading_6_36x36.png

1.18 KB

res/drawable-hdpi/loading_6_50x50.png

1.66 KB

res/drawable-hdpi/loading_7_36x36.png

922 Bytes

res/drawable-hdpi/loading_7_50x50.png

1.4 KB

res/drawable-hdpi/loading_8_36x36.png

1.02 KB

res/drawable-hdpi/loading_8_50x50.png

1.64 KB

res/drawable-hdpi/loading_9_36x36.png

1.01 KB

res/drawable-hdpi/loading_9_50x50.png

1.64 KB

res/drawable-hdpi/next_grey.png

379 Bytes
1.15 KB

res/drawable-hdpi/vhost_list_edit.png

1.02 KB

res/drawable-hdpi/waiting_bg.9.png

326 Bytes

res/drawable-mdpi/ic_action_about.png

457 Bytes

res/drawable-mdpi/ic_action_home.png

444 Bytes

res/drawable-mdpi/ic_action_mysql.png

441 Bytes
355 Bytes

res/drawable-mdpi/ic_cloud.png

366 Bytes

res/drawable-xhdpi/download_btn.png

1.29 KB
1.29 KB
605 Bytes

res/drawable-xhdpi/ic_action_home.png

574 Bytes
702 Bytes
466 Bytes

res/drawable-xhdpi/ic_cloud.png

508 Bytes

res/drawable-xhdpi/next_grey.png

435 Bytes
980 Bytes
954 Bytes
1.08 KB
828 Bytes

res/drawable-xxhdpi/ic_cloud.png

933 Bytes

res/drawable/btn_selector.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:drawable="@drawable/btn_down" android:state_focused="true" />
4+
<item android:drawable="@drawable/btn_down" android:state_pressed="true" />
5+
<item android:drawable="@drawable/btn" />
6+
</selector>

res/drawable/item_xbg.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<!-- item normal #fff3f3f3 -->
4+
<item android:drawable="@drawable/item_xbg_pressed" android:state_pressed="true" />
5+
<item android:drawable="@drawable/item_xbg_pressed" android:state_focused="true" />
6+
<item android:drawable="@drawable/item_xbg_drawable" />
7+
</selector>
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:drawable="@drawable/list_download_pressed" android:state_pressed="true" />
4+
<item android:drawable="@drawable/list_download_pressed" android:state_focused="true" />
5+
<item android:drawable="@drawable/list_download_nope" />
6+
</selector>

res/drawable/table_whole_bg_all.xml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:state_pressed="true">
4+
<shape>
5+
<solid android:color="#ffdbdbdb" />
6+
<stroke android:width="1.0px" android:color="#ffd9d9d9" />
7+
</shape>
8+
</item>
9+
<item android:state_focused="true">
10+
<shape>
11+
<solid android:color="#ffdbdbdb" />
12+
<stroke android:width="1.0px" android:color="#ffd9d9d9" />
13+
</shape>
14+
</item>
15+
<item>
16+
<shape>
17+
<solid android:color="#fff8f8f8" />
18+
<stroke android:width="1.0px" android:color="#ffd9d9d9" />
19+
</shape>
20+
</item>
21+
</selector>

res/layout/activity_main.xml

+8-17
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:id="@+id/drawer_layout"
4-
android:layout_width="match_parent"
5-
android:layout_height="match_parent">
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
android:layout_width="fill_parent"
5+
android:layout_height="fill_parent"
6+
android:background="#fff2f2f2"
7+
android:orientation="vertical"
8+
tools:context=".app.ui.ActivityConsole">
69

710
<!-- Framelayout to display Fragments -->
811
<FrameLayout
912
android:id="@+id/frame_container"
1013
android:layout_width="match_parent"
1114
android:layout_height="match_parent" />
12-
13-
<!-- Listview to display slider menu -->
14-
<ListView
15-
android:id="@+id/list_slidermenu"
16-
android:layout_width="240dp"
17-
android:layout_height="match_parent"
18-
android:layout_gravity="start"
19-
android:background="@color/list_background"
20-
android:choiceMode="singleChoice"
21-
android:divider="@color/list_divider"
22-
android:dividerHeight="1dp"
23-
android:listSelector="@drawable/list_selector" />
24-
</android.support.v4.widget.DrawerLayout>
15+
</RelativeLayout>

res/layout/create_host.xml

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:id="@+id/create_virtual_host"
4+
android:layout_width="fill_parent"
5+
android:layout_height="fill_parent"
6+
android:background="#fff2f2f2"
7+
android:orientation="vertical">
8+
9+
<LinearLayout
10+
android:layout_width="fill_parent"
11+
android:layout_height="0.0dip"
12+
android:layout_marginLeft="15.0dip"
13+
android:layout_marginRight="15.0dip"
14+
android:layout_marginTop="10.0dip"
15+
android:layout_weight="4.0"
16+
android:orientation="vertical">
17+
18+
<TextView
19+
android:layout_width="fill_parent"
20+
android:layout_height="wrap_content"
21+
android:layout_marginTop="5.0dip"
22+
android:gravity="right"
23+
android:textColor="#ff808080" />
24+
25+
<EditText
26+
android:id="@+id/host_name"
27+
android:layout_width="fill_parent"
28+
android:layout_height="wrap_content"
29+
android:background="@drawable/et_bg"
30+
android:hint="Enter host name"
31+
android:minHeight="35.0dip"
32+
android:paddingLeft="5.0dip"
33+
android:singleLine="true" />
34+
35+
36+
<TextView
37+
android:layout_width="fill_parent"
38+
android:layout_height="wrap_content"
39+
android:layout_marginTop="5.0dip"
40+
android:gravity="right"
41+
android:textColor="#ff808080" />
42+
43+
<EditText
44+
android:id="@+id/host_port"
45+
android:layout_width="fill_parent"
46+
android:layout_height="wrap_content"
47+
android:background="@drawable/et_bg"
48+
android:hint="Enter server port"
49+
android:minHeight="35.0dip"
50+
android:paddingLeft="5.0dip"
51+
android:singleLine="true" />
52+
53+
54+
<TextView
55+
android:layout_width="fill_parent"
56+
android:layout_height="wrap_content"
57+
android:layout_marginTop="5.0dip"
58+
android:gravity="right"
59+
android:textColor="#ff808080" />
60+
61+
<EditText
62+
android:id="@+id/host_location"
63+
android:layout_width="fill_parent"
64+
android:layout_height="wrap_content"
65+
android:background="@drawable/et_bg"
66+
android:hint="Enter host path"
67+
android:minHeight="35.0dip"
68+
android:paddingLeft="5.0dip"
69+
android:singleLine="true" />
70+
71+
72+
<TextView
73+
android:layout_width="fill_parent"
74+
android:layout_height="wrap_content"
75+
android:layout_marginTop="5.0dip"
76+
android:gravity="right"
77+
android:textColor="#ff808080" />
78+
79+
<Button
80+
android:id="@+id/btn_create_host"
81+
android:layout_width="fill_parent"
82+
android:layout_height="wrap_content"
83+
android:layout_margin="5.0dip"
84+
android:background="@drawable/btn_selector"
85+
android:text="Create Host"
86+
android:textColor="#ffffffff" />
87+
88+
</LinearLayout>
89+
</LinearLayout>

res/layout/dialog_editor.xml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="fill_parent"
54
android:layout_height="fill_parent"
65
android:orientation="vertical">
@@ -15,7 +14,7 @@
1514
android:orientation="vertical">
1615

1716
<EditText
18-
android:id="@+id/config"
17+
android:id="@+id/content"
1918
android:layout_width="fill_parent"
2019
android:layout_height="wrap_content"
2120
android:background="#ffffffff"

res/layout/dialog_holo.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="fill_parent"
54
android:layout_height="fill_parent"
65
android:background="#ffffffff"

res/layout/dialog_progress_holo.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:id="@+id/progress_layout_root"
54
android:layout_width="fill_parent"
65
android:layout_height="fill_parent"

res/layout/drawer_list_item.xml

-31
This file was deleted.

res/layout/extensions_list_item.xml

-15
This file was deleted.

0 commit comments

Comments
 (0)