Commit c53a7d01 by Paktalin

Changed fonts and text color

parent 5c782835
...@@ -4,10 +4,13 @@ import android.app.Activity ...@@ -4,10 +4,13 @@ import android.app.Activity
import android.content.Intent import android.content.Intent
import android.support.v7.widget.PopupMenu import android.support.v7.widget.PopupMenu
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
import android.util.Log
import android.view.* import android.view.*
import android.widget.ImageButton import android.widget.ImageButton
import android.widget.LinearLayout import android.widget.LinearLayout
import android.widget.TextView import android.widget.TextView
import com.paktalin.vocabularynotebook.ui.MainActivity
import com.paktalin.vocabularynotebook.ui.WordInfoFragment
import com.paktalin.vocabularynotebook.ui.WordItemInfoActivity import com.paktalin.vocabularynotebook.ui.WordItemInfoActivity
class VocabularyAdapter(private val wordItems: MutableList<WordItem>, private val context: Activity) : RecyclerView.Adapter<VocabularyAdapter.ViewHolder>() { class VocabularyAdapter(private val wordItems: MutableList<WordItem>, private val context: Activity) : RecyclerView.Adapter<VocabularyAdapter.ViewHolder>() {
...@@ -36,9 +39,13 @@ class VocabularyAdapter(private val wordItems: MutableList<WordItem>, private va ...@@ -36,9 +39,13 @@ class VocabularyAdapter(private val wordItems: MutableList<WordItem>, private va
override fun getItemCount(): Int { return wordItems.size } override fun getItemCount(): Int { return wordItems.size }
private fun openWordItemInfo(wordItem: WordItem) { private fun openWordItemInfo(wordItem: WordItem) {
val intentWordItemInfo = Intent(context, WordItemInfoActivity::class.java) /* val intentWordItemInfo = Intent(context, WordItemInfoActivity::class.java)
intentWordItemInfo.putExtra("wordItem", wordItem) intentWordItemInfo.putExtra("wordItem", wordItem)
context.startActivity(intentWordItemInfo) context.startActivity(intentWordItemInfo)*/
Log.d(TAG, "starting transaction")
//todo start word info fragment
/*(context as MainActivity).supportFragmentManager.beginTransaction().add(R.id.for_fragment, WordInfoFragment()).commit()*/
} }
private fun showPopupMenu(v: View, position: Int) { private fun showPopupMenu(v: View, position: Int) {
......
package com.paktalin.vocabularynotebook.ui
import android.os.Bundle
import android.support.v4.app.Fragment
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.paktalin.vocabularynotebook.R
class WordInfoFragment : Fragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
Log.d("TTT", "onCreateView")
return inflater.inflate(R.layout.activity_word_info, container, false)
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<font-family
xmlns:app="http://schemas.android.com/apk/res-auto">
<font
app:font="@font/gamjaflower" />
<font
app:font="@font/neucha" />
</font-family>
\ No newline at end of file
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" 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"
android:layout_width="match_parent" android:layout_width="250dp"
android:layout_height="match_parent"> android:layout_height="180dp"
android:layout_gravity="center">
<TextView <TextView
android:id="@+id/etWord" android:id="@+id/etWord"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
android:hint="@string/hint_new_word" android:hint="@string/hint_new_word"
android:inputType="text" android:inputType="text"
android:textSize="22sp" android:textSize="22sp"
app:fontFamily="@font/fonts" app:fontFamily="@font/neucha"
android:textColor="#000F55"
tools:ignore="LabelFor" /> tools:ignore="LabelFor" />
<EditText <EditText
...@@ -53,7 +54,8 @@ ...@@ -53,7 +54,8 @@
android:hint="@string/hint_translation" android:hint="@string/hint_translation"
android:inputType="text" android:inputType="text"
android:textSize="22sp" android:textSize="22sp"
app:fontFamily="@font/fonts" app:fontFamily="@font/neucha"
android:textColor="#000F55"
tools:ignore="LabelFor" /> tools:ignore="LabelFor" />
</LinearLayout> </LinearLayout>
......
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginStart="8dp" /> android:layout_marginStart="8dp"
tools:ignore="ContentDescription" />
<LinearLayout <LinearLayout
android:id="@+id/tableLayout" android:id="@+id/tableLayout"
...@@ -39,7 +40,8 @@ ...@@ -39,7 +40,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:textSize="22sp" android:textSize="22sp"
app:fontFamily="@font/fonts" app:fontFamily="@font/neucha"
android:textColor="#000F55"
tools:ignore="LabelFor" /> tools:ignore="LabelFor" />
<TextView <TextView
...@@ -48,7 +50,8 @@ ...@@ -48,7 +50,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:textSize="22sp" android:textSize="22sp"
app:fontFamily="@font/fonts" app:fontFamily="@font/neucha"
android:textColor="#000F55"
tools:ignore="LabelFor" /> tools:ignore="LabelFor" />
</LinearLayout> </LinearLayout>
......
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