App Speed ​​Up и Stop Lag - PullRequest
       28

App Speed ​​Up и Stop Lag

0 голосов
/ 04 мая 2018

Меня зовут Монсеф, и я хочу знать, как я могу ускорить свое приложение, потому что, когда я попробовал его на своем телефоне, оно сильно отставало, я пытался удалить неиспользуемые коды и изображения и тому подобное, но оно все еще отставало , а приложение просто приложение календаря

package com.moncef.calendar;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.widget.CalendarView;
import android.widget.TextView;

public class CalendarActivity extends AppCompatActivity {

    private TextView textView;

        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_calendar);

            CalendarView calendarView = findViewById(R.id.calendarView);
        textView = findViewById(R.id.textView);

        calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() {
        @Override
        public void onSelectedDayChange(@NonNull CalendarView calendarView, int i, int i1, int i2){
            String date = (i1 + 1) + "/" + i2 + "/" + i;
            textView.setText(date);
        }
     });
     }

   }
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.moncef.calendar"
    android:installLocation="auto">

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true" />

    <application
        android:minSdkVersion="23"
        android:targetSdkVersion="27"
        android:launchMode="standard"
        android:hardwareAccelerated="true"
        android:allowBackup="true"
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:roundIcon="@drawable/roundicon"
        android:supportsRtl="true"
        android:isGame="false"
        android:fullBackupContent="@xml/backup_descriptor">
        <activity android:name=".CalendarActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

и спасибо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...