Showing
2 changed files
with
198 additions
and
0 deletions
| ... | @@ -2,11 +2,25 @@ package com.example.vip | ... | @@ -2,11 +2,25 @@ package com.example.vip |
| 2 | 2 | ||
| 3 | import androidx.appcompat.app.AppCompatActivity | 3 | import androidx.appcompat.app.AppCompatActivity |
| 4 | import android.os.Bundle | 4 | import android.os.Bundle |
| 5 | +import android.widget.ImageView | ||
| 6 | +import android.widget.RatingBar | ||
| 7 | +import android.widget.TextView | ||
| 5 | 8 | ||
| 6 | class InfoActivity : AppCompatActivity() { | 9 | class InfoActivity : AppCompatActivity() { |
| 7 | 10 | ||
| 8 | override fun onCreate(savedInstanceState: Bundle?) { | 11 | override fun onCreate(savedInstanceState: Bundle?) { |
| 9 | super.onCreate(savedInstanceState) | 12 | super.onCreate(savedInstanceState) |
| 10 | setContentView(R.layout.activity_info) | 13 | setContentView(R.layout.activity_info) |
| 14 | + | ||
| 15 | + | ||
| 16 | + | ||
| 17 | + //temp | ||
| 18 | + var accountImage: ImageView =findViewById(R.id.infoAccountImage) | ||
| 19 | + var profilImage: ImageView =findViewById(R.id.InfoProfilImage) | ||
| 20 | + | ||
| 21 | + accountImage.setImageResource(R.drawable.image01) | ||
| 22 | + profilImage.setImageResource(R.drawable.image01) | ||
| 23 | + | ||
| 24 | + //temp | ||
| 11 | } | 25 | } |
| 12 | } | 26 | } | ... | ... |
| ... | @@ -6,4 +6,188 @@ | ... | @@ -6,4 +6,188 @@ |
| 6 | android:layout_height="match_parent" | 6 | android:layout_height="match_parent" |
| 7 | tools:context=".InfoActivity"> | 7 | tools:context=".InfoActivity"> |
| 8 | 8 | ||
| 9 | + <LinearLayout | ||
| 10 | + android:layout_width="match_parent" | ||
| 11 | + android:layout_height="match_parent" | ||
| 12 | + android:orientation="vertical"> | ||
| 13 | + | ||
| 14 | + <androidx.appcompat.widget.Toolbar | ||
| 15 | + android:id="@+id/toolbar" | ||
| 16 | + android:layout_width="fill_parent" | ||
| 17 | + android:layout_height="wrap_content" | ||
| 18 | + android:layout_marginBottom="11dp" | ||
| 19 | + android:background="#FFF" | ||
| 20 | + android:elevation="5dp" | ||
| 21 | + android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" | ||
| 22 | + app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | ||
| 23 | + | ||
| 24 | + <ImageView | ||
| 25 | + android:layout_width="77dp" | ||
| 26 | + android:layout_height="44dp" | ||
| 27 | + android:layout_gravity="center" | ||
| 28 | + android:src="@drawable/toolbar_logo" /> | ||
| 29 | + </androidx.appcompat.widget.Toolbar> | ||
| 30 | + | ||
| 31 | + <LinearLayout | ||
| 32 | + android:layout_width="wrap_content" | ||
| 33 | + android:layout_height="100dp" | ||
| 34 | + android:layout_gravity="center" | ||
| 35 | + android:orientation="horizontal"> | ||
| 36 | + | ||
| 37 | + <ImageView | ||
| 38 | + android:id="@+id/infoAccountImage" | ||
| 39 | + android:layout_width="50dp" | ||
| 40 | + android:layout_height="50dp" | ||
| 41 | + android:layout_weight="1" | ||
| 42 | + tools:srcCompat="@tools:sample/avatars" /> | ||
| 43 | + | ||
| 44 | + <LinearLayout | ||
| 45 | + android:layout_width="match_parent" | ||
| 46 | + android:layout_height="match_parent" | ||
| 47 | + android:layout_weight="1" | ||
| 48 | + android:orientation="vertical"> | ||
| 49 | + | ||
| 50 | + <TextView | ||
| 51 | + android:id="@+id/InfoNickname" | ||
| 52 | + android:layout_width="match_parent" | ||
| 53 | + android:layout_height="wrap_content" | ||
| 54 | + android:gravity="center" | ||
| 55 | + android:text="GRACE" /> | ||
| 56 | + | ||
| 57 | + <TextView | ||
| 58 | + android:id="@+id/InfoEmail" | ||
| 59 | + android:layout_width="match_parent" | ||
| 60 | + android:layout_height="wrap_content" | ||
| 61 | + android:gravity="center" | ||
| 62 | + android:text="grace@naver.com" /> | ||
| 63 | + | ||
| 64 | + <TextView | ||
| 65 | + android:id="@+id/InfoProfilProgress" | ||
| 66 | + android:layout_width="match_parent" | ||
| 67 | + android:layout_height="wrap_content" | ||
| 68 | + android:gravity="center" | ||
| 69 | + android:text="프로필정보입력15/20" /> | ||
| 70 | + | ||
| 71 | + </LinearLayout> | ||
| 72 | + | ||
| 73 | + <ImageView | ||
| 74 | + android:id="@+id/InfoProfilImage" | ||
| 75 | + android:layout_width="50dp" | ||
| 76 | + android:layout_height="50dp" | ||
| 77 | + android:layout_weight="1" | ||
| 78 | + tools:srcCompat="@tools:sample/avatars" /> | ||
| 79 | + </LinearLayout> | ||
| 80 | + | ||
| 81 | + <LinearLayout | ||
| 82 | + android:layout_width="match_parent" | ||
| 83 | + android:layout_height="wrap_content" | ||
| 84 | + android:orientation="vertical"> | ||
| 85 | + | ||
| 86 | + <TextView | ||
| 87 | + android:id="@+id/InfoProfilModify" | ||
| 88 | + android:layout_width="match_parent" | ||
| 89 | + android:layout_height="wrap_content" | ||
| 90 | + android:gravity="center" | ||
| 91 | + android:text="프로필 정보 수정" /> | ||
| 92 | + | ||
| 93 | + <ProgressBar | ||
| 94 | + android:id="@+id/InfoProgress" | ||
| 95 | + style="?android:attr/progressBarStyleHorizontal" | ||
| 96 | + android:layout_width="match_parent" | ||
| 97 | + android:layout_height="wrap_content" /> | ||
| 98 | + | ||
| 99 | + <TextView | ||
| 100 | + android:id="@+id/InfoExplain" | ||
| 101 | + android:layout_width="match_parent" | ||
| 102 | + android:layout_height="wrap_content" | ||
| 103 | + android:gravity="center" | ||
| 104 | + android:text="많이입력해야정확해요" /> | ||
| 105 | + | ||
| 106 | + <TextView | ||
| 107 | + android:id="@+id/InfoStep" | ||
| 108 | + android:layout_width="match_parent" | ||
| 109 | + android:layout_height="wrap_content" | ||
| 110 | + android:gravity="center" | ||
| 111 | + android:text="STEP 15/20" /> | ||
| 112 | + </LinearLayout> | ||
| 113 | + | ||
| 114 | + <LinearLayout | ||
| 115 | + android:layout_width="match_parent" | ||
| 116 | + android:layout_height="wrap_content" | ||
| 117 | + android:orientation="horizontal"> | ||
| 118 | + | ||
| 119 | + <Button | ||
| 120 | + android:id="@+id/InfoButtonNotice" | ||
| 121 | + android:layout_width="match_parent" | ||
| 122 | + android:layout_height="wrap_content" | ||
| 123 | + android:text="공지사항" /> | ||
| 124 | + </LinearLayout> | ||
| 125 | + | ||
| 126 | + <LinearLayout | ||
| 127 | + android:layout_width="match_parent" | ||
| 128 | + android:layout_height="wrap_content" | ||
| 129 | + android:orientation="horizontal"> | ||
| 130 | + | ||
| 131 | + <Button | ||
| 132 | + android:id="@+id/InfoButtonFAQ" | ||
| 133 | + android:layout_width="match_parent" | ||
| 134 | + android:layout_height="wrap_content" | ||
| 135 | + android:text="자주 묻는 질문" /> | ||
| 136 | + </LinearLayout> | ||
| 137 | + | ||
| 138 | + <LinearLayout | ||
| 139 | + android:layout_width="match_parent" | ||
| 140 | + android:layout_height="wrap_content" | ||
| 141 | + android:orientation="horizontal"> | ||
| 142 | + | ||
| 143 | + <Button | ||
| 144 | + android:id="@+id/InfoButtonSettings" | ||
| 145 | + android:layout_width="match_parent" | ||
| 146 | + android:layout_height="wrap_content" | ||
| 147 | + android:text="환경설정" /> | ||
| 148 | + </LinearLayout> | ||
| 149 | + | ||
| 150 | + <LinearLayout | ||
| 151 | + android:layout_width="match_parent" | ||
| 152 | + android:layout_height="wrap_content" | ||
| 153 | + android:orientation="horizontal"> | ||
| 154 | + | ||
| 155 | + <Button | ||
| 156 | + android:id="@+id/InfoButtonLaw" | ||
| 157 | + android:layout_width="match_parent" | ||
| 158 | + android:layout_height="wrap_content" | ||
| 159 | + android:text="개인정보처리방침" /> | ||
| 160 | + </LinearLayout> | ||
| 161 | + | ||
| 162 | + <LinearLayout | ||
| 163 | + android:layout_width="match_parent" | ||
| 164 | + android:layout_height="wrap_content" | ||
| 165 | + android:orientation="horizontal"> | ||
| 166 | + | ||
| 167 | + <Button | ||
| 168 | + android:id="@+id/InfoButtonApp" | ||
| 169 | + android:layout_width="match_parent" | ||
| 170 | + android:layout_height="wrap_content" | ||
| 171 | + android:text="APP 정보" /> | ||
| 172 | + </LinearLayout> | ||
| 173 | + | ||
| 174 | + <FrameLayout | ||
| 175 | + android:layout_width="match_parent" | ||
| 176 | + android:layout_height="wrap_content" | ||
| 177 | + android:id="@+id/fragmentContainer" | ||
| 178 | + app:layout_constraintBottom_toBottomOf="parent" | ||
| 179 | + > | ||
| 180 | + | ||
| 181 | + <com.google.android.material.bottomnavigation.BottomNavigationView | ||
| 182 | + android:id="@+id/bottomNavigation" | ||
| 183 | + android:layout_width="match_parent" | ||
| 184 | + android:layout_height="wrap_content" | ||
| 185 | + android:layout_gravity="bottom" | ||
| 186 | + android:background="#FFF" | ||
| 187 | + app:itemIconTint="#29ABE2" | ||
| 188 | + app:itemTextColor="#29ABE2" | ||
| 189 | + app:labelVisibilityMode="labeled" | ||
| 190 | + app:menu="@menu/bottom_nav_menu" /> | ||
| 191 | + </FrameLayout> | ||
| 192 | + </LinearLayout> | ||
| 9 | </androidx.constraintlayout.widget.ConstraintLayout> | 193 | </androidx.constraintlayout.widget.ConstraintLayout> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment