소스 검색

+ add logout function

Dola TENG 2 년 전
부모
커밋
d715136290
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      app/src/main/res/layout/layout_main_module.xml

+ 5 - 2
app/src/main/res/layout/layout_main_module.xml

@@ -11,7 +11,9 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:clickable="true"
+        android:focusable="true"
         android:foreground="?android:attr/selectableItemBackground"
+        app:cardBackgroundColor="@color/colorPrimary"
         app:cardCornerRadius="5dp"
         app:cardElevation="0dp"
         app:cardUseCompatPadding="true"
@@ -22,19 +24,20 @@
             android:id="@+id/background_module"
             android:layout_width="match_parent"
             android:layout_height="250dp"
+            android:gravity="center"
             android:orientation="vertical">
 
             <ImageView
                 android:id="@+id/img_icon"
                 android:layout_width="match_parent"
-                android:layout_height="100dp"
+                android:layout_height="200dp"
                 android:layout_gravity="center"
                 android:padding="5dp" />
 
             <TextView
                 android:id="@+id/tv_name"
                 android:layout_width="match_parent"
-                android:layout_height="wrap_content"
+                android:layout_height="40dp"
                 android:gravity="center"
                 android:padding="5dp"
                 android:text="Goat"