편집 기록

편집 기록
  • 프로필 알 수 없는 사용자님의 편집
    날짜2016.03.18

    안드로이드 화면 전환시 시간 지연


    앱 실행시 메인화면 로딩(1.5초)이나 화면전환시 약간 느린감이 있습니다.

    아래 코드와 같이 레이아웃 백그라운드에 이미지도 넣어주고

    프래그먼트에도 이미지가 두개나 들어가 있습니다.

    찾아보니 비트맵 이용해서 이미지 파일의 용량을 줄이는거 같은데

    만약, 비트맵으로 전환한다면 xml에서 @drawable 대신 자바 코드에서 직접 뷰에 이미지를 붙여야하나요

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/intro"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        tools:context="com.example.candle.xxxxx.MainActivity">
    
        <ImageView
            android:id="@+id/btn_intro"
            android:layout_width="70dp"
            android:layout_height="70dp"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true"
            android:layout_marginBottom="110dp"
            android:src="@drawable/btn_intro" />
    
        <FrameLayout
            android:id="@+id/fragment_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_alignParentBottom="true"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true" />
    
    </RelativeLayout>
    
  • 프로필 김선우님의 편집
    날짜2016.03.16

    안드로이드 화면 전환시 시간 지연


    앱 실행시 메인화면 로딩(1.5초)이나 화면전환시 약간 느린감이 있습니다.

    아래 코드와 같이 레이아웃 백그라운드에 이미지도 넣어주고

    프래그먼트에도 이미지가 두개나 들어가 있습니다.

    찾아보니 비트맵 이용해서 이미지 파일의 용량을 줄이는거 같은데

    만약, 비트맵으로 전환한다면 xml에서 @drawable 대신 자바 코드에서 직접 뷰에 이미지를 붙여야하나요

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/intro"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        tools:context="com.example.candle.xxxxx.MainActivity">
    
        <ImageView
            android:id="@+id/btn_intro"
            android:layout_width="70dp"
            android:layout_height="70dp"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true"
            android:layout_marginBottom="110dp"
            android:src="@drawable/btn_intro" />
    
        <FrameLayout
            android:id="@+id/fragment_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_alignParentBottom="true"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true" />
    
    </RelativeLayout>