-
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
21fb554
commit 87d897c
Showing
245 changed files
with
5,089 additions
and
23 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 |
---|---|---|
@@ -1,14 +1,38 @@ | ||
package moka.land.app.main | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.content.DialogInterface.BUTTON_POSITIVE | ||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.widget.TextView | ||
import androidx.appcompat.app.AlertDialog | ||
import androidx.appcompat.app.AppCompatActivity | ||
import androidx.core.view.LayoutInflaterCompat | ||
import land.moka.dialog.LoadingDialog | ||
import land.moka.dialog.TitleDialog | ||
import moka.land.R | ||
|
||
class MainActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_main) | ||
|
||
findViewById<TextView>(R.id.textView01).setOnClickListener { | ||
TitleDialog(this) | ||
.apply { | ||
setCustomTitle(LayoutInflater.from(this@MainActivity).inflate(R.layout.dialog_test, null)) | ||
// setTitle("Test") | ||
// setMessage("Test") | ||
setButton(BUTTON_POSITIVE, "OK") { dialogInterface, i -> | ||
|
||
} | ||
} | ||
.show() | ||
} | ||
|
||
findViewById<TextView>(R.id.textView02).setOnClickListener { | ||
LoadingDialog().show(supportFragmentManager) | ||
} | ||
} | ||
|
||
} |
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,3 +1,12 @@ | ||
package moka.land.model.entity | ||
|
||
data class User(var id: String) | ||
import androidx.room.Entity | ||
import androidx.room.PrimaryKey | ||
|
||
@Entity(tableName = "user") | ||
data class User( | ||
|
||
@PrimaryKey | ||
var id: String | ||
|
||
) |
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,56 @@ | ||
<?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="wrap_content"> | ||
|
||
<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" /> | ||
|
||
<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" /> | ||
|
||
<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> |
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,42 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'kotlin-kapt' | ||
|
||
android { | ||
compileSdkVersion 29 | ||
buildToolsVersion "29.0.2" | ||
|
||
defaultConfig { | ||
minSdkVersion 21 | ||
targetSdkVersion 29 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
consumerProguardFiles 'consumer-rules.pro' | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
dataBinding { | ||
enabled = true | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
implementation project(":res") | ||
|
||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
implementation 'androidx.appcompat:appcompat:1.1.0' | ||
implementation "androidx.constraintlayout:constraintlayout:2.0.0-beta2" | ||
implementation "com.android.support.constraint:constraint-layout:2.0.0-beta2" | ||
implementation "com.airbnb.android:lottie:3.0.7" | ||
|
||
} |
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 @@ | ||
o/jetified-full.jar |
Binary file added
BIN
+9.69 KB
dialog/build/.transforms/8fa770e2a99d8080c768defd2186545e/jetified-full.jar
Binary file not shown.
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 @@ | ||
o/jetified-full |
Binary file added
BIN
+11.2 KB
dialog/build/.transforms/d8ee7ecd6d16f262d80acab9e8c93538/jetified-full/classes.dex
Binary file not shown.
80 changes: 80 additions & 0 deletions
80
...e_class_source_out/debug/out/land/moka/dialog/databinding/LayoutLoadingDialogBinding.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,80 @@ | ||
// 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 androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
import androidx.databinding.DataBindingUtil; | ||
import androidx.databinding.ViewDataBinding; | ||
import com.airbnb.lottie.LottieAnimationView; | ||
import java.lang.Deprecated; | ||
import java.lang.Object; | ||
import land.moka.dialog.R; | ||
|
||
public abstract class LayoutLoadingDialogBinding extends ViewDataBinding { | ||
@NonNull | ||
public final LottieAnimationView loading; | ||
|
||
protected LayoutLoadingDialogBinding(Object _bindingComponent, View _root, int _localFieldCount, | ||
LottieAnimationView loading) { | ||
super(_bindingComponent, _root, _localFieldCount); | ||
this.loading = loading; | ||
} | ||
|
||
@NonNull | ||
public static LayoutLoadingDialogBinding 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_loading_dialog, root, attachToRoot, component) | ||
*/ | ||
@NonNull | ||
@Deprecated | ||
public static LayoutLoadingDialogBinding inflate(@NonNull LayoutInflater inflater, | ||
@Nullable ViewGroup root, boolean attachToRoot, @Nullable Object component) { | ||
return ViewDataBinding.<LayoutLoadingDialogBinding>inflateInternal(inflater, R.layout.layout_loading_dialog, root, attachToRoot, component); | ||
} | ||
|
||
@NonNull | ||
public static LayoutLoadingDialogBinding 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_loading_dialog, null, false, component) | ||
*/ | ||
@NonNull | ||
@Deprecated | ||
public static LayoutLoadingDialogBinding inflate(@NonNull LayoutInflater inflater, | ||
@Nullable Object component) { | ||
return ViewDataBinding.<LayoutLoadingDialogBinding>inflateInternal(inflater, R.layout.layout_loading_dialog, null, false, component); | ||
} | ||
|
||
public static LayoutLoadingDialogBinding 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 LayoutLoadingDialogBinding bind(@NonNull View view, @Nullable Object component) { | ||
return (LayoutLoadingDialogBinding)bind(component, view, R.layout.layout_loading_dialog); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
dialog/build/generated/source/buildConfig/debug/land/moka/dialog/BuildConfig.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,18 @@ | ||
/** | ||
* Automatically generated file. DO NOT MODIFY | ||
*/ | ||
package land.moka.dialog; | ||
|
||
public final class BuildConfig { | ||
public static final boolean DEBUG = Boolean.parseBoolean("true"); | ||
public static final String LIBRARY_PACKAGE_NAME = "land.moka.dialog"; | ||
/** | ||
* @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME | ||
*/ | ||
@Deprecated | ||
public static final String APPLICATION_ID = "land.moka.dialog"; | ||
public static final String BUILD_TYPE = "debug"; | ||
public static final String FLAVOR = ""; | ||
public static final int VERSION_CODE = 1; | ||
public static final String VERSION_NAME = "1.0"; | ||
} |
6 changes: 6 additions & 0 deletions
6
...og/build/generated/source/dataBinding/trigger/debug/land/moka/dialog/DataBindingInfo.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,6 @@ | ||
package land.moka.dialog; | ||
|
||
import androidx.databinding.BindingBuildInfo; | ||
|
||
@BindingBuildInfo | ||
public class DataBindingInfo {} |
4 changes: 4 additions & 0 deletions
4
dialog/build/generated/source/kapt/debug/androidx/databinding/DataBindingComponent.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,4 @@ | ||
package androidx.databinding; | ||
|
||
public interface DataBindingComponent { | ||
} |
5 changes: 5 additions & 0 deletions
5
dialog/build/generated/source/kapt/debug/androidx/databinding/library/baseAdapters/BR.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,5 @@ | ||
package androidx.databinding.library.baseAdapters; | ||
|
||
public class BR { | ||
public static int _all = 0; | ||
} |
5 changes: 5 additions & 0 deletions
5
dialog/build/generated/source/kapt/debug/land/moka/dialog/BR.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,5 @@ | ||
package land.moka.dialog; | ||
|
||
public class BR { | ||
public static int _all = 0; | ||
} |
Oops, something went wrong.