Browse Source

project structure change

pull/45/head
Thodoris1999 6 years ago
parent
commit
53c005b9f6
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java
  2. 5
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java
  3. 2
      app/src/main/java/gr/thmmy/mthmmy/editorview/AutoFitGridLayout.java
  4. 2
      app/src/main/java/gr/thmmy/mthmmy/editorview/EditorView.java
  5. 8
      app/src/main/java/gr/thmmy/mthmmy/editorview/EmojiKeyboard.java
  6. 2
      app/src/main/java/gr/thmmy/mthmmy/editorview/EmojiKeyboardAdapter.java
  7. 2
      app/src/main/res/layout/activity_topic.xml
  8. 2
      app/src/main/res/layout/activity_topic_edit_row.xml
  9. 2
      app/src/main/res/layout/activity_topic_quick_reply_row.xml
  10. 4
      app/src/main/res/layout/editor_view.xml

2
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

@ -45,7 +45,7 @@ import gr.thmmy.mthmmy.model.Bookmark;
import gr.thmmy.mthmmy.model.Post; import gr.thmmy.mthmmy.model.Post;
import gr.thmmy.mthmmy.model.ThmmyPage; import gr.thmmy.mthmmy.model.ThmmyPage;
import gr.thmmy.mthmmy.utils.CustomLinearLayoutManager; import gr.thmmy.mthmmy.utils.CustomLinearLayoutManager;
import gr.thmmy.mthmmy.utils.EmojiKeyboard; import gr.thmmy.mthmmy.editorview.EmojiKeyboard;
import gr.thmmy.mthmmy.utils.HTMLUtils; import gr.thmmy.mthmmy.utils.HTMLUtils;
import gr.thmmy.mthmmy.utils.parsing.ParseHelpers; import gr.thmmy.mthmmy.utils.parsing.ParseHelpers;
import gr.thmmy.mthmmy.viewmodel.TopicViewModel; import gr.thmmy.mthmmy.viewmodel.TopicViewModel;

5
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

@ -15,7 +15,6 @@ import android.support.annotation.NonNull;
import android.support.v4.content.res.ResourcesCompat; import android.support.v4.content.res.ResourcesCompat;
import android.support.v7.app.AlertDialog; import android.support.v7.app.AlertDialog;
import android.support.v7.content.res.AppCompatResources; import android.support.v7.content.res.AppCompatResources;
import android.support.v7.widget.AppCompatImageButton;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.text.TextUtils; import android.text.TextUtils;
import android.view.LayoutInflater; import android.view.LayoutInflater;
@ -47,8 +46,8 @@ import gr.thmmy.mthmmy.model.Post;
import gr.thmmy.mthmmy.model.ThmmyFile; import gr.thmmy.mthmmy.model.ThmmyFile;
import gr.thmmy.mthmmy.model.ThmmyPage; import gr.thmmy.mthmmy.model.ThmmyPage;
import gr.thmmy.mthmmy.utils.CircleTransform; import gr.thmmy.mthmmy.utils.CircleTransform;
import gr.thmmy.mthmmy.utils.EditorView; import gr.thmmy.mthmmy.editorview.EditorView;
import gr.thmmy.mthmmy.utils.EmojiKeyboard; import gr.thmmy.mthmmy.editorview.EmojiKeyboard;
import gr.thmmy.mthmmy.utils.parsing.ParseHelpers; import gr.thmmy.mthmmy.utils.parsing.ParseHelpers;
import gr.thmmy.mthmmy.viewmodel.TopicViewModel; import gr.thmmy.mthmmy.viewmodel.TopicViewModel;
import timber.log.Timber; import timber.log.Timber;

2
app/src/main/java/gr/thmmy/mthmmy/utils/AutoFitGridLayout.java → app/src/main/java/gr/thmmy/mthmmy/editorview/AutoFitGridLayout.java

