Skip to content

Commit 61dc6e9

Browse files
committed
Add GiftLayout to wrapping fragment
1 parent 8eeeeee commit 61dc6e9

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed

build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ buildscript {
3434
'rxbinding3' : '3.1.0',
3535
'material' : '1.1.0',
3636
'dagger' : '2.27',
37+
'constraint' : '1.1.3',
3738
]
3839
}
3940

wrapping/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dependencies {
2828
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
2929
implementation "androidx.appcompat:appcompat:${versions.appcompat}"
3030
implementation "androidx.core:core-ktx:${versions.core_ktx}"
31+
implementation "androidx.constraintlayout:constraintlayout:${versions.constraint}"
3132

3233
implementation "com.google.dagger:dagger:${versions.dagger}"
3334
kapt "com.google.dagger:dagger-compiler:${versions.dagger}"
@@ -37,4 +38,5 @@ dependencies {
3738
androidTestImplementation "androidx.test.espresso:espresso-core:${versions.espresso}"
3839

3940
api project(':wrapping-api')
41+
implementation project(':gift-ui')
4042
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.gifft.wrapping
22

3-
import com.gifft.core.api.underdevelopment.UnderDevelopmentFragment
3+
import androidx.fragment.app.Fragment
44
import javax.inject.Inject
55

66
class WrappingFragment @Inject constructor(viewModel: WrappingFragmentViewModel) :
7-
UnderDevelopmentFragment()
7+
Fragment(R.layout.wrapping_fragment)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:layout_width="match_parent"
6+
android:layout_height="match_parent">
7+
8+
<com.gifft.gift_ui.GiftLayout
9+
android:id="@+id/giftLayout"
10+
android:layout_width="0dp"
11+
android:layout_height="wrap_content"
12+
app:giftColor="@android:color/holo_red_dark"
13+
app:layout_constraintBottom_toBottomOf="parent"
14+
app:layout_constraintEnd_toEndOf="parent"
15+
app:layout_constraintStart_toStartOf="parent"
16+
app:layout_constraintTop_toTopOf="parent"
17+
app:layout_constraintVertical_bias="0.7"
18+
app:layout_constraintWidth_percent="0.6"
19+
app:opened="true">
20+
21+
<EditText
22+
android:id="@+id/giftText"
23+
android:layout_width="match_parent"
24+
android:layout_height="wrap_content"
25+
android:layout_marginVertical="8dp"
26+
android:background="@color/colorAccent"
27+
android:gravity="center"
28+
android:importantForAutofill="no"
29+
android:inputType="textMultiLine|textNoSuggestions"
30+
android:padding="8dp"
31+
android:textColor="@android:color/white"
32+
android:textSize="20sp"
33+
tools:text="TEST TEST TEST" />
34+
</com.gifft.gift_ui.GiftLayout>
35+
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)