Skip to content

Commit

Permalink
Merge pull request #14 from EarthGardener/feature/12-home
Browse files Browse the repository at this point in the history
[UI] 홈 화면 레이아웃 구성 #12
  • Loading branch information
JaesungLeee authored Feb 4, 2022
2 parents aa4993b + 7020b59 commit 0ae53fe
Show file tree
Hide file tree
Showing 6 changed files with 437 additions and 12 deletions.
26 changes: 25 additions & 1 deletion EarthGardener/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions EarthGardener/app/src/main/res/drawable/bg_home.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="398dp"
android:height="125dp"
android:viewportWidth="398"
android:viewportHeight="125">
<path
android:pathData="M0,0H398V125H0V0Z">
<aapt:attr name="android:fillColor">
<gradient
android:startY="-22.5291"
android:startX="-27.064"
android:endY="224.046"
android:endX="223.677"
android:type="linear">
<item android:offset="0" android:color="#FF47AC94"/>
<item android:offset="1" android:color="#47AC94"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M397.5,125C380.362,125 363.393,121.767 347.56,115.485C331.727,109.203 317.341,99.996 305.223,88.388C293.105,76.781 283.492,63.001 276.934,47.835C270.375,32.67 267,16.415 267,0L397.5,0V125Z"
android:fillColor="#ffffff"
android:fillAlpha="0.15"/>
<path
android:pathData="M315,124.5C315,103.15 323.481,82.675 338.578,67.578C353.675,52.481 374.15,44 395.5,44V124.5H315Z"
android:fillColor="#ffffff"
android:fillAlpha="0.15"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_enabled="true" android:state_focused="true" >
<shape android:shape="rectangle">
<solid android:color="@color/background_white" />
<corners android:radius="5dp" />
<stroke android:color="@color/primary_green" android:width="1dp" />
</shape>
</item>


<item android:state_enabled="false" android:state_focused="false" >
<shape android:shape="rectangle">
<solid android:color="@color/background_white" />
<corners android:radius="5dp" />
<stroke android:color="@color/any_dark_gray" android:width="1dp" />
</shape>
</item>

</selector>
86 changes: 86 additions & 0 deletions EarthGardener/app/src/main/res/layout/dialog_tree_name.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">

<com.google.android.material.card.MaterialCardView
android:layout_width="0dp"
android:layout_height="250dp"
android:layout_margin="10dp"
app:cardBackgroundColor="@color/background_white"
app:cardCornerRadius="5dp"
app:cardElevation="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp">

<TextView
android:id="@+id/tv_dialog_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/suit_bold"
android:text="@string/dialog_title"
android:textColor="@color/text_black"
android:textSize="20sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/tv_dialog_subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:fontFamily="@font/suit_medium"
android:text="@string/dialog_subtitle"
android:textColor="@color/any_dark_gray"
android:textSize="14sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_dialog_title" />

<EditText
android:id="@+id/et_dialog_tree_name"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginTop="20dp"
android:background="@drawable/selector_edit_text_tracker_green"
android:ems="10"
android:hint="@string/dialog_hint_tree_name"
android:inputType="text"
android:maxLines="1"
android:paddingStart="10dp"
android:textColor="@color/text_black"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_dialog_subtitle" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_save_name"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_marginTop="20dp"
android:background="@drawable/rectangle_primary_green_radius_20"
android:fontFamily="@font/suit_bold"
android:gravity="center"
android:text="@string/save"
android:textColor="@color/background_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/et_dialog_tree_name" />


</androidx.constraintlayout.widget.ConstraintLayout>


</com.google.android.material.card.MaterialCardView>


</androidx.constraintlayout.widget.ConstraintLayout>
Loading

0 comments on commit 0ae53fe

Please sign in to comment.