-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
119 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
app/src/main/java/com/example/administrator/smartschool/ui/ac/abac/ReportAbAc.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.example.administrator.smartschool.ui.ac.abac | ||
|
||
import android.view.View | ||
import com.example.administrator.smartschool.R | ||
import com.example.administrator.smartschool.util.ViewHelper | ||
import kotlinx.android.synthetic.main.ac_report.* | ||
|
||
/** | ||
* Created by Administrator on 2018/7/18 0018. | ||
*/ | ||
|
||
class ReportAbAc : BaseAbAc() { | ||
override val layoutResId: Int | ||
get() = R.layout.ac_report | ||
|
||
override fun initOnCreate() { | ||
|
||
} | ||
|
||
override fun initOnClick(view: View, id: Int) { | ||
when (id) { | ||
R.id.btn_report -> { | ||
val string = et_report.text.toString() | ||
} | ||
R.id.btn_back2report -> { | ||
ViewHelper.run { | ||
setViewVisibility(false, btn_back2report) | ||
setViewVisibility(true, et_report, btn_report, btn_show_report_list) | ||
} | ||
} | ||
R.id.btn_show_report_list -> { | ||
ViewHelper.run { | ||
setViewVisibility(false, et_report, btn_report, btn_show_report_list) | ||
setViewVisibility(true, btn_back2report) | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
android:padding="16dp"> | ||
|
||
<EditText | ||
android:id="@+id/et_report" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@null" | ||
android:gravity="start" | ||
android:hint="请输入您的反馈..." | ||
android:maxLines="8" | ||
android:minLines="8" /> | ||
|
||
<Button | ||
android:id="@+id/btn_report" | ||
style="@style/a_text_black_18sp_center" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="提交" /> | ||
|
||
<Button | ||
android:id="@+id/btn_back2report" | ||
style="@style/a_text_black_18sp_center" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="返回填写报修信息" | ||
android:visibility="gone" /> | ||
|
||
<Button | ||
android:id="@+id/btn_show_report_list" | ||
style="@style/a_text_black_18sp_center" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="查看反馈结果" /> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:id="@+id/rv_report" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
</LinearLayout> |