-
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
bfc5fca
commit 5a67211
Showing
8 changed files
with
119 additions
and
29 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
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/scholar/center/ui/dialogs/LoadingDialogFragment.kt
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 @@ | ||
package com.scholar.center.ui.dialogs | ||
|
||
|
||
import android.app.Dialog | ||
import android.os.Bundle | ||
import android.view.Window | ||
import androidx.fragment.app.DialogFragment | ||
import com.scholar.center.R | ||
|
||
class LoadingDialogFragment : DialogFragment(R.layout.dialog_loading) { | ||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { | ||
val dialog = super.onCreateDialog(savedInstanceState) | ||
dialog.setCancelable(false) | ||
dialog.setCanceledOnTouchOutside(false) | ||
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE) | ||
return 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
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
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,16 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
tools:context=".ui.materials.detail.MaterialInformationFragment" | ||
android:padding="20dp"> | ||
|
||
<TextView | ||
android:id="@+id/material_information_description" | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/subject" | ||
android:layout_marginBottom="5dp" | ||
android:textAppearance="@style/TextBody1" | ||
android:textStyle="normal"/> | ||
|
||
<TextView | ||
android:id="@+id/material_information_subject" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/subject" | ||
android:layout_marginBottom="5dp" | ||
android:layout_marginStart="5dp" | ||
android:textAppearance="@style/TextBody1"/> | ||
</LinearLayout> | ||
|
||
<TextView | ||
android:id="@+id/material_information_title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/hello_blank_fragment" | ||
android:layout_marginBottom="20dp" | ||
android:textAppearance="@style/TextBody1"/> | ||
|
||
</FrameLayout> | ||
<TextView | ||
android:id="@+id/material_information_description" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/hello_blank_fragment" | ||
android:textAppearance="@style/TextBody2"/> | ||
</LinearLayout> |
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