parent
991bc1f6a7
commit
819b010f4c
@ -0,0 +1,7 @@ |
|||||||
|
package com.community.pocket.data.model; |
||||||
|
|
||||||
|
public enum VisitorStatus { |
||||||
|
uncheck, |
||||||
|
ok, |
||||||
|
fail |
||||||
|
} |
@ -1,9 +1,11 @@ |
|||||||
package com.community.pocket.ui.main.ui.share; |
package com.community.pocket.ui.main.ui.share; |
||||||
|
|
||||||
|
import android.os.Bundle; |
||||||
|
|
||||||
/** |
/** |
||||||
* 搜索框请求数据源 |
* 搜索框请求数据源 |
||||||
*/ |
*/ |
||||||
public interface SearchViewModel { |
public interface SearchViewModel { |
||||||
//请求方法
|
//请求方法
|
||||||
void search(String content); |
void search(String content, Bundle data); |
||||||
} |
} |
||||||
|
@ -1,29 +1,55 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<androidx.constraintlayout.widget.ConstraintLayout 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" |
|
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent"> |
android:layout_height="match_parent"> |
||||||
|
|
||||||
<TextView |
<TextView |
||||||
android:id="@+id/content" |
android:id="@+id/name" |
||||||
android:layout_width="0dp" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:ems="10" |
android:gravity="center" |
||||||
android:gravity="start|top" |
android:textSize="18sp" |
||||||
android:importantForAutofill="no" |
app:layout_constraintStart_toStartOf="parent" |
||||||
android:singleLine="false" |
app:layout_constraintTop_toTopOf="parent" /> |
||||||
app:layout_constraintEnd_toEndOf="parent" |
|
||||||
|
<TextView |
||||||
|
android:id="@+id/time" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="8dp" |
||||||
|
android:gravity="center" |
||||||
|
android:textSize="18sp" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/name" /> |
||||||
|
|
||||||
|
<TextView |
||||||
|
android:id="@+id/notes" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="8dp" |
||||||
|
android:gravity="center" |
||||||
|
android:textSize="18sp" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/time" /> |
||||||
|
|
||||||
|
<TextView |
||||||
|
android:id="@+id/admin" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="8dp" |
||||||
|
android:gravity="center" |
||||||
|
android:textSize="18sp" |
||||||
app:layout_constraintStart_toStartOf="parent" |
app:layout_constraintStart_toStartOf="parent" |
||||||
app:layout_constraintTop_toTopOf="parent" |
app:layout_constraintTop_toBottomOf="@id/notes" /> |
||||||
tools:ignore="LabelFor" /> |
|
||||||
|
|
||||||
<Button |
<Button |
||||||
android:id="@+id/close" |
android:id="@+id/close" |
||||||
android:layout_width="0dp" |
android:layout_width="0dp" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="8dp" |
||||||
android:text="@string/action_close" |
android:text="@string/action_close" |
||||||
app:layout_constraintEnd_toEndOf="parent" |
app:layout_constraintEnd_toEndOf="parent" |
||||||
app:layout_constraintStart_toStartOf="parent" |
app:layout_constraintStart_toStartOf="parent" |
||||||
app:layout_constraintTop_toBottomOf="@id/content" /> |
app:layout_constraintTop_toBottomOf="@id/admin" /> |
||||||
</androidx.constraintlayout.widget.ConstraintLayout> |
</androidx.constraintlayout.widget.ConstraintLayout> |
Loading…
Reference in new issue