soonmyeong2

add image file

Showing 1000 changed files with 36 additions and 24 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.app.Activity
3 import android.content.Context 4 import android.content.Context
4 import android.content.Intent 5 import android.content.Intent
5 import android.content.SharedPreferences 6 import android.content.SharedPreferences
7 +import android.os.Build
6 import androidx.appcompat.app.AppCompatActivity 8 import androidx.appcompat.app.AppCompatActivity
7 import android.os.Bundle 9 import android.os.Bundle
10 +import android.view.Window
11 +import android.view.WindowManager
8 import android.widget.ImageView 12 import android.widget.ImageView
9 import android.widget.Toast 13 import android.widget.Toast
10 import kotlinx.android.synthetic.main.activity_info.* 14 import kotlinx.android.synthetic.main.activity_info.*
15 +import android.graphics.drawable.ColorDrawable
16 +import androidx.core.content.ContextCompat
11 17
12 class InfoActivity : AppCompatActivity() { 18 class InfoActivity : AppCompatActivity() {
13 19
...@@ -15,6 +21,11 @@ class InfoActivity : AppCompatActivity() { ...@@ -15,6 +21,11 @@ class InfoActivity : AppCompatActivity() {
15 super.onCreate(savedInstanceState) 21 super.onCreate(savedInstanceState)
16 setContentView(R.layout.activity_info) 22 setContentView(R.layout.activity_info)
17 23
24 + // statusbar color chacnge
25 + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
26 + getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
27 + getWindow().setStatusBarColor(getResources().getColor(R.color.infomainColor));
28 + }
18 val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) 29 val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
19 val editor: SharedPreferences.Editor=prof.edit() 30 val editor: SharedPreferences.Editor=prof.edit()
20 31
...@@ -23,10 +34,8 @@ class InfoActivity : AppCompatActivity() { ...@@ -23,10 +34,8 @@ class InfoActivity : AppCompatActivity() {
23 34
24 //temp 35 //temp
25 var accountImage: ImageView =findViewById(R.id.infoAccountImage) 36 var accountImage: ImageView =findViewById(R.id.infoAccountImage)
26 - var profilImage: ImageView =findViewById(R.id.InfoProfilImage)
27 37
28 accountImage.setImageResource(R.drawable.image01) 38 accountImage.setImageResource(R.drawable.image01)
29 - profilImage.setImageResource(R.drawable.image01)
30 39
31 //temp 40 //temp
32 41
......
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 +
2 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 xmlns:app="http://schemas.android.com/apk/res-auto"
4 xmlns:tools="http://schemas.android.com/tools" 5 xmlns:tools="http://schemas.android.com/tools"
...@@ -11,13 +12,16 @@ ...@@ -11,13 +12,16 @@
11 android:layout_height="match_parent" 12 android:layout_height="match_parent"
12 android:orientation="vertical"> 13 android:orientation="vertical">
13 14
15 + <LinearLayout
16 + android:layout_width="match_parent"
17 + android:layout_height="195dp"
18 + android:orientation="vertical">
19 +
14 <androidx.appcompat.widget.Toolbar 20 <androidx.appcompat.widget.Toolbar
15 android:id="@+id/toolbar" 21 android:id="@+id/toolbar"
16 android:layout_width="fill_parent" 22 android:layout_width="fill_parent"
17 android:layout_height="wrap_content" 23 android:layout_height="wrap_content"
18 - android:layout_marginBottom="11dp" 24 + android:background="#F1F9FF"
19 - android:background="#FFF"
20 - android:elevation="5dp"
21 android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" 25 android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
22 app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> 26 app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
23 27
...@@ -31,14 +35,9 @@ ...@@ -31,14 +35,9 @@
31 <LinearLayout 35 <LinearLayout
32 android:layout_width="match_parent" 36 android:layout_width="match_parent"
33 android:layout_height="wrap_content" 37 android:layout_height="wrap_content"
34 - android:layout_weight="1"
35 - android:orientation="vertical">
36 -
37 - <LinearLayout
38 - android:layout_width="match_parent"
39 - android:layout_height="wrap_content"
40 android:layout_gravity="center" 38 android:layout_gravity="center"
41 android:layout_weight="1" 39 android:layout_weight="1"
40 + android:background="#F1F9FF"
42 android:orientation="horizontal"> 41 android:orientation="horizontal">
43 42
44 <ImageView 43 <ImageView
...@@ -47,7 +46,7 @@ ...@@ -47,7 +46,7 @@
47 android:layout_height="50dp" 46 android:layout_height="50dp"
48 android:layout_gravity="center" 47 android:layout_gravity="center"
49 android:layout_weight="1" 48 android:layout_weight="1"
50 - tools:srcCompat="@tools:sample/avatars" /> 49 + android:src="@drawable/_wello_2" />
51 50
52 <LinearLayout 51 <LinearLayout
53 android:layout_width="wrap_content" 52 android:layout_width="wrap_content"
...@@ -84,30 +83,34 @@ ...@@ -84,30 +83,34 @@
84 83
85 </LinearLayout> 84 </LinearLayout>
86 85
87 - <ImageView
88 - android:id="@+id/InfoProfilImage"
89 - android:layout_width="50dp"
90 - android:layout_height="50dp"
91 - android:layout_gravity="center"
92 - android:layout_weight="1"
93 - tools:srcCompat="@tools:sample/avatars" />
94 </LinearLayout> 86 </LinearLayout>
95 87
88 + </LinearLayout>
89 +
90 + <TextView
91 + android:id="@+id/InfoProfilModify"
92 + android:layout_width="match_parent"
93 + android:layout_height="55dp"
94 + android:layout_gravity="center"
95 + android:background="#29ABE2"
96 + android:gravity="center"
97 + android:text="프로필 입력하기"
98 + android:textColor="#FFF"
99 + android:textSize="16dp" />
100 +
96 <LinearLayout 101 <LinearLayout
97 android:layout_width="match_parent" 102 android:layout_width="match_parent"
98 android:layout_height="wrap_content" 103 android:layout_height="wrap_content"
99 - android:layout_gravity="center"
100 android:layout_weight="1" 104 android:layout_weight="1"
101 - android:gravity="center"
102 android:orientation="vertical"> 105 android:orientation="vertical">
103 106
104 - <TextView 107 + <LinearLayout
105 - android:id="@+id/InfoProfilModify"
106 android:layout_width="match_parent" 108 android:layout_width="match_parent"
107 android:layout_height="wrap_content" 109 android:layout_height="wrap_content"
108 android:layout_gravity="center" 110 android:layout_gravity="center"
111 + android:layout_weight="1"
109 android:gravity="center" 112 android:gravity="center"
110 - android:text="프로필 정보 수정" /> 113 + android:orientation="vertical">
111 114
112 <ProgressBar 115 <ProgressBar
113 android:id="@+id/InfoProgress" 116 android:id="@+id/InfoProgress"
......
This diff is collapsed. Click to expand it.