Commit 0be9c01d by Paktalin

Finally fixed background issue

parent 1ca4ace2
...@@ -44,7 +44,7 @@ class MainActivity : AppCompatActivity() { ...@@ -44,7 +44,7 @@ class MainActivity : AppCompatActivity() {
} }
private fun extractVocabularyData() { private fun extractVocabularyData() {
val userId = FirebaseAuth.getInstance().currentUser!!.uid val userId = FirebaseAuth.getInstance()!!.currentUser!!.uid
val db = ConfiguredFirestore.instance val db = ConfiguredFirestore.instance
val userDocument = db.collection("users").document(userId) val userDocument = db.collection("users").document(userId)
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<include layout="@layout/img_background"/>
<TextView <TextView
android:id="@+id/etWord" android:id="@+id/etWord"
android:layout_width="wrap_content" android:layout_width="wrap_content"
......
...@@ -4,7 +4,14 @@ ...@@ -4,7 +4,14 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:orientation="horizontal"
android:background="@drawable/line_background"
android:paddingLeft="16dp"
android:paddingStart="16dp"
android:paddingRight="16dp"
android:paddingEnd="16dp"
android:paddingTop="8dp"
android:paddingBottom="8dp">
<EditText <EditText
android:id="@+id/etWord" android:id="@+id/etWord"
...@@ -35,7 +42,7 @@ ...@@ -35,7 +42,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:visibility="invisible" android:visibility="gone"
android:background="@android:color/transparent" android:background="@android:color/transparent"
app:srcCompat="@drawable/ic_cancel_icon" app:srcCompat="@drawable/ic_cancel_icon"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
......
<?xml version="1.0" encoding="utf-8"?>
<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">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/notepad"
android:scaleType="fitXY"
tools:ignore="ContentDescription" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
...@@ -46,7 +47,8 @@ ...@@ -46,7 +47,8 @@
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:background="@android:color/transparent" android:background="@android:color/transparent"
app:srcCompat="@drawable/ic_done_icon" /> app:srcCompat="@drawable/ic_done_icon"
tools:ignore="ContentDescription" />
</FrameLayout> </FrameLayout>
......
...@@ -8,11 +8,13 @@ ...@@ -8,11 +8,13 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:background="@drawable/one_item2" android:paddingLeft="16dp"
android:paddingRight="32dp" android:paddingStart="16dp"
android:paddingLeft="56dp" android:paddingRight="16dp"
android:paddingEnd="32dp" android:paddingEnd="16dp"
android:paddingStart="56dp"> android:paddingTop="8dp"
android:paddingBottom="8dp"
android:background="@drawable/line_background">
<TextView <TextView
android:id="@+id/etWord" android:id="@+id/etWord"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment