mirror of
https://github.com/stan220/Zte-F660-Control.git
synced 2026-09-08 20:28:43 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f4ef43481 |
@@ -6,7 +6,6 @@ import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
import android.text.method.ScrollingMovementMethod;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
@@ -51,8 +50,14 @@ public class MainActivity extends AppCompatActivity {
|
||||
}));
|
||||
|
||||
System.out.println("App started!!!");
|
||||
new DownloadFilesTask(this).execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
|
||||
System.out.println("App resumed!!!");
|
||||
new DownloadFilesTask(this).execute();
|
||||
}
|
||||
|
||||
public void onSwitchClick(View view) {
|
||||
@@ -170,7 +175,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
switchAlisa.setChecked(false);
|
||||
}
|
||||
|
||||
Toast.makeText(context, "Состояние обновлено!", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(context, "Статус обновлён!", Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
android:foregroundGravity="fill"
|
||||
android:orientation="vertical"
|
||||
android:padding="20dp">
|
||||
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
android:id="@+id/switchTab"
|
||||
@@ -34,7 +36,8 @@
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="586dp"
|
||||
android:layout_height="538dp"
|
||||
android:layout_gravity="fill"
|
||||
android:fadeScrollbars="false"
|
||||
android:gravity="bottom"
|
||||
android:isScrollContainer="true"
|
||||
|
||||
Reference in New Issue
Block a user