mirror of
https://github.com/Nezumi-2711/PRM392.git
synced 2026-09-22 13:48:29 +00:00
Improve Layout
This commit is contained in:
@@ -46,6 +46,13 @@ public class Common {
|
||||
return "Giao thành công";
|
||||
}
|
||||
|
||||
public static String convertCodePaymentToStatus(String status) {
|
||||
if(status.equals("0"))
|
||||
return "CHƯA THANH TOÁN";
|
||||
else
|
||||
return "ĐÃ THANH TOÁN";
|
||||
}
|
||||
|
||||
public static boolean isConnectedToInternet(Context context) {
|
||||
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ public class OrderStatus extends AppCompatActivity {
|
||||
orderViewHolder.txtOrderStatus.setText("Tình trạng đơn: " + Common.convertCodeToStatus(model.getStatus()));
|
||||
orderViewHolder.txtOrderAddress.setText("Địa chỉ: " + model.getAddress());
|
||||
orderViewHolder.txtOrderDate.setText("Ngày đặt: " + Common.getDate(Long.parseLong(adapter.getRef(i).getKey())));
|
||||
orderViewHolder.txtOrderPayment.setText("Tình trạng thanh toán: " + model.getPaymentStatus());
|
||||
orderViewHolder.txtOrderPayment.setText("Tình trạng thanh toán: " + Common.convertCodePaymentToStatus(model.getPaymentStatus()));
|
||||
orderViewHolder.btn_delete.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -20,12 +20,12 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="@color/overlayBackground"
|
||||
android:background="@color/white"
|
||||
android:fitsSystemWindows="true"
|
||||
app:headerLayout="@layout/nav_header_home"
|
||||
|
||||
app:itemIconTint="@color/white"
|
||||
app:itemTextColor="@color/white"
|
||||
app:itemIconTint="@color/black"
|
||||
app:itemTextColor="@color/black"
|
||||
app:menu="@menu/activity_main_drawer" />
|
||||
|
||||
</androidx.drawerlayout.widget.DrawerLayout>
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/nav_header_height"
|
||||
android:background="@color/fbutton_color_transparent"
|
||||
android:background="@color/purple_500"
|
||||
android:gravity="bottom"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
@@ -14,11 +14,11 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:contentDescription="@string/nav_header_desc"
|
||||
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
||||
app:srcCompat="@mipmap/ic_launcher_round" />
|
||||
app:srcCompat="@drawable/avatar" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtFullName"
|
||||
|
||||
Reference in New Issue
Block a user