55
+ return null;
+ }
+
+ public String getInputPhone(){
+ if(mPhoneEdit.getText()!=null){
+ return mPhoneEdit.getText().toString();
+ }
+ return null;
+ }
+
+ @Override
+ protected Animation getShowAnimation() {
+ return getDefaultScaleAnimation();
+ }
+
+ @Override
+ public Animator getShowAnimator() {
+ return getDefaultSlideFromBottomAnimationSet();
+ }
+
+ @Override
+ public View getInputView() {
+ return mNameEdit;
+ }
+
+ @Override
+ protected View getClickToDismissView() {
+ return mPopupView;
+ }
+
+ @Override
+ public View getPopupView() {
+ return LayoutInflater.from(mContext).inflate(R.layout.popup_comment_input,null);
+ }
+
+ @Override
+ public View getAnimaView() {
+ return mPopupView.findViewById(R.id.popup_anima);
+ }
+
+ @Override
+ public Animator getExitAnimator() {
+ AnimatorSet set = null;
+ if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
+ set = new AnimatorSet();
+ if (getAnimaView() != null) {
+ set.playTogether(
+ ObjectAnimator.ofFloat(getAnimaView(), "translationY", 0, 250).setDuration(400),
+ ObjectAnimator.ofFloat(getAnimaView(), "alpha", 1, 0.4f).setDuration(250 * 3 / 2));
+ }
+ }
+ return set;
+ }
+}
@@ -0,0 +1,58 @@ |
||
| 1 |
+<?xml version="1.0" encoding="utf-8"?> |
|
| 2 |
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
| 3 |
+ android:layout_width="match_parent" |
|
| 4 |
+ android:layout_height="match_parent" |
|
| 5 |
+ android:background="@color/popup_bg"> |
|
| 6 |
+ |
|
| 7 |
+ <LinearLayout |
|
| 8 |
+ android:id="@+id/popup_anima" |
|
| 9 |
+ android:layout_width="match_parent" |
|
| 10 |
+ android:layout_height="wrap_content" |
|
| 11 |
+ android:layout_margin="20dp" |
|
| 12 |
+ android:layout_centerInParent="true" |
|
| 13 |
+ android:orientation="vertical" |
|
| 14 |
+ android:background="@color/white" |
|
| 15 |
+ android:padding="6dp"> |
|
| 16 |
+ |
|
| 17 |
+ |
|
| 18 |
+ <EditText |
|
| 19 |
+ android:id="@+id/et_user_name" |
|
| 20 |
+ android:layout_width="match_parent" |
|
| 21 |
+ android:textSize="16sp" |
|
| 22 |
+ android:textColorHint="@color/grey" |
|
| 23 |
+ android:background="@drawable/round_edittext" |
|
| 24 |
+ android:textColor="@color/dark_grey" |
|
| 25 |
+ android:hint="@string/guide_app_input_name" |
|
| 26 |
+ android:paddingLeft="12dp" |
|
| 27 |
+ android:gravity="center_vertical" |
|
| 28 |
+ android:layout_height="40dp" /> |
|
| 29 |
+ |
|
| 30 |
+ <EditText |
|
| 31 |
+ android:id="@+id/et_user_phone" |
|
| 32 |
+ android:layout_width="match_parent" |
|
| 33 |
+ android:textSize="16sp" |
|
| 34 |
+ android:textColorHint="@color/grey" |
|
| 35 |
+ android:layout_marginTop="12dp" |
|
| 36 |
+ android:background="@drawable/round_edittext" |
|
| 37 |
+ android:textColor="@color/dark_grey" |
|
| 38 |
+ android:hint="@string/guide_app_input_phone" |
|
| 39 |
+ android:paddingLeft="12dp" |
|
| 40 |
+ android:gravity="center_vertical" |
|
| 41 |
+ android:layout_height="40dp" /> |
|
| 42 |
+ |
|
| 43 |
+ <Button |
|
| 44 |
+ android:id="@+id/btn_info_confirm" |
|
| 45 |
+ android:layout_width="match_parent" |
|
| 46 |
+ android:layout_height="40dp" |
|
| 47 |
+ android:textColor="@color/white" |
|
| 48 |
+ android:layout_margin="12dp" |
|
| 49 |
+ android:paddingRight="10dp" |
|
| 50 |
+ android:paddingLeft="10dp" |
|
| 51 |
+ android:textSize="16sp" |
|
| 52 |
+ android:enabled="false" |
|
| 53 |
+ android:background="@drawable/send_btn_bg_selector" |
|
| 54 |
+ android:text="@string/guide_app_join_tour"/> |
|
| 55 |
+ |
|
| 56 |
+ </LinearLayout> |
|
| 57 |
+ |
|
| 58 |
+</RelativeLayout> |
@@ -238,4 +238,10 @@ |
||
| 238 | 238 |
<string name="no_orders_found_tip">暂无您的订单信息</string> |
| 239 | 239 |
|
| 240 | 240 |
<string name="no_more_content">暂时没有更多啦</string> |
| 241 |
+ |
|
| 242 |
+ <string name="guide_app_input_name">请输入姓名以便导游更好地服务</string> |
|
| 243 |
+ |
|
| 244 |
+ <string name="guide_app_input_phone">请输入电话以便导游途中联系</string> |
|
| 245 |
+ |
|
| 246 |
+ <string name="guide_app_join_tour">加入旅行团</string> |
|
| 241 | 247 |
</resources> |