aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-05-03 17:32:07 +0200
committerMohamed Zenadi <mohamed@zenadi.com>2015-05-17 18:58:03 +0200
commitceb183727f758b7c8baa1c01b7280b35013c070a (patch)
tree0b02becad02abff8b48c687a071dd180dba97608 /app/src/main/res
parent4975dfdcfaef453f564eb2dadca7580e47a3d2a6 (diff)
user is able to chose internal/external when creating/cloning
also no longer needed to close to refresh the list
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_to_clone_or_not.xml31
-rw-r--r--app/src/main/res/values/styles.xml2
2 files changed, 11 insertions, 22 deletions
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 f1f8cdd9..58e21418 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
@@ -9,7 +9,7 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
- android:layout_weight="4">
+ android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
@@ -35,8 +35,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="openSettings"
- android:background="@android:color/transparent"
- android:textAppearance="?android:attr/textAppearanceSmall"
+ style="?android:attr/borderlessButtonStyle"
android:text="@string/action_settings"
android:textColor="@android:color/white"
android:layout_alignParentTop="true"
@@ -45,32 +44,22 @@
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_vertical_margin"
- android:textStyle="bold"
android:textAllCaps="true"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/myRectangleView"
android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="2"
+ android:layout_height="48dp"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:background="@android:color/white">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:gravity="center_horizontal"
- android:text="@string/clone_fragment_text"
- android:id="@+id/textView" />
-
+
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="@android:color/transparent"
- android:textStyle="bold"
- android:onClick="initRepository"
+ style="?android:attr/borderlessButtonStyle"
+ android:onClick="createNewRepository"
android:text="@string/initialize"
android:id="@+id/button"
android:layout_alignTop="@+id/main_clone_button"
@@ -80,14 +69,14 @@
android:id="@+id/main_clone_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="@android:color/transparent"
- android:textColor="@color/deep_orange_500"
- android:textStyle="bold"
- android:onClick="getClone"
+ style="?android:attr/borderlessButtonStyle"
+ android:textColor="@color/teal_A700"
+ android:onClick="cloneExistingRepository"
android:text="@string/clone"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
+
</RelativeLayout>
</LinearLayout>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index a183f724..3fffef42 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -3,7 +3,7 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/blue_grey_500</item>
- <item name="colorPrimaryDark">@color/blue_grey_500</item>
+ <item name="colorPrimaryDark">@color/blue_grey_700</item>
<item name="android:windowBackground">@color/blue_grey_50</item>
<item name="android:textColorPrimary">@color/teal_900</item>
<item name="android:textColor">@color/text_color</item>