Skip to content

Commit

Permalink
user_interface -> ui (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tretdm committed Feb 11, 2023
1 parent 57ef5ef commit 210f1c1
Show file tree
Hide file tree
Showing 20 changed files with 53 additions and 52 deletions.
14 changes: 7 additions & 7 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
android:theme="@style/ApplicationTheme.SplashTheme"
tools:targetApi="m">
<activity
android:name=".user_interface.core.activities.MainActivity"
android:name=".ui.core.activities.MainActivity"
android:exported="true"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc">
<intent-filter>
Expand All @@ -32,37 +32,37 @@
</activity>

<activity
android:name=".user_interface.core.activities.AuthActivity"
android:name=".ui.core.activities.AuthActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode"
android:label="@string/title_activity_auth" />
<activity
android:name=".user_interface.core.activities.AppActivity"
android:name=".ui.core.activities.AppActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode"
android:theme="@style/ApplicationTheme.NoActionBar"
tools:ignore="RedundantLabel" />
<activity
android:name=".user_interface.core.activities.ConversationActivity"
android:name=".ui.core.activities.ConversationActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:label="@string/nav_messages"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode"
android:theme="@style/ApplicationTheme.NoActionBar"
tools:ignore="RedundantLabel" />
<activity
android:name=".user_interface.core.activities.NewPostActivity"
android:name=".ui.core.activities.NewPostActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:label="@string/new_post_title"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mcc|mnc|uiMode"
android:theme="@style/ApplicationTheme.NoActionBar"
tools:ignore="RedundantLabel" />

<activity android:name=".user_interface.core.activities.ProfileIntentActivity"
<activity android:name=".ui.core.activities.ProfileIntentActivity"
android:exported="true"
android:windowSoftInputMode="adjustResize"
android:label="@string/profile_title"
Expand All @@ -75,7 +75,7 @@
<data android:scheme="openvk" android:host="profile" />
</intent-filter>
</activity>
<activity android:name=".user_interface.core.activities.GroupIntentActivity"
<activity android:name=".ui.core.activities.GroupIntentActivity"
android:exported="true"
android:windowSoftInputMode="adjustResize"
android:label="@string/community_title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
import uk.openvk.android.refresh.OvkApplication;
import uk.openvk.android.refresh.api.attachments.PhotoAttachment;
import uk.openvk.android.refresh.api.enumerations.HandlerMessages;
import uk.openvk.android.refresh.user_interface.core.activities.AppActivity;
import uk.openvk.android.refresh.user_interface.core.activities.AuthActivity;
import uk.openvk.android.refresh.user_interface.core.activities.GroupIntentActivity;
import uk.openvk.android.refresh.user_interface.core.activities.ProfileIntentActivity;
import uk.openvk.android.refresh.ui.core.activities.AppActivity;
import uk.openvk.android.refresh.ui.core.activities.AuthActivity;
import uk.openvk.android.refresh.ui.core.activities.GroupIntentActivity;
import uk.openvk.android.refresh.ui.core.activities.ProfileIntentActivity;

/**
* File created by Dmitry on 27.09.2022.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import uk.openvk.android.refresh.R;
import uk.openvk.android.refresh.api.models.Conversation;
import uk.openvk.android.refresh.longpoll_api.MessageEvent;
import uk.openvk.android.refresh.user_interface.core.activities.MainActivity;
import uk.openvk.android.refresh.ui.core.activities.MainActivity;

public class NotificationManager {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
import uk.openvk.android.refresh.OvkApplication;
import uk.openvk.android.refresh.api.enumerations.HandlerMessages;
import uk.openvk.android.refresh.api.models.Error;
import uk.openvk.android.refresh.user_interface.core.activities.AppActivity;
import uk.openvk.android.refresh.user_interface.core.activities.AuthActivity;
import uk.openvk.android.refresh.user_interface.core.activities.ConversationActivity;
import uk.openvk.android.refresh.user_interface.core.activities.GroupIntentActivity;
import uk.openvk.android.refresh.user_interface.core.activities.NewPostActivity;
import uk.openvk.android.refresh.user_interface.core.activities.ProfileIntentActivity;
import uk.openvk.android.refresh.ui.core.activities.AppActivity;
import uk.openvk.android.refresh.ui.core.activities.AuthActivity;
import uk.openvk.android.refresh.ui.core.activities.ConversationActivity;
import uk.openvk.android.refresh.ui.core.activities.GroupIntentActivity;
import uk.openvk.android.refresh.ui.core.activities.NewPostActivity;
import uk.openvk.android.refresh.ui.core.activities.ProfileIntentActivity;

public class OvkAPIWrapper {

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout-night/conversation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

</androidx.recyclerview.widget.RecyclerView>

<uk.openvk.android.refresh.user_interface.view.layouts.SendTextBottomPanel
<uk.openvk.android.refresh.ui.view.layouts.SendTextBottomPanel
android:id="@+id/sendTextBottomPanel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout-night/outcoming_msg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
android:paddingBottom="4dp"
android:visibility="gone">

<uk.openvk.android.refresh.user_interface.view.TightTextView
<uk.openvk.android.refresh.ui.view.TightTextView
android:id="@+id/msg_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down Expand Up @@ -60,7 +60,7 @@
android:paddingRight="8dp"
android:paddingBottom="4dp">

<uk.openvk.android.refresh.user_interface.view.TightTextView
<uk.openvk.android.refresh.ui.view.TightTextView
android:id="@+id/msg_text_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/auth_screen.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<uk.openvk.android.refresh.user_interface.view.layouts.XConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<uk.openvk.android.refresh.ui.view.layouts.XConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand Down Expand Up @@ -32,4 +32,4 @@
app:layout_constraintTop_toBottomOf="@+id/ovk_logo"
android:layout_gravity="center"/>

</uk.openvk.android.refresh.user_interface.view.layouts.XConstraintLayout>
</uk.openvk.android.refresh.ui.view.layouts.XConstraintLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/blank_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/backgroundColor"
tools:context=".user_interface.core.fragments.app.BlankFragment" />
tools:context=".ui.core.fragments.app.BlankFragment" />
6 changes: 3 additions & 3 deletions app/src/main/res/layout/community_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout
<uk.openvk.android.refresh.ui.view.layouts.ProgressLayout
android:id="@+id/progress_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"/>

<uk.openvk.android.refresh.user_interface.view.layouts.ErrorLayout
<uk.openvk.android.refresh.ui.view.layouts.ErrorLayout
android:id="@+id/error_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down Expand Up @@ -57,7 +57,7 @@
android:fitsSystemWindows="true"
app:layout_scrollFlags="scroll|snap|exitUntilCollapsed">

<uk.openvk.android.refresh.user_interface.view.layouts.ProfileHeader
<uk.openvk.android.refresh.ui.view.layouts.ProfileHeader
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/conversation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

</androidx.recyclerview.widget.RecyclerView>

<uk.openvk.android.refresh.user_interface.view.layouts.SendTextBottomPanel
<uk.openvk.android.refresh.ui.view.layouts.SendTextBottomPanel
android:id="@+id/sendTextBottomPanel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/conversations_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout
<uk.openvk.android.refresh.ui.view.layouts.ProgressLayout
android:id="@+id/progress_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">

</uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout>
</uk.openvk.android.refresh.ui.view.layouts.ProgressLayout>

<uk.openvk.android.refresh.user_interface.view.layouts.ErrorLayout
<uk.openvk.android.refresh.ui.view.layouts.ErrorLayout
android:id="@+id/error_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/friends_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout
<uk.openvk.android.refresh.ui.view.layouts.ProgressLayout
android:id="@+id/progress_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">

</uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout>
</uk.openvk.android.refresh.ui.view.layouts.ProgressLayout>

<uk.openvk.android.refresh.user_interface.view.layouts.ErrorLayout
<uk.openvk.android.refresh.ui.view.layouts.ErrorLayout
android:id="@+id/error_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/groups_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout
<uk.openvk.android.refresh.ui.view.layouts.ProgressLayout
android:id="@+id/progress_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">

</uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout>
</uk.openvk.android.refresh.ui.view.layouts.ProgressLayout>

<uk.openvk.android.refresh.user_interface.view.layouts.ErrorLayout
<uk.openvk.android.refresh.ui.view.layouts.ErrorLayout
android:id="@+id/error_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/main_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".user_interface.core.activities.MainActivity">
tools:context=".ui.core.activities.MainActivity">

<ImageView
android:id="@+id/imageView"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/newsfeed_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<uk.openvk.android.refresh.user_interface.view.layouts.ErrorLayout
<uk.openvk.android.refresh.ui.view.layouts.ErrorLayout
android:id="@+id/error_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down Expand Up @@ -34,11 +34,11 @@
</androidx.recyclerview.widget.RecyclerView>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

<uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout
<uk.openvk.android.refresh.ui.view.layouts.ProgressLayout
android:id="@+id/progress_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">

</uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout>
</uk.openvk.android.refresh.ui.view.layouts.ProgressLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/outcoming_msg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
android:paddingBottom="4dp"
android:visibility="gone">

<uk.openvk.android.refresh.user_interface.view.TightTextView
<uk.openvk.android.refresh.ui.view.TightTextView
android:id="@+id/msg_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down Expand Up @@ -60,7 +60,7 @@
android:paddingRight="8dp"
android:paddingBottom="4dp">

<uk.openvk.android.refresh.user_interface.view.TightTextView
<uk.openvk.android.refresh.ui.view.TightTextView
android:id="@+id/msg_text_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
11 changes: 6 additions & 5 deletions app/src/main/res/layout/profile_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
android:layout_height="match_parent"
android:orientation="vertical">

<uk.openvk.android.refresh.user_interface.view.layouts.ProgressLayout
<uk.openvk.android.refresh.ui.view.layouts.ProgressLayout
android:id="@+id/progress_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"/>

<uk.openvk.android.refresh.user_interface.view.layouts.ErrorLayout
<uk.openvk.android.refresh.ui.view.layouts.ErrorLayout
android:id="@+id/error_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down Expand Up @@ -43,7 +43,7 @@
app:layout_constraintTop_toBottomOf="@+id/app_bar" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

<uk.openvk.android.refresh.user_interface.view.layouts.ErrorLayout
<uk.openvk.android.refresh.ui.view.layouts.ErrorLayout
android:id="@+id/wall_error_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand All @@ -68,7 +68,7 @@
android:fitsSystemWindows="true"
app:layout_scrollFlags="scroll|snap|exitUntilCollapsed">

<uk.openvk.android.refresh.user_interface.view.layouts.ProfileHeader
<uk.openvk.android.refresh.ui.view.layouts.ProfileHeader
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand All @@ -81,7 +81,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:tabMode="scrollable"/>
app:tabMode="scrollable"
app:tabIndicatorColor="?attr/colorAccent"/>

</com.google.android.material.appbar.AppBarLayout>

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/wall_post.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@
android:textSize="14sp"
tools:ignore="HardcodedText" />

<uk.openvk.android.refresh.user_interface.view.layouts.PhotoAttachmentLayout
<uk.openvk.android.refresh.ui.view.layouts.PhotoAttachmentLayout
android:id="@+id/photo_attachment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:visibility="gone"
tools:targetApi="m">

</uk.openvk.android.refresh.user_interface.view.layouts.PhotoAttachmentLayout>
</uk.openvk.android.refresh.ui.view.layouts.PhotoAttachmentLayout>

</androidx.appcompat.widget.LinearLayoutCompat>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/navigation/bottom_nav.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

<fragment
android:id="@+id/newsfeedFragment"
android:name="uk.openvk.android.refresh.user_interface.core.fragments.app.NewsfeedFragment"
android:name="uk.openvk.android.refresh.ui.core.fragments.app.NewsfeedFragment"
android:label="NewsfeedFragment" />
</navigation>
2 changes: 1 addition & 1 deletion app/src/main/res/navigation/drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<fragment
android:id="@+id/newsfeedFragment"
android:name="uk.openvk.android.refresh.user_interface.core.fragments.app.BlankFragment"
android:name="uk.openvk.android.refresh.ui.core.fragments.app.BlankFragment"
android:label="BlankFragment"
tools:layout="@layout/blank_fragment" />
</navigation>

0 comments on commit 210f1c1

Please sign in to comment.