soonmyeong2

add image file

Showing 1000 changed files with 49 additions and 37 deletions

Too many changes to show.

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

package com.example.vip
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Window
import android.view.WindowManager
import android.widget.ImageView
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_info.*
import android.graphics.drawable.ColorDrawable
import androidx.core.content.ContextCompat
class InfoActivity : AppCompatActivity() {
......@@ -15,6 +21,11 @@ class InfoActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_info)
// statusbar color chacnge
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
getWindow().setStatusBarColor(getResources().getColor(R.color.infomainColor));
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
......@@ -23,10 +34,8 @@ class InfoActivity : AppCompatActivity() {
//temp
var accountImage: ImageView =findViewById(R.id.infoAccountImage)
var profilImage: ImageView =findViewById(R.id.InfoProfilImage)
accountImage.setImageResource(R.drawable.image01)
profilImage.setImageResource(R.drawable.image01)
//temp
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
......@@ -11,34 +12,32 @@
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="11dp"
android:background="#FFF"
android:elevation="5dp"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<ImageView
android:layout_width="77dp"
android:layout_height="44dp"
android:layout_gravity="center"
android:src="@drawable/toolbar_logo" />
</androidx.appcompat.widget.Toolbar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_height="195dp"
android:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#F1F9FF"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<ImageView
android:layout_width="77dp"
android:layout_height="44dp"
android:layout_gravity="center"
android:src="@drawable/toolbar_logo" />
</androidx.appcompat.widget.Toolbar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:background="#F1F9FF"
android:orientation="horizontal">
<ImageView
......@@ -47,7 +46,7 @@
android:layout_height="50dp"
android:layout_gravity="center"
android:layout_weight="1"
tools:srcCompat="@tools:sample/avatars" />
android:src="@drawable/_wello_2" />
<LinearLayout
android:layout_width="wrap_content"
......@@ -84,15 +83,27 @@
</LinearLayout>
<ImageView
android:id="@+id/InfoProfilImage"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:layout_weight="1"
tools:srcCompat="@tools:sample/avatars" />
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/InfoProfilModify"
android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_gravity="center"
android:background="#29ABE2"
android:gravity="center"
android:text="프로필 입력하기"
android:textColor="#FFF"
android:textSize="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
......@@ -101,14 +112,6 @@
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/InfoProfilModify"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="프로필 정보 수정" />
<ProgressBar
android:id="@+id/InfoProgress"
style="?android:attr/progressBarStyleHorizontal"
......
This diff is collapsed. Click to expand it.