diff options
author | zeapo <mohamed@zenadi.com> | 2014-10-19 18:55:52 +0200 |
---|---|---|
committer | zeapo <mohamed@zenadi.com> | 2014-10-19 18:55:52 +0200 |
commit | 01a1522194d4b6803d88e9ac1c50e5cddd70fa05 (patch) | |
tree | 2184be59f6bbfaf54083d5fefe771b193da7a0a5 /app/src/main/res | |
parent | 639031737f6cbfd2c9cf3bcede8d1c85e9ddac67 (diff) |
Improved layout of clone and made it similar to the rest of the application
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/bottom_line.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_git_clone.xml | 11 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_to_clone_or_not.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 2 |
4 files changed, 16 insertions, 6 deletions
diff --git a/app/src/main/res/drawable/bottom_line.xml b/app/src/main/res/drawable/bottom_line.xml index fab0b04f..a28cc6d3 100644 --- a/app/src/main/res/drawable/bottom_line.xml +++ b/app/src/main/res/drawable/bottom_line.xml @@ -2,7 +2,7 @@ <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle"> - <solid android:color="@android:color/holo_orange_dark"/> + <solid android:color="@color/blue_grey_700"/> </shape> </item> diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml index f1adcd6d..f26d6f8d 100644 --- a/app/src/main/res/layout/activity_git_clone.xml +++ b/app/src/main/res/layout/activity_git_clone.xml @@ -21,7 +21,7 @@ style="@android:style/TextAppearance.Large" android:gravity="left" android:paddingBottom="6dp" - android:textColor="@android:color/holo_orange_dark" + android:textColor="@color/blue_grey_700" android:background="@drawable/bottom_line"/> <RelativeLayout @@ -61,6 +61,7 @@ android:id="@+id/label_server_user" android:layout_centerVertical="true" android:layout_alignParentLeft="true" + android:paddingBottom="8dp" android:layout_alignParentStart="true" /> <EditText @@ -68,6 +69,7 @@ android:layout_height="wrap_content" android:hint="@string/server_user_hint" android:id="@+id/server_user" + android:layout_marginLeft="8dp" android:layout_toEndOf="@+id/label_server_user" android:layout_toRightOf="@+id/label_server_user" android:layout_alignParentRight="true" @@ -83,6 +85,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/server_url" + android:paddingBottom="8dp" android:id="@+id/label_server_url" android:layout_centerVertical="true" android:layout_alignParentLeft="true" @@ -93,6 +96,7 @@ android:layout_height="wrap_content" android:hint="@string/server_url_hint" android:id="@+id/server_url" + android:layout_marginLeft="8dp" android:layout_toEndOf="@+id/label_server_url" android:layout_toRightOf="@+id/label_server_url" android:layout_toLeftOf="@+id/label_server_port" @@ -102,6 +106,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text=":" + android:paddingBottom="8dp" android:id="@+id/label_server_port" android:layout_centerVertical="true" android:layout_toLeftOf="@+id/server_port" @@ -125,6 +130,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/server_path" + android:paddingBottom="8dp" android:id="@+id/label_server_path" android:layout_centerVertical="true" android:layout_alignParentLeft="true" @@ -134,6 +140,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/server_path_hint" + android:layout_marginLeft="8dp" android:id="@+id/server_path" android:layout_toEndOf="@+id/label_server_path" android:layout_toRightOf="@+id/label_server_path" @@ -150,7 +157,7 @@ style="@android:style/TextAppearance.Large" android:gravity="left" android:paddingBottom="6dp" - android:textColor="@android:color/holo_orange_dark" + android:textColor="@color/blue_grey_700" android:background="@drawable/bottom_line"/> <EditText diff --git a/app/src/main/res/layout/fragment_to_clone_or_not.xml b/app/src/main/res/layout/fragment_to_clone_or_not.xml index e5c4172f..3aed7df4 100644 --- a/app/src/main/res/layout/fragment_to_clone_or_not.xml +++ b/app/src/main/res/layout/fragment_to_clone_or_not.xml @@ -2,7 +2,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="#eee" + android:layout_marginLeft="@dimen/activity_horizontal_margin" + android:layout_marginRight="@dimen/activity_horizontal_margin" tools:context="com.zeapo.pwdstore.ToCloneOrNot"> <RelativeLayout @@ -25,6 +26,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/transparent" + android:textStyle="bold" android:onClick="initRepository" android:text="@string/initialize" android:id="@+id/button" @@ -36,7 +38,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/transparent" - android:textColor="@android:color/holo_orange_dark" + android:textColor="@color/deep_orange_500" + android:textStyle="bold" android:onClick="getClone" android:text="@string/clone" android:layout_below="@+id/textView" diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index f62f8701..08f50df7 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -5,7 +5,7 @@ <item name="colorPrimary">@color/blue_grey_500</item> <item name="colorPrimaryDark">@color/blue_grey_500</item> <item name="android:windowBackground">@color/blue_grey_100</item> - <item name="android:textColorPrimary">@color/blue_grey_50</item> + <item name="android:textColorPrimary">@color/teal_900</item> <item name="android:textColor">@color/blue_grey_900</item> </style> </resources> |