@ -1,4 +1,4 @@
package gr.thmmy.mthmmy.utils; package gr.thmmy.mthmmy.editorview;
import android.content.Context; import android.content.Context;
import android.content.res.TypedArray; import android.content.res.TypedArray;

2
app/src/main/java/gr/thmmy/mthmmy/utils/EditorView.java → app/src/main/java/gr/thmmy/mthmmy/editorview/EditorView.java

@ -1,4 +1,4 @@
package gr.thmmy.mthmmy.utils; package gr.thmmy.mthmmy.editorview;
import android.app.Activity; import android.app.Activity;
import android.app.AlertDialog; import android.app.AlertDialog;

8
app/src/main/java/gr/thmmy/mthmmy/utils/EmojiKeyboard.java → app/src/main/java/gr/thmmy/mthmmy/editorview/EmojiKeyboard.java

@ -1,13 +1,7 @@
package gr.thmmy.mthmmy.utils; package gr.thmmy.mthmmy.editorview;
import android.content.Context; import android.content.Context;
import android.graphics.BitmapFactory;
import android.graphics.drawable.AnimationDrawable;
import android.os.Build;
import android.os.Handler; import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.v7.widget.AppCompatImageButton; import android.support.v7.widget.AppCompatImageButton;
import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;

2
app/src/main/java/gr/thmmy/mthmmy/utils/EmojiKeyboardAdapter.java → app/src/main/java/gr/thmmy/mthmmy/editorview/EmojiKeyboardAdapter.java

@ -1,4 +1,4 @@
package gr.thmmy.mthmmy.utils; package gr.thmmy.mthmmy.editorview;
import android.graphics.drawable.AnimationDrawable; import android.graphics.drawable.AnimationDrawable;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;

2
app/src/main/res/layout/activity_topic.xml

@ -50,7 +50,7 @@
app:layout_behavior="@string/appbar_scrolling_view_behavior" app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="gr.thmmy.mthmmy.activities.topic.TopicActivity" /> tools:context="gr.thmmy.mthmmy.activities.topic.TopicActivity" />
<gr.thmmy.mthmmy.utils.EmojiKeyboard <gr.thmmy.mthmmy.editorview.EmojiKeyboard
android:id="@+id/emoji_keyboard" android:id="@+id/emoji_keyboard"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="240dp" android:layout_height="240dp"

2
app/src/main/res/layout/activity_topic_edit_row.xml

@ -80,7 +80,7 @@
android:textSize="10sp" android:textSize="10sp"
tools:ignore="SmallSp" /> tools:ignore="SmallSp" />
</RelativeLayout> </RelativeLayout>
<gr.thmmy.mthmmy.utils.EditorView <gr.thmmy.mthmmy.editorview.EditorView
android:id="@+id/edit_editorview" android:id="@+id/edit_editorview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

2
app/src/main/res/layout/activity_topic_quick_reply_row.xml

@ -80,7 +80,7 @@
android:textSize="10sp" android:textSize="10sp"
tools:ignore="SmallSp" /> tools:ignore="SmallSp" />
</RelativeLayout> </RelativeLayout>
<gr.thmmy.mthmmy.utils.EditorView <gr.thmmy.mthmmy.editorview.EditorView
android:id="@+id/reply_editorview" android:id="@+id/reply_editorview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

4
app/src/main/res/layout/editor_view.xml

@ -4,7 +4,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<gr.thmmy.mthmmy.utils.AutoFitGridLayout <gr.thmmy.mthmmy.editorview.AutoFitGridLayout
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"
@ -114,7 +114,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_functions_black_36dp" app:srcCompat="@drawable/ic_functions_black_36dp"
android:background="?android:selectableItemBackground"/> android:background="?android:selectableItemBackground"/>
</gr.thmmy.mthmmy.utils.AutoFitGridLayout> </gr.thmmy.mthmmy.editorview.AutoFitGridLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

Loading…
Cancel
Save