-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87d897c
commit abfe114
Showing
156 changed files
with
702 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package moka.land.app.main | ||
|
||
import android.view.LayoutInflater | ||
import android.view.View | ||
import androidx.databinding.DataBindingUtil | ||
import land.moka.dialog.BaseDialog | ||
import moka.land.R | ||
import moka.land.databinding.DialogTestBinding | ||
|
||
class TestDialog : BaseDialog() { | ||
|
||
var onClickOk: ((test: String) -> Unit)? = null | ||
|
||
private lateinit var binding: DialogTestBinding | ||
|
||
override fun getContentView(): View { | ||
return DataBindingUtil.inflate<DialogTestBinding>(LayoutInflater.from(context), R.layout.dialog_test, null, false) | ||
.apply { binding = this }.root | ||
} | ||
|
||
override fun init() { | ||
onClickPositive = { onClickOk?.invoke("test") } | ||
binding.textViewDream.text = "teeeeeeeeest" | ||
} | ||
|
||
override fun getPositiveText(): CharSequence = "닫기" | ||
|
||
override fun isNeutralText(): Boolean = false | ||
|
||
override fun isNegativeText(): Boolean = false | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,61 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout | ||
<layout | ||
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="wrap_content"> | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<EditText | ||
android:id="@+id/editText_text" | ||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginTop="12dp" | ||
android:layout_marginRight="16dp" | ||
android:layout_marginBottom="12dp" | ||
android:background="@color/white_01" | ||
android:elevation="3px" | ||
android:hint="입력해주세요" | ||
android:paddingLeft="16dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="16dp" | ||
android:paddingBottom="10dp" | ||
android:textColorHint="@color/black_09" | ||
android:textSize="13dp" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
android:layout_height="wrap_content"> | ||
|
||
<TextView | ||
android:id="@+id/textView_dream" | ||
android:layout_width="0dp" | ||
android:layout_height="52dp" | ||
android:layout_weight="1" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="24dp" | ||
android:paddingRight="24dp" | ||
android:text="목표 수정하기" | ||
android:textColor="#FF808080" | ||
android:textSize="13dp" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintRight_toRightOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/editText_text" /> | ||
<EditText | ||
android:id="@+id/editText_text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginTop="12dp" | ||
android:layout_marginRight="16dp" | ||
android:layout_marginBottom="12dp" | ||
android:background="@color/white_01" | ||
android:elevation="3px" | ||
android:hint="입력해주세요" | ||
android:paddingLeft="16dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="16dp" | ||
android:paddingBottom="10dp" | ||
android:textColorHint="@color/black_09" | ||
android:textSize="13dp" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<View | ||
android:id="@+id/view_divider01" | ||
style="@style/HorizontalDivider" | ||
android:layout_width="0dp" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginRight="16dp" | ||
android:alpha="0.8" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintRight_toRightOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/textView_dream" /> | ||
<TextView | ||
android:id="@+id/textView_dream" | ||
android:layout_width="0dp" | ||
android:layout_height="52dp" | ||
android:layout_weight="1" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="24dp" | ||
android:paddingRight="24dp" | ||
android:text="목표 수정하기" | ||
android:textColor="#FF808080" | ||
android:textSize="13dp" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintRight_toRightOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/editText_text" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
<View | ||
android:id="@+id/view_divider01" | ||
style="@style/HorizontalDivider" | ||
android:layout_width="0dp" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginRight="16dp" | ||
android:alpha="0.8" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintRight_toRightOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/textView_dream" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
|
||
|
||
</layout> |
Binary file modified
BIN
+8.32 KB
(190%)
dialog/build/.transforms/8fa770e2a99d8080c768defd2186545e/jetified-full.jar
Binary file not shown.
Binary file modified
BIN
+7.2 KB
(160%)
dialog/build/.transforms/d8ee7ecd6d16f262d80acab9e8c93538/jetified-full/classes.dex
Binary file not shown.
99 changes: 99 additions & 0 deletions
99
...base_class_source_out/debug/out/land/moka/dialog/databinding/LayoutBaseDialogBinding.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
// Generated by data binding compiler. Do not edit! | ||
package land.moka.dialog.databinding; | ||
|
||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.FrameLayout; | ||
import android.widget.TextView; | ||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
import androidx.constraintlayout.widget.ConstraintLayout; | ||
import androidx.databinding.DataBindingUtil; | ||
import androidx.databinding.ViewDataBinding; | ||
import java.lang.Deprecated; | ||
import java.lang.Object; | ||
import land.moka.dialog.R; | ||
|
||
public abstract class LayoutBaseDialogBinding extends ViewDataBinding { | ||
@NonNull | ||
public final TextView buttonNegative; | ||
|
||
@NonNull | ||
public final TextView buttonNeutral; | ||
|
||
@NonNull | ||
public final TextView buttonPositive; | ||
|
||
@NonNull | ||
public final FrameLayout content; | ||
|
||
@NonNull | ||
public final ConstraintLayout root; | ||
|
||
protected LayoutBaseDialogBinding(Object _bindingComponent, View _root, int _localFieldCount, | ||
TextView buttonNegative, TextView buttonNeutral, TextView buttonPositive, FrameLayout content, | ||
ConstraintLayout root) { | ||
super(_bindingComponent, _root, _localFieldCount); | ||
this.buttonNegative = buttonNegative; | ||
this.buttonNeutral = buttonNeutral; | ||
this.buttonPositive = buttonPositive; | ||
this.content = content; | ||
this.root = root; | ||
} | ||
|
||
@NonNull | ||
public static LayoutBaseDialogBinding inflate(@NonNull LayoutInflater inflater, | ||
@Nullable ViewGroup root, boolean attachToRoot) { | ||
return inflate(inflater, root, attachToRoot, DataBindingUtil.getDefaultComponent()); | ||
} | ||
|
||
/** | ||
* This method receives DataBindingComponent instance as type Object instead of | ||
* type DataBindingComponent to avoid causing too many compilation errors if | ||
* compilation fails for another reason. | ||
* https://issuetracker.google.com/issues/116541301 | ||
* @Deprecated Use DataBindingUtil.inflate(inflater, R.layout.layout_base_dialog, root, attachToRoot, component) | ||
*/ | ||
@NonNull | ||
@Deprecated | ||
public static LayoutBaseDialogBinding inflate(@NonNull LayoutInflater inflater, | ||
@Nullable ViewGroup root, boolean attachToRoot, @Nullable Object component) { | ||
return ViewDataBinding.<LayoutBaseDialogBinding>inflateInternal(inflater, R.layout.layout_base_dialog, root, attachToRoot, component); | ||
} | ||
|
||
@NonNull | ||
public static LayoutBaseDialogBinding inflate(@NonNull LayoutInflater inflater) { | ||
return inflate(inflater, DataBindingUtil.getDefaultComponent()); | ||
} | ||
|
||
/** | ||
* This method receives DataBindingComponent instance as type Object instead of | ||
* type DataBindingComponent to avoid causing too many compilation errors if | ||
* compilation fails for another reason. | ||
* https://issuetracker.google.com/issues/116541301 | ||
* @Deprecated Use DataBindingUtil.inflate(inflater, R.layout.layout_base_dialog, null, false, component) | ||
*/ | ||
@NonNull | ||
@Deprecated | ||
public static LayoutBaseDialogBinding inflate(@NonNull LayoutInflater inflater, | ||
@Nullable Object component) { | ||
return ViewDataBinding.<LayoutBaseDialogBinding>inflateInternal(inflater, R.layout.layout_base_dialog, null, false, component); | ||
} | ||
|
||
public static LayoutBaseDialogBinding bind(@NonNull View view) { | ||
return bind(view, DataBindingUtil.getDefaultComponent()); | ||
} | ||
|
||
/** | ||
* This method receives DataBindingComponent instance as type Object instead of | ||
* type DataBindingComponent to avoid causing too many compilation errors if | ||
* compilation fails for another reason. | ||
* https://issuetracker.google.com/issues/116541301 | ||
* @Deprecated Use DataBindingUtil.bind(view, component) | ||
*/ | ||
@Deprecated | ||
public static LayoutBaseDialogBinding bind(@NonNull View view, @Nullable Object component) { | ||
return (LayoutBaseDialogBinding)bind(component, view, R.layout.layout_base_dialog); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.