mirror of
https://github.com/Xcreen/RestSMS.git
synced 2026-04-18 06:07:40 -04:00
Swichted all Fragments to a fragments-package
This commit is contained in:
@@ -4,6 +4,6 @@ import android.app.Application;
|
||||
|
||||
public class AppContext extends Application {
|
||||
|
||||
SMSServer smsServer = new SMSServer();
|
||||
public SMSServer smsServer = new SMSServer();
|
||||
|
||||
}
|
||||
|
||||
@@ -12,6 +12,10 @@ import androidx.fragment.app.FragmentTransaction;
|
||||
|
||||
import android.view.MenuItem;
|
||||
|
||||
import net.xcreen.restsms.fragments.AboutFragment;
|
||||
import net.xcreen.restsms.fragments.HomeFragment;
|
||||
import net.xcreen.restsms.fragments.SettingsFragment;
|
||||
|
||||
import org.slf4j.impl.SimpleLogger;
|
||||
|
||||
public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.xcreen.restsms;
|
||||
package net.xcreen.restsms.fragments;
|
||||
|
||||
import android.Manifest;
|
||||
import android.content.Context;
|
||||
@@ -16,6 +16,9 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
|
||||
import net.xcreen.restsms.BuildConfig;
|
||||
import net.xcreen.restsms.R;
|
||||
|
||||
public class AboutAppFragment extends Fragment {
|
||||
|
||||
@Override
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.xcreen.restsms;
|
||||
package net.xcreen.restsms.fragments;
|
||||
|
||||
import androidx.appcompat.widget.LinearLayoutCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
@@ -14,6 +14,8 @@ import android.view.ViewGroup;
|
||||
import com.google.android.material.appbar.AppBarLayout;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
|
||||
import net.xcreen.restsms.R;
|
||||
|
||||
public class AboutFragment extends Fragment {
|
||||
|
||||
private TabLayout tabLayout;
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.xcreen.restsms;
|
||||
package net.xcreen.restsms.fragments;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
@@ -11,6 +11,8 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
|
||||
import net.xcreen.restsms.R;
|
||||
|
||||
|
||||
public class AboutMeFragment extends Fragment {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.xcreen.restsms;
|
||||
package net.xcreen.restsms.fragments;
|
||||
|
||||
import android.content.Context;
|
||||
import android.net.Uri;
|
||||
@@ -15,6 +15,8 @@ import android.widget.ArrayAdapter;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import net.xcreen.restsms.R;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class AboutThirdPartyLibrarysFragment extends Fragment {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.xcreen.restsms;
|
||||
package net.xcreen.restsms.fragments;
|
||||
|
||||
import androidx.core.app.ActivityCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
@@ -19,6 +19,9 @@ import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.Toast;
|
||||
|
||||
import net.xcreen.restsms.AppContext;
|
||||
import net.xcreen.restsms.R;
|
||||
|
||||
import java.net.BindException;
|
||||
|
||||
public class HomeFragment extends Fragment {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.xcreen.restsms;
|
||||
package net.xcreen.restsms.fragments;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
@@ -13,6 +13,8 @@ import android.widget.CheckBox;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Toast;
|
||||
|
||||
import net.xcreen.restsms.R;
|
||||
|
||||
public class SettingsFragment extends Fragment {
|
||||
|
||||
@Override
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".AboutFragment">
|
||||
tools:context=".fragments.AboutFragment">
|
||||
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:id="@+id/about_view_pager"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".AboutAppFragment">
|
||||
tools:context=".fragments.AboutAppFragment">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:padding="@dimen/fragment_padding"
|
||||
tools:context=".AboutMeFragment">
|
||||
tools:context=".fragments.AboutMeFragment">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".AboutThirdPartyLibrarysFragment">
|
||||
tools:context=".fragments.AboutThirdPartyLibrarysFragment">
|
||||
|
||||
<ListView
|
||||
android:id="@+id/about_third_party_list_view"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="@dimen/fragment_padding"
|
||||
tools:context=".HomeFragment">
|
||||
tools:context=".fragments.HomeFragment">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="@dimen/fragment_padding"
|
||||
tools:context=".SettingsFragment">
|
||||
tools:context=".fragments.SettingsFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user