mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-19 20:38:53 +01:00
Refactor presentation packages
This commit is contained in:
@@ -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