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