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.

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,13 +12,16 @@
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
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:layout_marginBottom="11dp"
android:background="#FFF"
android:elevation="5dp"
android:background="#F1F9FF"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
......@@ -31,14 +35,9 @@
<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"
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,30 +83,34 @@
</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_gravity="center"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/InfoProfilModify"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center"
android:text="프로필 정보 수정" />
android:orientation="vertical">
<ProgressBar
android:id="@+id/InfoProgress"
......
This diff is collapsed. Click to expand it.