Jelajahi Sumber

동의서 리스트 아이템 레이아웃 추가

songjunekeun 5 tahun lalu
induk
melakukan
3945aad0fe
2 mengubah file dengan 22 tambahan dan 7 penghapusan
  1. 1 1
      .idea/misc.xml
  2. 21 6
      app/src/main/res/layout/consent_list_item.xml

+ 1 - 1
.idea/misc.xml

@@ -1,4 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="JDK" project-jdk-type="JavaSDK" />
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
 </project>

+ 21 - 6
app/src/main/res/layout/consent_list_item.xml

@@ -19,11 +19,9 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_centerVertical="true"
-            android:visibility="visible"
+            android:visibility="gone"
             android:buttonTint="@color/darkGray" />
 
-        <!--android:visibility="gone"-->
-
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
@@ -38,7 +36,7 @@
 
             <TextView
                 android:id="@+id/tvPatientName"
-                android:layout_width="match_parent"
+                android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="!!!!!!!!!!!!!!!!!"
                 android:textColor="@color/black"
@@ -46,7 +44,7 @@
 
             <TextView
                 android:id="@+id/tvConsentName"
-                android:layout_width="match_parent"
+                android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="asdfasdfa"
                 android:textColor="@color/black"
@@ -55,7 +53,7 @@
         </LinearLayout>
 
         <TextView
-            android:id="@+id/tvTemp"
+            android:id="@+id/tvSubText"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_alignParentEnd="true"
@@ -69,6 +67,23 @@
             android:textColor="@color/white"
             android:textSize="14sp" />
 
+        <TextView
+            android:id="@+id/tvTemp"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_centerVertical="true"
+            android:background="@drawable/shape2"
+            android:layout_toLeftOf="@+id/tvSubText"
+            android:paddingLeft="8dp"
+            android:paddingTop="4dp"
+            android:paddingRight="8dp"
+            android:paddingBottom="4dp"
+            android:layout_marginLeft="8dp"
+            android:layout_marginRight="8dp"
+            android:text="임시"
+            android:textColor="@color/white"
+            android:textSize="14sp" />
+
     </RelativeLayout>
 
     <LinearLayout