parent
6c43376443
commit
174661a375
@ -0,0 +1,5 @@ |
|||||||
|
package com.community.pocket.ui.main.ui.forum; |
||||||
|
|
||||||
|
public interface FormLoad { |
||||||
|
void loadForumNew(Long page, String title); |
||||||
|
} |
@ -1,25 +1,23 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<androidx.constraintlayout.widget.ConstraintLayout 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" |
xmlns:tools="http://schemas.android.com/tools" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||||
tools:context=".ui.main.ui.forum.my.ForumMyFragment"> |
tools:context=".ui.main.ui.forum.my.ForumMyFragment"> |
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView |
<androidx.appcompat.widget.SearchView |
||||||
|
android:id="@+id/search" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="wrap_content" |
||||||
tools:ignore="UselessParent"> |
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toTopOf="parent" /> |
||||||
|
|
||||||
<LinearLayout |
<LinearLayout |
||||||
android:id="@+id/post_layout" |
android:id="@+id/post_layout" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:orientation="vertical"> |
android:orientation="vertical" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
<androidx.appcompat.widget.SearchView |
app:layout_constraintTop_toBottomOf="@id/search" /> |
||||||
android:id="@+id/search" |
</androidx.constraintlayout.widget.ConstraintLayout> |
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="match_parent" /> |
|
||||||
</LinearLayout> |
|
||||||
</androidx.core.widget.NestedScrollView> |
|
||||||
</FrameLayout> |
|
@ -1,25 +1,23 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<androidx.constraintlayout.widget.ConstraintLayout 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" |
xmlns:tools="http://schemas.android.com/tools" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||||
tools:context=".ui.main.ui.forum.news.ForumNewFragment"> |
tools:context=".ui.main.ui.forum.news.ForumNewFragment"> |
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView |
<androidx.appcompat.widget.SearchView |
||||||
|
android:id="@+id/search" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="wrap_content" |
||||||
tools:ignore="UselessParent"> |
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toTopOf="parent" /> |
||||||
|
|
||||||
<LinearLayout |
<LinearLayout |
||||||
android:id="@+id/post_layout" |
android:id="@+id/post_layout" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:orientation="vertical"> |
android:orientation="vertical" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
<androidx.appcompat.widget.SearchView |
app:layout_constraintTop_toBottomOf="@id/search" /> |
||||||
android:id="@+id/search" |
</androidx.constraintlayout.widget.ConstraintLayout> |
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="37dp" /> |
|
||||||
</LinearLayout> |
|
||||||
</androidx.core.widget.NestedScrollView> |
|
||||||
</FrameLayout> |
|
@ -1,57 +1,53 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<androidx.constraintlayout.widget.ConstraintLayout 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" |
||||||
xmlns:tools="http://schemas.android.com/tools" |
xmlns:tools="http://schemas.android.com/tools" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||||
tools:context=".ui.main.ui.forum.post.ForumPostFragment"> |
tools:context=".ui.main.ui.forum.post.ForumPostFragment"> |
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView |
<LinearLayout |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="wrap_content" |
||||||
tools:ignore="UselessParent"> |
android:orientation="vertical" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toTopOf="parent"> |
||||||
|
|
||||||
<LinearLayout |
<EditText |
||||||
|
android:id="@+id/post_title" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:orientation="vertical"> |
android:ems="10" |
||||||
|
android:hint="@string/prompt_title" |
||||||
<EditText |
android:importantForAutofill="no" |
||||||
android:id="@+id/post_title" |
android:inputType="none|text" |
||||||
android:layout_width="match_parent" |
app:layout_constraintStart_toStartOf="parent" |
||||||
android:layout_height="wrap_content" |
app:layout_constraintTop_toTopOf="parent" /> |
||||||
android:ems="10" |
|
||||||
android:hint="@string/prompt_title" |
<Spinner |
||||||
android:importantForAutofill="no" |
android:id="@+id/post_type" |
||||||
android:inputType="none|text" |
android:layout_width="match_parent" |
||||||
app:layout_constraintStart_toStartOf="parent" |
android:layout_height="wrap_content" |
||||||
app:layout_constraintTop_toTopOf="parent" /> |
android:entries="@array/post_type_list" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
<Spinner |
app:layout_constraintTop_toBottomOf="@id/post_title" /> |
||||||
android:id="@+id/post_type" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:entries="@array/post_type_list" |
|
||||||
app:layout_constraintStart_toStartOf="parent" |
|
||||||
app:layout_constraintTop_toBottomOf="@id/post_title" /> |
|
||||||
|
|
||||||
<androidx.fragment.app.FragmentContainerView |
<androidx.fragment.app.FragmentContainerView |
||||||
android:id="@+id/post_type_fragment" |
android:id="@+id/post_type_fragment" |
||||||
android:name="androidx.navigation.fragment.NavHostFragment" |
android:name="androidx.navigation.fragment.NavHostFragment" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:layout_marginTop="@dimen/size_8" |
android:layout_marginTop="@dimen/size_8" |
||||||
app:defaultNavHost="true" |
app:defaultNavHost="true" |
||||||
app:navGraph="@navigation/nav_forum_post_type" /> |
app:navGraph="@navigation/nav_forum_post_type" /> |
||||||
|
|
||||||
<Button |
<Button |
||||||
android:id="@+id/post_button" |
android:id="@+id/post_button" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:enabled="false" |
android:enabled="false" |
||||||
android:text="@string/forum_post" /> |
android:text="@string/forum_post" /> |
||||||
|
|
||||||
</LinearLayout> |
</LinearLayout> |
||||||
</androidx.core.widget.NestedScrollView> |
|
||||||
|
|
||||||
</FrameLayout> |
</androidx.constraintlayout.widget.ConstraintLayout> |
@ -1,153 +1,136 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<androidx.constraintlayout.widget.ConstraintLayout 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" |
||||||
xmlns:tools="http://schemas.android.com/tools" |
xmlns:tools="http://schemas.android.com/tools" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||||
tools:context=".ui.main.ui.visitor.appointment.VisitorAppointmentFragment"> |
tools:context=".ui.main.ui.visitor.appointment.VisitorAppointmentFragment"> |
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView |
|
||||||
|
<AutoCompleteTextView |
||||||
|
android:id="@+id/appointment" |
||||||
|
android:layout_width="0dp" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:completionThreshold="1" |
||||||
|
android:gravity="center" |
||||||
|
android:hint="@string/prompt_appointment" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/button_group_layout" /> |
||||||
|
|
||||||
|
<TextView |
||||||
|
android:id="@+id/tip" |
||||||
|
android:layout_width="0dp" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="8dp" |
||||||
|
android:gravity="center" |
||||||
|
android:textSize="18sp" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/appointment" /> |
||||||
|
|
||||||
|
<EditText |
||||||
|
android:id="@+id/chooseDate" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="wrap_content" |
||||||
android:fillViewport="true"> |
android:layout_marginTop="8dp" |
||||||
|
android:ems="10" |
||||||
|
android:gravity="center" |
||||||
|
android:hint="@string/prompt_choose_date" |
||||||
|
android:importantForAutofill="no" |
||||||
|
android:inputType="date" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/tip" /> |
||||||
|
|
||||||
|
<LinearLayout |
||||||
|
android:id="@+id/choose_time_layout" |
||||||
|
android:layout_width="0dp" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="8dp" |
||||||
|
android:orientation="horizontal" |
||||||
|
android:visibility="gone" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/chooseDate"> |
||||||
|
|
||||||
|
<TextView |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_weight="1" |
||||||
|
android:gravity="center" |
||||||
|
android:text="@string/prompt_choose_time" /> |
||||||
|
|
||||||
<LinearLayout |
<Spinner |
||||||
|
android:id="@+id/choose_time" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:orientation="vertical"> |
android:layout_weight="1" /> |
||||||
|
|
||||||
|
</LinearLayout> |
||||||
|
|
||||||
|
<EditText |
||||||
|
android:id="@+id/notes" |
||||||
|
android:layout_width="0dp" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="8dp" |
||||||
|
android:gravity="center" |
||||||
|
android:hint="@string/prompt_input_notes" |
||||||
|
android:importantForAutofill="no" |
||||||
|
android:inputType="text" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/choose_time_layout" /> |
||||||
|
|
||||||
|
<LinearLayout |
||||||
|
android:id="@+id/button_group_layout" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:orientation="horizontal" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toTopOf="parent"> |
||||||
|
|
||||||
|
<TextView |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:layout_weight="1" |
||||||
|
android:gravity="center" |
||||||
|
android:text="@string/visitor_is_people" |
||||||
|
android:textSize="18sp" /> |
||||||
|
|
||||||
|
<RadioGroup |
||||||
|
android:id="@+id/button_group" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="8dp" |
||||||
|
android:layout_weight="1" |
||||||
|
android:gravity="center" |
||||||
|
android:orientation="horizontal"> |
||||||
|
|
||||||
|
<RadioButton |
||||||
|
android:id="@+id/is_outpeople" |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginEnd="@dimen/size_8" |
||||||
|
android:checked="true" |
||||||
|
android:text="@string/visitor_is_outpeole" /> |
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout |
<RadioButton |
||||||
android:layout_width="match_parent" |
android:id="@+id/not_outpeolle" |
||||||
|
android:layout_width="wrap_content" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:layout_gravity="center_vertical"> |
android:text="@string/visitor_not_outpeole" /> |
||||||
|
</RadioGroup> |
||||||
<AutoCompleteTextView |
</LinearLayout> |
||||||
android:id="@+id/appointment" |
|
||||||
android:layout_width="0dp" |
<Button |
||||||
android:layout_height="wrap_content" |
android:id="@+id/submit" |
||||||
android:completionThreshold="1" |
android:layout_width="0dp" |
||||||
android:gravity="center" |
android:layout_height="wrap_content" |
||||||
android:hint="@string/prompt_appointment" |
android:layout_marginTop="8dp" |
||||||
app:layout_constraintEnd_toEndOf="parent" |
android:enabled="false" |
||||||
app:layout_constraintStart_toStartOf="parent" |
android:text="@string/submit_appointment" |
||||||
app:layout_constraintTop_toBottomOf="@id/button_group_layout" /> |
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
<TextView |
app:layout_constraintTop_toBottomOf="@id/notes" /> |
||||||
android:id="@+id/tip" |
|
||||||
android:layout_width="0dp" |
</androidx.constraintlayout.widget.ConstraintLayout> |
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_marginTop="8dp" |
|
||||||
android:gravity="center" |
|
||||||
android:textSize="18sp" |
|
||||||
app:layout_constraintEnd_toEndOf="parent" |
|
||||||
app:layout_constraintStart_toStartOf="parent" |
|
||||||
app:layout_constraintTop_toBottomOf="@id/appointment" /> |
|
||||||
|
|
||||||
<EditText |
|
||||||
android:id="@+id/chooseDate" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_marginTop="8dp" |
|
||||||
android:ems="10" |
|
||||||
android:gravity="center" |
|
||||||
android:hint="@string/prompt_choose_date" |
|
||||||
android:importantForAutofill="no" |
|
||||||
android:inputType="date" |
|
||||||
app:layout_constraintStart_toStartOf="parent" |
|
||||||
app:layout_constraintTop_toBottomOf="@id/tip" /> |
|
||||||
|
|
||||||
<LinearLayout |
|
||||||
android:id="@+id/choose_time_layout" |
|
||||||
android:layout_width="0dp" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_marginTop="8dp" |
|
||||||
android:orientation="horizontal" |
|
||||||
android:visibility="gone" |
|
||||||
app:layout_constraintEnd_toEndOf="parent" |
|
||||||
app:layout_constraintStart_toStartOf="parent" |
|
||||||
app:layout_constraintTop_toBottomOf="@id/chooseDate"> |
|
||||||
|
|
||||||
<TextView |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_weight="1" |
|
||||||
android:gravity="center" |
|
||||||
android:text="@string/prompt_choose_time" /> |
|
||||||
|
|
||||||
<Spinner |
|
||||||
android:id="@+id/choose_time" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_weight="1" /> |
|
||||||
|
|
||||||
</LinearLayout> |
|
||||||
|
|
||||||
<EditText |
|
||||||
android:id="@+id/notes" |
|
||||||
android:layout_width="0dp" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_marginTop="8dp" |
|
||||||
android:gravity="center" |
|
||||||
android:hint="@string/prompt_input_notes" |
|
||||||
android:importantForAutofill="no" |
|
||||||
android:inputType="text" |
|
||||||
app:layout_constraintEnd_toEndOf="parent" |
|
||||||
app:layout_constraintStart_toStartOf="parent" |
|
||||||
app:layout_constraintTop_toBottomOf="@id/choose_time_layout" /> |
|
||||||
|
|
||||||
<LinearLayout |
|
||||||
android:id="@+id/button_group_layout" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:orientation="horizontal" |
|
||||||
app:layout_constraintStart_toStartOf="parent" |
|
||||||
app:layout_constraintTop_toTopOf="parent"> |
|
||||||
|
|
||||||
<TextView |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="match_parent" |
|
||||||
android:layout_weight="1" |
|
||||||
android:gravity="center" |
|
||||||
android:text="@string/visitor_is_people" |
|
||||||
android:textSize="18sp" /> |
|
||||||
|
|
||||||
<RadioGroup |
|
||||||
android:id="@+id/button_group" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_marginTop="8dp" |
|
||||||
android:layout_weight="1" |
|
||||||
android:gravity="center" |
|
||||||
android:orientation="horizontal"> |
|
||||||
|
|
||||||
<RadioButton |
|
||||||
android:id="@+id/is_outpeople" |
|
||||||
android:layout_width="wrap_content" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_marginEnd="@dimen/size_8" |
|
||||||
android:checked="true" |
|
||||||
android:text="@string/visitor_is_outpeole" /> |
|
||||||
|
|
||||||
<RadioButton |
|
||||||
android:id="@+id/not_outpeolle" |
|
||||||
android:layout_width="wrap_content" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:text="@string/visitor_not_outpeole" /> |
|
||||||
</RadioGroup> |
|
||||||
</LinearLayout> |
|
||||||
|
|
||||||
<Button |
|
||||||
android:id="@+id/submit" |
|
||||||
android:layout_width="0dp" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:layout_marginTop="8dp" |
|
||||||
android:enabled="false" |
|
||||||
android:text="@string/submit_appointment" |
|
||||||
app:layout_constraintEnd_toEndOf="parent" |
|
||||||
app:layout_constraintStart_toStartOf="parent" |
|
||||||
app:layout_constraintTop_toBottomOf="@id/notes" /> |
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout> |
|
||||||
</LinearLayout> |
|
||||||
</androidx.core.widget.NestedScrollView> |
|
||||||
|
|
||||||
</FrameLayout> |
|
Loading…
Reference in new issue