From a41b49f8731c54efb9d6aa07bd6d96ffd0cfd547 Mon Sep 17 00:00:00 2001 From: gunhee Date: Sun, 4 Nov 2018 16:10:03 +0900 Subject: [PATCH] final application --- .../example/cau_coin/DetailReviewActivity.java | 11 ++++------- .../main/res/layout/activity_detailreview.xml | 16 +++++++--------- app/src/main/res/layout/activity_write.xml | 1 + 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/com/example/cau_coin/DetailReviewActivity.java b/app/src/main/java/com/example/cau_coin/DetailReviewActivity.java index d65c2d3..b86c99e 100644 --- a/app/src/main/java/com/example/cau_coin/DetailReviewActivity.java +++ b/app/src/main/java/com/example/cau_coin/DetailReviewActivity.java @@ -317,9 +317,9 @@ public void onBackPressed() { a.putExtra("filter_grade", filter_grade); a.putExtra("filter_semester", filter_semester); a.putExtra("num_Filter", num_Filter); - overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); startActivity(a); finish(); + overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); } // Score과 Comment를 부여하는것에 대한 Transaction 전송 @@ -425,14 +425,11 @@ public String doInBackground(String... params) { } } else { if (randomNum == 0) { - //url = "http://115.68.207.101:4444/read_one_data/" + evaluateId + "&" + id; - url = "http://115.68.207.101:4444/read_one_data/" + evaluateId; + url = "http://115.68.207.101:4444/read_one_data/" + evaluateId + "/" + id; } else if (randomNum == 1) { - //url = "http://115.68.232.77:4444/read_one_data/" + evaluateId + "&" + id; - url = "http://115.68.232.77:4444/read_one_data/" + evaluateId; + url = "http://115.68.232.77:4444/read_one_data/" + evaluateId + "/" + id; } else { - //url = "http://115.68.232.78:4444/read_one_data/" + evaluateId + "&" + id; - url = "http://115.68.232.78:4444/read_one_data/" + evaluateId; + url = "http://115.68.232.78:4444/read_one_data/" + evaluateId + "/" + id; } } URL obj = new URL(url); diff --git a/app/src/main/res/layout/activity_detailreview.xml b/app/src/main/res/layout/activity_detailreview.xml index 64bc11a..f3e62d7 100644 --- a/app/src/main/res/layout/activity_detailreview.xml +++ b/app/src/main/res/layout/activity_detailreview.xml @@ -64,7 +64,7 @@ @@ -241,18 +241,15 @@ - - + android:text="한줄평" + android:paddingRight="20dp"/> @@ -666,6 +663,7 @@ android:inputType="text" android:background="@null" android:layout_marginLeft="5dp" + android:layout_marginRight="5dp" android:imeOptions="actionSend" android:textSize="15dp" /> diff --git a/app/src/main/res/layout/activity_write.xml b/app/src/main/res/layout/activity_write.xml index fd06ca0..0c3e2e6 100644 --- a/app/src/main/res/layout/activity_write.xml +++ b/app/src/main/res/layout/activity_write.xml @@ -517,6 +517,7 @@ android:layout_height="50dp" android:background="@null" android:paddingLeft="10dp" + android:paddingRight="10dp" android:textColor="@color/ratingsColor" android:textColorHint="@color/ratingsColor" android:inputType="text"