Commit f97c55b37f21c88a4359178b246ae2930c2c91df

Authored by shixianjie
1 parent 58c15e2b27
Exists in master

教师评语长度限制

app/src/main/java/com/hjx/parent/HomeworkFeedbackActivity.java
... ... @@ -111,6 +111,8 @@ public class HomeworkFeedbackActivity extends BaseRxActivity<ActivityHomeworkFee
111 111  
112 112 setResult(RESULT_OK);
113 113 finish();
  114 + } else {
  115 + Toast.makeText(this, "反馈失败", Toast.LENGTH_SHORT).show();
114 116 }
115 117 });
116 118 }
... ...
app/src/main/res/layout/activity_homework_feedback.xml
... ... @@ -227,7 +227,8 @@
227 227 android:layout_height="40dp"/>
228 228 <EditText
229 229 android:id="@+id/etComment"
230   - android:hint="非必填"
  230 + android:hint="非必填, 不超过300字"
  231 + android:maxLength="300"
231 232 android:textSize="13sp"
232 233 android:textColor="#333"
233 234 android:textColorHint="#999"
... ...