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"?> |
||||
<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" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
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_height="match_parent" |
||||
tools:ignore="UselessParent"> |
||||
android:layout_height="wrap_content" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" /> |
||||
|
||||
<LinearLayout |
||||
android:id="@+id/post_layout" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:orientation="vertical"> |
||||
|
||||
<androidx.appcompat.widget.SearchView |
||||
android:id="@+id/search" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" /> |
||||
</LinearLayout> |
||||
</androidx.core.widget.NestedScrollView> |
||||
</FrameLayout> |
||||
<LinearLayout |
||||
android:id="@+id/post_layout" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:orientation="vertical" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@id/search" /> |
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
@ -1,25 +1,23 @@ |
||||
<?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" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
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_height="match_parent" |
||||
tools:ignore="UselessParent"> |
||||
android:layout_height="wrap_content" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" /> |
||||
|
||||
<LinearLayout |
||||
android:id="@+id/post_layout" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:orientation="vertical"> |
||||
|
||||
<androidx.appcompat.widget.SearchView |
||||
android:id="@+id/search" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="37dp" /> |
||||
</LinearLayout> |
||||
</androidx.core.widget.NestedScrollView> |
||||
</FrameLayout> |
||||
<LinearLayout |
||||
android:id="@+id/post_layout" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:orientation="vertical" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toBottomOf="@id/search" /> |
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
@ -1,57 +1,53 @@ |
||||
<?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" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
tools:context=".ui.main.ui.forum.post.ForumPostFragment"> |
||||
|
||||
<androidx.core.widget.NestedScrollView |
||||
<LinearLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
tools:ignore="UselessParent"> |
||||
android:layout_height="wrap_content" |
||||
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_height="wrap_content" |
||||
android:orientation="vertical"> |
||||
|
||||
<EditText |
||||
android:id="@+id/post_title" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:ems="10" |
||||
android:hint="@string/prompt_title" |
||||
android:importantForAutofill="no" |
||||
android:inputType="none|text" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" /> |
||||
|
||||
<Spinner |
||||
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" /> |
||||
android:ems="10" |
||||
android:hint="@string/prompt_title" |
||||
android:importantForAutofill="no" |
||||
android:inputType="none|text" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" /> |
||||
|
||||
<Spinner |
||||
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 |
||||
android:id="@+id/post_type_fragment" |
||||
android:name="androidx.navigation.fragment.NavHostFragment" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="@dimen/size_8" |
||||
app:defaultNavHost="true" |
||||
app:navGraph="@navigation/nav_forum_post_type" /> |
||||
<androidx.fragment.app.FragmentContainerView |
||||
android:id="@+id/post_type_fragment" |
||||
android:name="androidx.navigation.fragment.NavHostFragment" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="@dimen/size_8" |
||||
app:defaultNavHost="true" |
||||
app:navGraph="@navigation/nav_forum_post_type" /> |
||||
|
||||
<Button |
||||
android:id="@+id/post_button" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:enabled="false" |
||||
android:text="@string/forum_post" /> |
||||
<Button |
||||
android:id="@+id/post_button" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:enabled="false" |
||||
android:text="@string/forum_post" /> |
||||
|
||||
</LinearLayout> |
||||
</androidx.core.widget.NestedScrollView> |
||||
</LinearLayout> |
||||
|
||||
</FrameLayout> |
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
@ -1,153 +1,136 @@ |
||||
<?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" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
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_height="match_parent" |
||||
android:fillViewport="true"> |
||||
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" /> |
||||
|
||||
<LinearLayout |
||||
<Spinner |
||||
android:id="@+id/choose_time" |
||||
android:layout_width="match_parent" |
||||
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 |
||||
android:layout_width="match_parent" |
||||
<RadioButton |
||||
android:id="@+id/not_outpeolle" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="center_vertical"> |
||||
|
||||
<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_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> |
||||
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> |
Loading…
Reference in new issue