forked from upstream-mirrors/quik
Refactor presentation packages
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.moez.QKSMS.common.di
|
||||
|
||||
import com.moez.QKSMS.common.util.ContactImageLoader
|
||||
import com.moez.QKSMS.presentation.common.widget.*
|
||||
import com.moez.QKSMS.presentation.compose.ComposeActivity
|
||||
import com.moez.QKSMS.presentation.compose.ComposeViewModel
|
||||
import com.moez.QKSMS.presentation.compose.DetailedChipView
|
||||
@@ -8,7 +9,6 @@ import com.moez.QKSMS.presentation.main.MainActivity
|
||||
import com.moez.QKSMS.presentation.main.MainViewModel
|
||||
import com.moez.QKSMS.presentation.settings.SettingsActivity
|
||||
import com.moez.QKSMS.presentation.settings.SettingsViewModel
|
||||
import com.moez.QKSMS.presentation.view.*
|
||||
import com.moez.QKSMS.receiver.*
|
||||
import dagger.Component
|
||||
import javax.inject.Singleton
|
||||
|
||||
@@ -5,7 +5,6 @@ import android.arch.lifecycle.ViewModelProvider
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import android.provider.ContactsContract
|
||||
import com.moez.QKSMS.presentation.compose.ComposeActivity
|
||||
import com.moez.QKSMS.presentation.compose.ComposeViewModel
|
||||
import com.moez.QKSMS.presentation.main.MainViewModel
|
||||
@@ -15,9 +14,6 @@ import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Singleton
|
||||
class Navigator @Inject constructor(val context: Context) {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.base
|
||||
package com.moez.QKSMS.presentation.common.base
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.arch.lifecycle.ViewModelProviders
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.base
|
||||
package com.moez.QKSMS.presentation.common.base
|
||||
|
||||
import android.support.v7.util.DiffUtil
|
||||
import android.support.v7.widget.RecyclerView
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.base
|
||||
package com.moez.QKSMS.presentation.common.base
|
||||
|
||||
interface QkView<in State> {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.base
|
||||
package com.moez.QKSMS.presentation.common.base
|
||||
|
||||
import android.support.v7.widget.RecyclerView
|
||||
import android.view.View
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.base
|
||||
package com.moez.QKSMS.presentation.common.base
|
||||
|
||||
import android.arch.lifecycle.ViewModel
|
||||
import android.support.annotation.CallSuper
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.view
|
||||
package com.moez.QKSMS.presentation.common.widget
|
||||
|
||||
import android.content.Context
|
||||
import android.net.Uri
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.view
|
||||
package com.moez.QKSMS.presentation.common.widget
|
||||
|
||||
import android.content.Context
|
||||
import android.support.constraint.ConstraintLayout
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.view
|
||||
package com.moez.QKSMS.presentation.common.widget
|
||||
|
||||
import android.content.Context
|
||||
import android.support.v7.widget.LinearLayoutCompat
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.view
|
||||
package com.moez.QKSMS.presentation.common.widget
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.view
|
||||
package com.moez.QKSMS.presentation.common.widget
|
||||
|
||||
import android.content.Context
|
||||
import android.content.res.ColorStateList
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.view
|
||||
package com.moez.QKSMS.presentation.common.widget
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.view
|
||||
package com.moez.QKSMS.presentation.common.widget
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.moez.QKSMS.presentation.view
|
||||
package com.moez.QKSMS.presentation.common.widget
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
@@ -17,8 +17,8 @@ import com.moez.QKSMS.R
|
||||
import com.moez.QKSMS.common.util.extensions.dpToPx
|
||||
import com.moez.QKSMS.common.util.extensions.showKeyboard
|
||||
import com.moez.QKSMS.data.model.Contact
|
||||
import com.moez.QKSMS.presentation.base.QkAdapter
|
||||
import com.moez.QKSMS.presentation.base.QkViewHolder
|
||||
import com.moez.QKSMS.presentation.common.base.QkAdapter
|
||||
import com.moez.QKSMS.presentation.common.base.QkViewHolder
|
||||
import io.reactivex.subjects.PublishSubject
|
||||
import kotlinx.android.synthetic.main.contact_chip.view.*
|
||||
import javax.inject.Inject
|
||||
|
||||
@@ -18,7 +18,7 @@ import com.moez.QKSMS.common.util.extensions.setVisible
|
||||
import com.moez.QKSMS.common.util.extensions.showKeyboard
|
||||
import com.moez.QKSMS.data.model.Contact
|
||||
import com.moez.QKSMS.data.model.Message
|
||||
import com.moez.QKSMS.presentation.base.QkActivity
|
||||
import com.moez.QKSMS.presentation.common.base.QkActivity
|
||||
import io.reactivex.Observable
|
||||
import io.reactivex.rxkotlin.Observables
|
||||
import io.reactivex.rxkotlin.plusAssign
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.moez.QKSMS.presentation.compose
|
||||
|
||||
import com.moez.QKSMS.data.model.Contact
|
||||
import com.moez.QKSMS.data.model.Message
|
||||
import com.moez.QKSMS.presentation.base.QkView
|
||||
import com.moez.QKSMS.presentation.common.base.QkView
|
||||
import io.reactivex.Observable
|
||||
import io.reactivex.subjects.Subject
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.moez.QKSMS.data.repository.ContactRepository
|
||||
import com.moez.QKSMS.data.repository.MessageRepository
|
||||
import com.moez.QKSMS.domain.interactor.*
|
||||
import com.moez.QKSMS.presentation.Navigator
|
||||
import com.moez.QKSMS.presentation.base.QkViewModel
|
||||
import com.moez.QKSMS.presentation.common.base.QkViewModel
|
||||
import io.reactivex.Observable
|
||||
import io.reactivex.android.schedulers.AndroidSchedulers
|
||||
import io.reactivex.rxkotlin.Observables
|
||||
|
||||
@@ -6,8 +6,8 @@ import android.view.ViewGroup
|
||||
import com.jakewharton.rxbinding2.view.clicks
|
||||
import com.moez.QKSMS.R
|
||||
import com.moez.QKSMS.data.model.Contact
|
||||
import com.moez.QKSMS.presentation.base.QkAdapter
|
||||
import com.moez.QKSMS.presentation.base.QkViewHolder
|
||||
import com.moez.QKSMS.presentation.common.base.QkAdapter
|
||||
import com.moez.QKSMS.presentation.common.base.QkViewHolder
|
||||
import io.reactivex.subjects.PublishSubject
|
||||
import io.reactivex.subjects.Subject
|
||||
import kotlinx.android.synthetic.main.contact_list_item.view.*
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.moez.QKSMS.common.util.extensions.setBackgroundTint
|
||||
import com.moez.QKSMS.common.util.extensions.setPadding
|
||||
import com.moez.QKSMS.data.model.Contact
|
||||
import com.moez.QKSMS.data.model.Message
|
||||
import com.moez.QKSMS.presentation.base.QkViewHolder
|
||||
import com.moez.QKSMS.presentation.common.base.QkViewHolder
|
||||
import io.reactivex.disposables.CompositeDisposable
|
||||
import io.reactivex.rxkotlin.plusAssign
|
||||
import io.reactivex.subjects.PublishSubject
|
||||
|
||||
@@ -11,8 +11,8 @@ import com.moez.QKSMS.common.util.DateFormatter
|
||||
import com.moez.QKSMS.data.model.ConversationMessagePair
|
||||
import com.moez.QKSMS.data.repository.MessageRepository
|
||||
import com.moez.QKSMS.presentation.Navigator
|
||||
import com.moez.QKSMS.presentation.base.QkAdapter
|
||||
import com.moez.QKSMS.presentation.base.QkViewHolder
|
||||
import com.moez.QKSMS.presentation.common.base.QkAdapter
|
||||
import com.moez.QKSMS.presentation.common.base.QkViewHolder
|
||||
import io.reactivex.disposables.CompositeDisposable
|
||||
import io.reactivex.rxkotlin.plusAssign
|
||||
import io.reactivex.subjects.PublishSubject
|
||||
|
||||
@@ -22,7 +22,7 @@ import com.moez.QKSMS.R
|
||||
import com.moez.QKSMS.common.di.appComponent
|
||||
import com.moez.QKSMS.common.util.extensions.setBackgroundTint
|
||||
import com.moez.QKSMS.presentation.Navigator
|
||||
import com.moez.QKSMS.presentation.base.QkActivity
|
||||
import com.moez.QKSMS.presentation.common.base.QkActivity
|
||||
import io.reactivex.rxkotlin.Observables
|
||||
import io.reactivex.rxkotlin.plusAssign
|
||||
import io.reactivex.subjects.PublishSubject
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.moez.QKSMS.presentation.main
|
||||
|
||||
import com.moez.QKSMS.presentation.base.QkView
|
||||
import com.moez.QKSMS.presentation.common.base.QkView
|
||||
import io.reactivex.Observable
|
||||
import io.reactivex.subjects.Subject
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.moez.QKSMS.domain.interactor.MarkAllSeen
|
||||
import com.moez.QKSMS.domain.interactor.MarkArchived
|
||||
import com.moez.QKSMS.domain.interactor.PartialSync
|
||||
import com.moez.QKSMS.presentation.Navigator
|
||||
import com.moez.QKSMS.presentation.base.QkViewModel
|
||||
import com.moez.QKSMS.presentation.common.base.QkViewModel
|
||||
import io.reactivex.rxkotlin.plusAssign
|
||||
import io.reactivex.rxkotlin.withLatestFrom
|
||||
import javax.inject.Inject
|
||||
|
||||
@@ -8,8 +8,8 @@ import android.support.v7.widget.RecyclerView
|
||||
import com.jakewharton.rxbinding2.view.clicks
|
||||
import com.moez.QKSMS.R
|
||||
import com.moez.QKSMS.common.di.appComponent
|
||||
import com.moez.QKSMS.presentation.base.QkActivity
|
||||
import com.moez.QKSMS.presentation.view.PreferenceView
|
||||
import com.moez.QKSMS.presentation.common.base.QkActivity
|
||||
import com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
import io.reactivex.rxkotlin.plusAssign
|
||||
import io.reactivex.subjects.PublishSubject
|
||||
import io.reactivex.subjects.Subject
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.moez.QKSMS.presentation.settings
|
||||
|
||||
import com.moez.QKSMS.presentation.base.QkView
|
||||
import com.moez.QKSMS.presentation.view.PreferenceView
|
||||
import com.moez.QKSMS.presentation.common.base.QkView
|
||||
import com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
import io.reactivex.Observable
|
||||
import io.reactivex.subjects.Subject
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.moez.QKSMS.R
|
||||
import com.moez.QKSMS.common.di.appComponent
|
||||
import com.moez.QKSMS.common.util.Preferences
|
||||
import com.moez.QKSMS.domain.interactor.FullSync
|
||||
import com.moez.QKSMS.presentation.base.QkViewModel
|
||||
import com.moez.QKSMS.presentation.common.base.QkViewModel
|
||||
import io.reactivex.rxkotlin.plusAssign
|
||||
import timber.log.Timber
|
||||
import javax.inject.Inject
|
||||
|
||||
@@ -5,8 +5,8 @@ import android.view.LayoutInflater
|
||||
import android.view.ViewGroup
|
||||
import com.moez.QKSMS.R
|
||||
import com.moez.QKSMS.common.util.extensions.setBackgroundTint
|
||||
import com.moez.QKSMS.presentation.base.QkAdapter
|
||||
import com.moez.QKSMS.presentation.base.QkViewHolder
|
||||
import com.moez.QKSMS.presentation.common.base.QkAdapter
|
||||
import com.moez.QKSMS.presentation.common.base.QkViewHolder
|
||||
import io.reactivex.subjects.PublishSubject
|
||||
import io.reactivex.subjects.Subject
|
||||
import kotlinx.android.synthetic.main.theme_list_item.view.*
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:background="@color/tools_theme"
|
||||
tools:parentTag="com.moez.QKSMS.presentation.view.AvatarView">
|
||||
tools:parentTag="com.moez.QKSMS.presentation.common.widget.AvatarView">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/initial"
|
||||
style="@style/TextPrimary"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.moez.QKSMS.presentation.view.QkEditText xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.moez.QKSMS.presentation.common.widget.QkEditText 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="match_parent"
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<com.moez.QKSMS.presentation.view.Separator
|
||||
<com.moez.QKSMS.presentation.common.widget.Separator
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp" />
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/ic_add_circle_black_24dp" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkEditText
|
||||
<com.moez.QKSMS.presentation.common.widget.QkEditText
|
||||
android:id="@+id/message"
|
||||
style="@style/TextPrimary"
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
android:background="@drawable/chip_background"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.AvatarView
|
||||
<com.moez.QKSMS.presentation.common.widget.AvatarView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
android:elevation="8dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.AvatarView
|
||||
<com.moez.QKSMS.presentation.common.widget.AvatarView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
@@ -27,7 +27,7 @@
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/name"
|
||||
style="@style/TextPrimary"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -37,7 +37,7 @@
|
||||
android:scrollHorizontally="true"
|
||||
tools:text="Moez Bhatti" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/info"
|
||||
style="@style/TextSecondary"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.AvatarView
|
||||
<com.moez.QKSMS.presentation.common.widget.AvatarView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
@@ -21,14 +21,14 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/name"
|
||||
style="@style/TextPrimary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
tools:text="Moez Bhatti" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/address"
|
||||
style="@style/TextSecondary"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
android:paddingStart="16dp"
|
||||
android:paddingTop="8dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.GroupAvatarView
|
||||
<com.moez.QKSMS.presentation.common.widget.GroupAvatarView
|
||||
android:id="@+id/avatars"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
@@ -27,7 +27,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/title"
|
||||
style="@style/TextPrimary"
|
||||
android:layout_width="0dp"
|
||||
@@ -37,7 +37,7 @@
|
||||
android:layout_weight="1"
|
||||
tools:text="Moez Bhatti" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/date"
|
||||
style="@style/TextTertiary"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/snippet"
|
||||
style="@style/TextSecondary"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
android:paddingStart="16dp"
|
||||
android:paddingTop="8dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.GroupAvatarView
|
||||
<com.moez.QKSMS.presentation.common.widget.GroupAvatarView
|
||||
android:id="@+id/avatars"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
@@ -28,7 +28,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/title"
|
||||
style="@style/TextPrimary"
|
||||
android:layout_width="0dp"
|
||||
@@ -39,7 +39,7 @@
|
||||
android:textStyle="bold"
|
||||
tools:text="Moez Bhatti" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/date"
|
||||
style="@style/TextTertiary"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/snippet"
|
||||
style="@style/TextSecondary"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
style="@style/DrawerIcon"
|
||||
android:src="@drawable/ic_inbox_black_24dp" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
style="@style/DrawerText"
|
||||
android:text="@string/drawer_inbox" />
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
style="@style/DrawerIcon"
|
||||
android:src="@drawable/ic_folder_black_24dp" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
style="@style/DrawerText"
|
||||
android:text="@string/drawer_archived" />
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
style="@style/DrawerIcon"
|
||||
android:src="@drawable/ic_event_black_24dp" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
style="@style/DrawerText"
|
||||
android:text="@string/drawer_scheduled" />
|
||||
|
||||
@@ -60,13 +60,13 @@
|
||||
style="@style/DrawerIcon"
|
||||
android:src="@drawable/ic_block_black_24dp" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
style="@style/DrawerText"
|
||||
android:text="@string/drawer_blocked" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.moez.QKSMS.presentation.view.Separator
|
||||
<com.moez.QKSMS.presentation.common.widget.Separator
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
@@ -81,7 +81,7 @@
|
||||
style="@style/DrawerIcon"
|
||||
android:src="@drawable/ic_settings_black_24dp" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
style="@style/DrawerText"
|
||||
android:text="@string/drawer_settings" />
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
tools:parentTag="com.moez.QKSMS.presentation.view.GroupAvatarView">
|
||||
tools:parentTag="com.moez.QKSMS.presentation.common.widget.GroupAvatarView">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.AvatarView
|
||||
<com.moez.QKSMS.presentation.common.widget.AvatarView
|
||||
android:id="@+id/avatar1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
@@ -16,7 +16,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.AvatarView
|
||||
<com.moez.QKSMS.presentation.common.widget.AvatarView
|
||||
android:id="@+id/avatar2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
@@ -25,7 +25,7 @@
|
||||
app:layout_constraintStart_toEndOf="@+id/avatar1"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.AvatarView
|
||||
<com.moez.QKSMS.presentation.common.widget.AvatarView
|
||||
android:id="@+id/avatar3"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="16dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/timestamp"
|
||||
style="@style/TextSecondary"
|
||||
android:layout_width="match_parent"
|
||||
@@ -27,7 +27,7 @@
|
||||
android:paddingEnd="60dp"
|
||||
android:paddingStart="12dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.AvatarView
|
||||
<com.moez.QKSMS.presentation.common.widget.AvatarView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
@@ -39,7 +39,7 @@
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.TightTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.TightTextView
|
||||
android:id="@+id/body"
|
||||
style="@style/TextPrimary"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -56,7 +56,7 @@
|
||||
tools:backgroundTint="@color/tools_theme"
|
||||
tools:text="@tools:sample/lorem/random" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/status"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="16dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/timestamp"
|
||||
style="@style/TextSecondary"
|
||||
android:layout_width="match_parent"
|
||||
@@ -32,7 +32,7 @@
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.TightTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.TightTextView
|
||||
android:id="@+id/body"
|
||||
style="@style/TextPrimary"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/status"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
tools:parentTag="com.moez.QKSMS.presentation.view.PreferenceView">
|
||||
tools:parentTag="com.moez.QKSMS.presentation.common.widget.PreferenceView">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
@@ -13,14 +13,14 @@
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/titleView"
|
||||
style="@style/TextPrimary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
tools:text="Default SMS App" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/summaryView"
|
||||
style="@style/TextSecondary"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -22,26 +22,26 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/defaultSms"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/settings_default_sms_title" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/theme"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/settings_theme_title" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/dark"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/settings_dark_title"
|
||||
app:widget="@layout/settings_switch_widget" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/autoEmoji"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -49,27 +49,27 @@
|
||||
app:title="@string/settings_auto_emoji_title"
|
||||
app:widget="@layout/settings_switch_widget" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/notifications"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/settings_notifications_title"
|
||||
app:widget="@layout/settings_switch_widget" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/vibration"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/settings_vibration_title"
|
||||
app:widget="@layout/settings_switch_widget" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/ringtone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/settings_ringtone_title" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/delivery"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -77,7 +77,7 @@
|
||||
app:title="@string/settings_delivery_title"
|
||||
app:widget="@layout/settings_switch_widget" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/split"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -85,7 +85,7 @@
|
||||
app:title="@string/settings_split_title"
|
||||
app:widget="@layout/settings_switch_widget" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/unicode"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -93,20 +93,20 @@
|
||||
app:title="@string/settings_unicode_title"
|
||||
app:widget="@layout/settings_switch_widget" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/mms"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/settings_mms_title"
|
||||
app:widget="@layout/settings_switch_widget" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/mmsSize"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/settings_mms_size_title" />
|
||||
|
||||
<com.moez.QKSMS.presentation.view.PreferenceView
|
||||
<com.moez.QKSMS.presentation.common.widget.PreferenceView
|
||||
android:id="@+id/sync"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.moez.QKSMS.presentation.view.QkSwitch android:id="@+id/checkbox"
|
||||
<com.moez.QKSMS.presentation.common.widget.QkSwitch android:id="@+id/checkbox"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="56dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/toolbarTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="56dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkTextView
|
||||
<com.moez.QKSMS.presentation.common.widget.QkTextView
|
||||
android:id="@+id/toolbarTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="56dp">
|
||||
|
||||
<com.moez.QKSMS.presentation.view.QkEditText
|
||||
<com.moez.QKSMS.presentation.common.widget.QkEditText
|
||||
android:id="@+id/toolbarTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user