sehr viel design überarbeitet
credits überarbeitet login/logout überarbeitet shutdown hinweisfrage hinzugefügt
This commit is contained in:
parent
ff6eaf5d3b
commit
8141734b9e
@ -34,7 +34,7 @@ dependencies {
|
||||
|
||||
implementation 'androidx.appcompat:appcompat:1.3.0'
|
||||
implementation 'com.google.android.material:material:1.3.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.0-beta02'
|
||||
implementation 'androidx.navigation:navigation-fragment:2.3.5'
|
||||
implementation 'androidx.navigation:navigation-ui:2.3.5'
|
||||
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
|
||||
|
@ -25,7 +25,6 @@ import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.RequiresApi;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
@ -76,6 +75,7 @@ public class MainActivity extends AppCompatActivity implements AddButtonDialog.A
|
||||
setContentView(R.layout.activity_main);
|
||||
|
||||
Toolbar toolbar = findViewById(R.id.toolbar);
|
||||
toolbar.setBackgroundResource(R.drawable.toolbartop);
|
||||
setSupportActionBar(toolbar);
|
||||
FloatingActionButton addfab = findViewById(R.id.addbutton_fab);
|
||||
addfab.setOnClickListener(new View.OnClickListener() {
|
||||
@ -101,7 +101,7 @@ public class MainActivity extends AppCompatActivity implements AddButtonDialog.A
|
||||
// Passing each menu ID as a set of Ids because each
|
||||
// menu should be considered as top level destinations.
|
||||
mAppBarConfiguration = new AppBarConfiguration.Builder(
|
||||
R.id.nav_home, R.id.nav_einstellungen, R.id.nav_kueche, R.id.nav_zeitsteuerung, R.id.nav_schlafzimmer, R.id.nav_flur, R.id.nav_credits, R.id.nav_konsole)
|
||||
R.id.nav_home, R.id.nav_einstellungen, R.id.nav_kueche, R.id.nav_zeitsteuerung, R.id.nav_schlafzimmer, R.id.nav_flur, R.id.nav_über, R.id.nav_konsole)
|
||||
.setOpenableLayout(drawer)
|
||||
.build();
|
||||
NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
|
||||
@ -176,7 +176,6 @@ public class MainActivity extends AppCompatActivity implements AddButtonDialog.A
|
||||
}
|
||||
|
||||
public void menurighttopeinstellungen(MenuItem i) {
|
||||
Toast.makeText(this, "SETTINGS", Toast.LENGTH_LONG).show();
|
||||
EinstellungenFragment pef = new EinstellungenFragment();
|
||||
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
|
||||
transaction.replace(R.id.nav_host_fragment, pef).setPrimaryNavigationFragment(pef);
|
||||
@ -186,28 +185,19 @@ public class MainActivity extends AppCompatActivity implements AddButtonDialog.A
|
||||
}
|
||||
|
||||
public void menurighttopcredits(MenuItem i) {
|
||||
Toast.makeText(this, "CREDITS", Toast.LENGTH_LONG).show();
|
||||
CreditsFragment pef = new CreditsFragment();
|
||||
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
|
||||
transaction.replace(R.id.nav_host_fragment, pef).setPrimaryNavigationFragment(pef);
|
||||
transaction.addToBackStack(null);
|
||||
transaction.commit();
|
||||
getSupportActionBar().setTitle(R.string.menu_credits);
|
||||
getSupportActionBar().setTitle(R.string.menu_über);
|
||||
}
|
||||
|
||||
public void menurighttopdocumentation(MenuItem i) {
|
||||
Toast.makeText(this, "DOCUMENTATION", Toast.LENGTH_LONG).show();
|
||||
Intent in = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.jg-cody.de/"));
|
||||
startActivity(in);
|
||||
}
|
||||
|
||||
public void menurighttoplogout(MenuItem i) {
|
||||
Toast.makeText(this, "LOGOUT", Toast.LENGTH_LONG).show();
|
||||
getSharedPreferences("appsettings", Context.MODE_PRIVATE).edit().remove("ip").remove("user").remove("password").commit();
|
||||
startActivity(getIntent());
|
||||
finish();
|
||||
}
|
||||
|
||||
public void menurighttopschliessen(MenuItem i) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
finishAffinity();
|
||||
@ -234,6 +224,7 @@ public class MainActivity extends AppCompatActivity implements AddButtonDialog.A
|
||||
}
|
||||
});
|
||||
AlertDialog mDialog = mBuilder.create();
|
||||
mDialog.getWindow().setBackgroundDrawableResource(R.drawable.button_round);
|
||||
mDialog.show();
|
||||
}
|
||||
|
||||
|
@ -61,12 +61,14 @@ public class EinstellungenFragment extends Fragment {
|
||||
Toast.makeText(getContext(), "Colorpicker", Toast.LENGTH_SHORT).show();
|
||||
final ColorPickerView picker = new ColorPickerView(getContext());
|
||||
picker.setColor(0xff12345);
|
||||
new AlertDialog.Builder(getContext()).setView(picker).setTitle(R.string.colorpicker).setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
|
||||
AlertDialog mDialog = new AlertDialog.Builder(getContext()).setView(picker).setTitle(R.string.colorpicker).setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
|
||||
}
|
||||
}).show();
|
||||
}).create();
|
||||
mDialog.getWindow().setBackgroundDrawableResource(R.drawable.button_round);
|
||||
mDialog.show();
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
@ -84,7 +86,7 @@ public class EinstellungenFragment extends Fragment {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
|
||||
new AlertDialog.Builder(getContext())
|
||||
AlertDialog mDialog = new AlertDialog.Builder(getContext())
|
||||
.setTitle(R.string.reset_app)
|
||||
.setMessage(R.string.are_you_sure_to_reset)
|
||||
|
||||
@ -105,7 +107,9 @@ public class EinstellungenFragment extends Fragment {
|
||||
|
||||
// A null listener allows the button to dismiss the dialog and take no further action.
|
||||
.setNegativeButton(android.R.string.no, null)
|
||||
.show();
|
||||
.create();
|
||||
mDialog.getWindow().setBackgroundDrawableResource(R.drawable.button_round);
|
||||
mDialog.show();
|
||||
}
|
||||
|
||||
});
|
||||
@ -148,6 +152,7 @@ public class EinstellungenFragment extends Fragment {
|
||||
}
|
||||
});
|
||||
AlertDialog mDialog = mBuilder.create();
|
||||
mDialog.getWindow().setBackgroundDrawableResource(R.drawable.button_round);
|
||||
mDialog.show();
|
||||
}
|
||||
|
||||
|
@ -79,12 +79,33 @@ public class KonsoleFragment extends Fragment {
|
||||
reboot_Button.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
AlertDialog mDialog = new AlertDialog.Builder(getContext())
|
||||
.setTitle("SERVER NEUSTARTEN")
|
||||
.setMessage("BIST DU SICHER?")
|
||||
|
||||
// Specifying a listener allows you to take an action before dismissing the dialog.
|
||||
// The dialog is automatically dismissed when a dialog button is clicked.
|
||||
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
try {
|
||||
Toast.makeText(getContext(), "Reboot wird ausgeführt...", Toast.LENGTH_SHORT).show();
|
||||
SSH_connection.executeRemoteCommand(ip, user, password, "reboot");
|
||||
} catch (Exception e) {
|
||||
}
|
||||
|
||||
// Continue with delete operation
|
||||
}
|
||||
})
|
||||
|
||||
// A null listener allows the button to dismiss the dialog and take no further action.
|
||||
.setNegativeButton(android.R.string.no, null)
|
||||
.create();
|
||||
mDialog.getWindow().setBackgroundDrawableResource(R.drawable.button_round);
|
||||
mDialog.show();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
shutdown_Button = (Button) root.findViewById(R.id.shutdown);
|
||||
@ -93,9 +114,9 @@ public class KonsoleFragment extends Fragment {
|
||||
public void onClick(View v) {
|
||||
|
||||
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setTitle("Server herunterfahren")
|
||||
.setMessage("Bist du sicher?")
|
||||
AlertDialog mDialog = new AlertDialog.Builder(getContext())
|
||||
.setTitle("SERVER HERUNTERFAHREN")
|
||||
.setMessage("BIST DU SICHER?")
|
||||
|
||||
// Specifying a listener allows you to take an action before dismissing the dialog.
|
||||
// The dialog is automatically dismissed when a dialog button is clicked.
|
||||
@ -113,7 +134,9 @@ public class KonsoleFragment extends Fragment {
|
||||
|
||||
// A null listener allows the button to dismiss the dialog and take no further action.
|
||||
.setNegativeButton(android.R.string.no, null)
|
||||
.show();
|
||||
.create();
|
||||
mDialog.getWindow().setBackgroundDrawableResource(R.drawable.button_round);
|
||||
mDialog.show();
|
||||
|
||||
}
|
||||
});
|
||||
|
@ -12,14 +12,11 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.lifecycle.Observer;
|
||||
import androidx.lifecycle.ViewModelProvider;
|
||||
|
||||
import java.util.Base64;
|
||||
@ -60,13 +57,7 @@ public class SchlafzimmerFragment extends Fragment {
|
||||
I.setImageDrawable(new BitmapDrawable(getResources(), MainActivity.scaleCenterCrop(BitmapFactory.decodeByteArray(BA, 0, BA.length), MainActivity.getScreenHeight(), MainActivity.getScreenWidth())));
|
||||
I.setScaleType(ImageView.ScaleType.CENTER_CROP);
|
||||
}
|
||||
final TextView textView = root.findViewById(R.id.text_schlafzimmer);
|
||||
schlafzimmerViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() {
|
||||
@Override
|
||||
public void onChanged(@Nullable String s) {
|
||||
textView.setText(s);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
schlafzimmeru1aus = (Button) root.findViewById(R.id.schlafzimmeru1aus);
|
||||
schlafzimmeru1aus.setOnClickListener(new View.OnClickListener() {
|
||||
|
@ -1,19 +1,7 @@
|
||||
package de.jg_cody.Teraplex.ui.Schlafzimmer;
|
||||
|
||||
import androidx.lifecycle.LiveData;
|
||||
import androidx.lifecycle.MutableLiveData;
|
||||
import androidx.lifecycle.ViewModel;
|
||||
|
||||
public class SchlafzimmerViewModel extends ViewModel {
|
||||
|
||||
private MutableLiveData<String> mText;
|
||||
|
||||
public SchlafzimmerViewModel() {
|
||||
mText = new MutableLiveData<>();
|
||||
mText.setValue("EINSTELLUNGEN");
|
||||
}
|
||||
|
||||
public LiveData<String> getText() {
|
||||
return mText;
|
||||
}
|
||||
}
|
@ -35,6 +35,7 @@ public class HomeFragment extends Fragment {
|
||||
public static EditText userInput;
|
||||
public static EditText passwordInput;
|
||||
Button loginButton;
|
||||
Button logoutButton;
|
||||
Button wlan_aus_Button;
|
||||
Button wlan_an_Button;
|
||||
Button kodian;
|
||||
@ -73,6 +74,11 @@ public class HomeFragment extends Fragment {
|
||||
passwordInput = (EditText) root.findViewById(R.id.loginpasswordInput);
|
||||
ipInput = (EditText) root.findViewById(R.id.ipInput);
|
||||
loginButton = (Button) root.findViewById(R.id.loginButton);
|
||||
SharedPreferences t = getContext().getSharedPreferences("appsettings", Context.MODE_PRIVATE);
|
||||
if (user == null || ip == null) {
|
||||
loginButton.setVisibility(View.VISIBLE);
|
||||
}
|
||||
else {loginButton.setVisibility(View.INVISIBLE);}
|
||||
loginButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
@ -89,10 +95,25 @@ public class HomeFragment extends Fragment {
|
||||
login_data.setText("");
|
||||
} else {
|
||||
login_data.setText("Sie sind als " + user + " bei " + ip + " angemeldet!");
|
||||
logoutButton.setVisibility(View.VISIBLE);
|
||||
loginButton.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
logoutButton = (Button) root.findViewById(R.id.logoutButton);
|
||||
if (user == null || ip == null) {
|
||||
logoutButton.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
else {logoutButton.setVisibility(View.VISIBLE);}
|
||||
logoutButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
getContext().getSharedPreferences("appsettings", Context.MODE_PRIVATE).edit().remove("ip").remove("user").remove("password").commit();
|
||||
startActivity(getActivity().getIntent());
|
||||
getActivity().finish();
|
||||
}
|
||||
});
|
||||
wlan_aus_Button = (Button) root.findViewById(R.id.wlan_aus);
|
||||
wlan_aus_Button.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
@ -123,7 +144,7 @@ public class HomeFragment extends Fragment {
|
||||
public void onClick(View v) {
|
||||
|
||||
try {
|
||||
Toast.makeText(getContext(), "Lampe wird ausgeschaltet...", Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(getContext(), "KODI wird ausgeschaltet...", Toast.LENGTH_SHORT).show();
|
||||
SSH_connection.executeRemoteCommand(ip, user, password, "sudo /root/raspberry-remote/send 11111 3 0");
|
||||
} catch (Exception e) {
|
||||
}
|
||||
@ -136,7 +157,7 @@ public class HomeFragment extends Fragment {
|
||||
public void onClick(View v) {
|
||||
|
||||
try {
|
||||
Toast.makeText(getContext(), "Lampe wird angeschaltet...", Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(getContext(), "KODI wird angeschaltet...", Toast.LENGTH_SHORT).show();
|
||||
SSH_connection.executeRemoteCommand(ip, user, password, "sudo /root/raspberry-remote/send 11111 3 1");
|
||||
} catch (Exception e) {
|
||||
}
|
||||
|
12
app/src/main/res/drawable/backgroundalpha.xml
Normal file
12
app/src/main/res/drawable/backgroundalpha.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<stroke android:width="0dp"
|
||||
android:color="#FFFFFF"/>
|
||||
<solid
|
||||
android:color="#BF000000"/>
|
||||
<corners
|
||||
android:bottomLeftRadius="00dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topLeftRadius="00dp"
|
||||
android:topRightRadius="0dp" />
|
||||
</shape>
|
39
app/src/main/res/drawable/button_left.xml
Normal file
39
app/src/main/res/drawable/button_left.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="0"
|
||||
android:endColor="@color/purple_200"
|
||||
android:startColor="#0088FF" />
|
||||
<corners
|
||||
android:bottomLeftRadius="20dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topLeftRadius="20dp"
|
||||
android:topRightRadius="0dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
android:left="2dp"
|
||||
android:right="2dp"
|
||||
android:top="2dp">
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="@color/black"
|
||||
android:startColor="@color/black" />
|
||||
<corners
|
||||
android:bottomLeftRadius="20dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topLeftRadius="20dp"
|
||||
android:topRightRadius="0dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
39
app/src/main/res/drawable/button_middle.xml
Normal file
39
app/src/main/res/drawable/button_middle.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="@color/purple_200"
|
||||
android:startColor="@color/teal_200" />
|
||||
<corners
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topLeftRadius="0dp"
|
||||
android:topRightRadius="0dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
android:left="2dp"
|
||||
android:right="2dp"
|
||||
android:top="2dp">
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="@color/black"
|
||||
android:startColor="@color/black" />
|
||||
<corners
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topLeftRadius="0dp"
|
||||
android:topRightRadius="0dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
39
app/src/main/res/drawable/button_right.xml
Normal file
39
app/src/main/res/drawable/button_right.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="@color/purple_200"
|
||||
android:startColor="#0088FF" />
|
||||
<corners
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="20dp"
|
||||
android:topLeftRadius="0dp"
|
||||
android:topRightRadius="20dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
android:left="2dp"
|
||||
android:right="2dp"
|
||||
android:top="2dp">
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="@color/black"
|
||||
android:startColor="@color/black" />
|
||||
<corners
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="20dp"
|
||||
android:topLeftRadius="0dp"
|
||||
android:topRightRadius="20dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
39
app/src/main/res/drawable/button_round.xml
Normal file
39
app/src/main/res/drawable/button_round.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="@color/purple_200"
|
||||
android:startColor="#0088FF" />
|
||||
<corners
|
||||
android:bottomLeftRadius="20dp"
|
||||
android:bottomRightRadius="20dp"
|
||||
android:topLeftRadius="20dp"
|
||||
android:topRightRadius="20dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
android:left="2dp"
|
||||
android:right="2dp"
|
||||
android:top="2dp">
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="@color/black"
|
||||
android:startColor="@color/black" />
|
||||
<corners
|
||||
android:bottomLeftRadius="20dp"
|
||||
android:bottomRightRadius="20dp"
|
||||
android:topLeftRadius="20dp"
|
||||
android:topRightRadius="20dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
9
app/src/main/res/drawable/copyright_black_24dp.xml
Normal file
9
app/src/main/res/drawable/copyright_black_24dp.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M10.08,10.86c0.05,-0.33 0.16,-0.62 0.3,-0.87s0.34,-0.46 0.59,-0.62c0.24,-0.15 0.54,-0.22 0.91,-0.23 0.23,0.01 0.44,0.05 0.63,0.13 0.2,0.09 0.38,0.21 0.52,0.36s0.25,0.33 0.34,0.53 0.13,0.42 0.14,0.64h1.79c-0.02,-0.47 -0.11,-0.9 -0.28,-1.29s-0.4,-0.73 -0.7,-1.01 -0.66,-0.5 -1.08,-0.66 -0.88,-0.23 -1.39,-0.23c-0.65,0 -1.22,0.11 -1.7,0.34s-0.88,0.53 -1.2,0.92 -0.56,0.84 -0.71,1.36S8,11.29 8,11.87v0.27c0,0.58 0.08,1.12 0.23,1.64s0.39,0.97 0.71,1.35 0.72,0.69 1.2,0.91c0.48,0.22 1.05,0.34 1.7,0.34 0.47,0 0.91,-0.08 1.32,-0.23s0.77,-0.36 1.08,-0.63 0.56,-0.58 0.74,-0.94 0.29,-0.74 0.3,-1.15h-1.79c-0.01,0.21 -0.06,0.4 -0.15,0.58s-0.21,0.33 -0.36,0.46 -0.32,0.23 -0.52,0.3c-0.19,0.07 -0.39,0.09 -0.6,0.1 -0.36,-0.01 -0.66,-0.08 -0.89,-0.23 -0.25,-0.16 -0.45,-0.37 -0.59,-0.62s-0.25,-0.55 -0.3,-0.88 -0.08,-0.67 -0.08,-1v-0.27c0,-0.35 0.03,-0.68 0.08,-1.01zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
BIN
app/src/main/res/drawable/graphite_raw.png
Normal file
BIN
app/src/main/res/drawable/graphite_raw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
14
app/src/main/res/drawable/shape.xml
Normal file
14
app/src/main/res/drawable/shape.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<stroke android:width="2dp"
|
||||
android:color="#FFFFFF"/>
|
||||
<gradient
|
||||
android:angle="225"
|
||||
android:startColor="#DD2ECCFA"
|
||||
android:endColor="#DD000000"/>
|
||||
<corners
|
||||
android:bottomLeftRadius="20dp"
|
||||
android:bottomRightRadius="20dp"
|
||||
android:topLeftRadius="20dp"
|
||||
android:topRightRadius="20dp" />
|
||||
</shape>
|
39
app/src/main/res/drawable/toolbartop.xml
Normal file
39
app/src/main/res/drawable/toolbartop.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="@color/purple_200"
|
||||
android:startColor="#0088FF" />
|
||||
<corners
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="00dp"
|
||||
android:topLeftRadius="0dp"
|
||||
android:topRightRadius="00dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
android:left="0dp"
|
||||
android:right="0dp"
|
||||
android:top="0dp">
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:width="0dp"
|
||||
android:color="#FFFFFF" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="@color/black"
|
||||
android:startColor="@color/black" />
|
||||
<corners
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topLeftRadius="0dp"
|
||||
android:topRightRadius="0dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
@ -4,110 +4,283 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:clickable="true"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.Credits.CreditsFragment">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/Background"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/background"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.0"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@drawable/backgroundalpha"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/backgroundalpha"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/Background"
|
||||
app:layout_constraintEnd_toEndOf="@+id/cooperation"
|
||||
app:layout_constraintStart_toStartOf="@+id/MatzeZ"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/madeby"
|
||||
android:layout_width="193dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_marginTop="250dp"
|
||||
android:id="@+id/lizenz"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="25dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="made by"
|
||||
android:text="LIZENZ"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider6" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lizenz2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableStart="@drawable/copyright_black_24dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="ALL RIGHTS RESERVED"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/lizenz" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/programmcode"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="25dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="PROGRAMMCODE"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider9" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/programmcode2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="www.github.com"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/programmcode" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/team"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="75dp"
|
||||
android:layout_marginLeft="75dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="TEAM"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider5" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mail"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="WEBSITE: jg-cody.de/teraplex"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.497"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/mail2" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mail2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="MAIL TO: info@jg-cody.de"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintStart_toStartOf="@+id/mail"
|
||||
app:layout_constraintTop_toBottomOf="@+id/contact2" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/contact2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="25dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="KONTAKT"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider7" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/TERAPLEX_Version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="100dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="TERAPLEX v1.1.1"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/design_default_color_on_primary"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.498"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/supportedby"
|
||||
android:layout_width="193dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_marginTop="150dp"
|
||||
android:id="@+id/cooperation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="25dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="supported by"
|
||||
android:text="IN KOOPERATION WITH"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/madeby" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider5" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/MatzeZ"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="Matze Z."
|
||||
android:text="Julian G. | Matze Z."
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toStartOf="@+id/JulianG"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/madeby" />
|
||||
app:layout_constraintEnd_toEndOf="@+id/julianG"
|
||||
app:layout_constraintStart_toStartOf="@+id/julianG"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView3" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/JulianG"
|
||||
android:id="@+id/JulianK"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="Julian G."
|
||||
android:text="Julian K."
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/MatzeZ"
|
||||
app:layout_constraintTop_toBottomOf="@+id/madeby" />
|
||||
app:layout_constraintEnd_toEndOf="@+id/imageView5"
|
||||
app:layout_constraintHorizontal_bias="0.483"
|
||||
app:layout_constraintStart_toStartOf="@+id/imageView5"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView5" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/julianG"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="jg-cody.de"
|
||||
android:text="www.jg-cody.de"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/MatzeZ"
|
||||
app:layout_constraintTop_toBottomOf="@+id/JulianG" />
|
||||
app:layout_constraintEnd_toEndOf="@+id/imageView3"
|
||||
app:layout_constraintStart_toStartOf="@+id/imageView3"
|
||||
app:layout_constraintTop_toBottomOf="@+id/team" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/supporter1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="graphite-official.de"
|
||||
android:text="www.graphite-official.de"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.509"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/supportedby" />
|
||||
app:layout_constraintEnd_toEndOf="@+id/cooperation"
|
||||
app:layout_constraintStart_toStartOf="@+id/cooperation"
|
||||
app:layout_constraintTop_toBottomOf="@+id/cooperation" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView3"
|
||||
android:layout_width="117dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_width="130dp"
|
||||
android:layout_height="50dp"
|
||||
android:src="@drawable/jg_cody_white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/MatzeZ"
|
||||
app:layout_constraintEnd_toEndOf="@+id/team"
|
||||
app:layout_constraintStart_toStartOf="@+id/team"
|
||||
app:layout_constraintTop_toBottomOf="@+id/julianG" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView5"
|
||||
android:layout_width="130dp"
|
||||
android:layout_height="50dp"
|
||||
android:src="@drawable/graphite_raw"
|
||||
app:layout_constraintEnd_toEndOf="@+id/supporter1"
|
||||
app:layout_constraintStart_toStartOf="@+id/supporter1"
|
||||
app:layout_constraintTop_toBottomOf="@+id/supporter1" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider5"
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/programmcode2" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider6"
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/TERAPLEX_Version" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider7"
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/lizenz2" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider9"
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/mail" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -4,180 +4,263 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:clickable="true"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.Einstellungen.EinstellungenFragment">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/Background"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/background"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.0" />
|
||||
|
||||
<ImageView
|
||||
android:id="@drawable/backgroundalpha"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="-25dp"
|
||||
android:layout_marginLeft="-25dp"
|
||||
android:layout_marginTop="-25dp"
|
||||
android:layout_marginEnd="-25dp"
|
||||
android:layout_marginRight="-25dp"
|
||||
android:layout_marginBottom="-25dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/backgroundalpha"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/button_blue"
|
||||
app:layout_constraintEnd_toEndOf="@+id/button_colorpicker"
|
||||
app:layout_constraintStart_toStartOf="@+id/colors"
|
||||
app:layout_constraintTop_toTopOf="@+id/button_colorpicker" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/background"
|
||||
android:layout_width="193dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="50dp"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/hintergrund"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="20dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/colors" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider2" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/colors"
|
||||
android:layout_width="193dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="50dp"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:layout_marginTop="75dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/farben"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="20dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider2"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sprache"
|
||||
android:layout_width="193dp"
|
||||
android:layout_height="33dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="50dp"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/sprache"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="20dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/reset_settings"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider3"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/background" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reset_settings"
|
||||
android:layout_width="225dp"
|
||||
android:layout_height="51dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="50dp"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/einstellungen_zurücksetzen"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="20dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider4"
|
||||
app:layout_constraintStart_toStartOf="@+id/Background"
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider3" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nightmode"
|
||||
android:layout_width="219dp"
|
||||
android:layout_height="31dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="50dp"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/farbschema"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="20dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_reset" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider4" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_reset"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="50dp"
|
||||
android:layout_marginRight="50dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:text="@string/button_zurücksetzen"
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider4"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.498"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/reset_settings" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider3" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_colorpicker"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginTop="85dp"
|
||||
android:layout_marginEnd="50dp"
|
||||
android:layout_marginRight="50dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:text="COLORPICKER"
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider2"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/colors" />
|
||||
app:layout_constraintTop_toTopOf="@+id/Background" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_language"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="50dp"
|
||||
android:layout_marginRight="50dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:text="@string/sprache"
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider3"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/sprache" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_pickimage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="50dp"
|
||||
android:layout_marginRight="50dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:text="@string/button_hintergrund_wählen"
|
||||
app:layout_constraintBottom_toTopOf="@+id/sprache"
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.498"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/background" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider2" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_green"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="75dp"
|
||||
android:layout_marginLeft="75dp"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="50dp"
|
||||
android:layout_marginRight="50dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:text="@string/grün"
|
||||
app:backgroundTint="#00FF0A"
|
||||
app:layout_constraintEnd_toStartOf="@+id/button_yellow"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_blue" />
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_yellow" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_yellow"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="75dp"
|
||||
android:layout_marginRight="75dp"
|
||||
android:layout_marginEnd="50dp"
|
||||
android:layout_marginRight="50dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:text="@string/gelb"
|
||||
android:textColor="#000000"
|
||||
app:backgroundTint="#FFE500"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/button_green"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_red" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_red"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="75dp"
|
||||
android:layout_marginRight="75dp"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="50dp"
|
||||
android:layout_marginRight="50dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:text="@string/rot"
|
||||
app:backgroundTint="#FF0000"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/button_blue"
|
||||
app:layout_constraintTop_toBottomOf="@+id/nightmode" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider4" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_blue"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="75dp"
|
||||
android:layout_marginLeft="75dp"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="50dp"
|
||||
android:layout_marginRight="50dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:text="@string/blau"
|
||||
app:backgroundTint="#008EFF"
|
||||
app:layout_constraintEnd_toStartOf="@+id/button_red"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_green" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider"
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_pickimage"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/divider2"
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/nightmode" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_colorpicker" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider3"
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_language"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/divider4"
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_reset" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -5,12 +5,13 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:clickable="true"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/Background"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/background"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
@ -4,13 +4,15 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:clickable="true"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.home.HomeFragment">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/Background"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="#80FFFFFF"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/background"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
@ -20,6 +22,21 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.0" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@drawable/backgroundalpha"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginBottom="-25dp"
|
||||
android:layout_marginLeft="-25dp"
|
||||
android:layout_marginRight="-25dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/button_round"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/logoutButton"
|
||||
app:layout_constraintEnd_toEndOf="@+id/ipInput"
|
||||
app:layout_constraintStart_toStartOf="@+id/ipInput"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_home"
|
||||
android:layout_width="309dp"
|
||||
@ -95,91 +112,130 @@
|
||||
|
||||
<Button
|
||||
android:id="@+id/loginButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:drawableLeft="@drawable/login_24px"
|
||||
android:drawableTint="@color/mtrl_btn_text_color_selector"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/login"
|
||||
app:icon="@drawable/login_24px"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintStart_toStartOf="@+id/loginpasswordInput"
|
||||
app:layout_constraintTop_toBottomOf="@+id/loginpasswordInput" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/logoutButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:drawableRight="@drawable/logout_24px"
|
||||
android:drawableTint="@color/mtrl_btn_text_color_selector"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/logout"
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintEnd_toEndOf="@+id/loginpasswordInput"
|
||||
app:layout_constraintTop_toBottomOf="@+id/loginpasswordInput" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/wlan_an"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:background="@drawable/button_right"
|
||||
android:drawableRight="@drawable/signal_wifi_statusbar_4_bar_24px"
|
||||
android:drawableTint="@color/mtrl_btn_text_color_selector"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/an"
|
||||
app:icon="@drawable/signal_wifi_statusbar_4_bar_24px"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/wlan_aus"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView5" />
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView5"
|
||||
app:layout_constraintStart_toEndOf="@+id/textView5"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView5" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/kodian"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:background="@drawable/button_right"
|
||||
android:drawableRight="@drawable/kodi"
|
||||
android:drawableTint="@color/mtrl_btn_text_color_selector"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/an"
|
||||
app:icon="@drawable/kodi"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.483"
|
||||
app:layout_constraintStart_toEndOf="@+id/wlan_aus"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView7" />
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView7"
|
||||
app:layout_constraintStart_toEndOf="@+id/textView7"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView7" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/wlan_aus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:background="@drawable/button_left"
|
||||
android:drawableLeft="@drawable/signal_wifi_off_24px"
|
||||
android:drawableTint="@color/mtrl_btn_text_color_selector"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/aus"
|
||||
app:icon="@drawable/signal_wifi_off_24px"
|
||||
app:layout_constraintEnd_toStartOf="@+id/wlan_an"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView5" />
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView5"
|
||||
app:layout_constraintEnd_toStartOf="@+id/textView5"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView5" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/kodiaus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:background="@drawable/button_left"
|
||||
android:drawableLeft="@drawable/kodi_aus_1_"
|
||||
android:drawableTint="@color/mtrl_btn_text_color_selector"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/aus"
|
||||
app:icon="@drawable/kodi_aus_1_"
|
||||
app:layout_constraintEnd_toStartOf="@+id/wlan_an"
|
||||
app:layout_constraintHorizontal_bias="0.496"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView7" />
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView7"
|
||||
app:layout_constraintEnd_toStartOf="@+id/textView7"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView7" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView5"
|
||||
android:layout_width="376dp"
|
||||
android:layout_height="28dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:background="@drawable/button_middle"
|
||||
android:gravity="center"
|
||||
android:text="@string/wlan"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textColor="@color/mtrl_btn_text_color_selector"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/textView7"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.485"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/loginButton"
|
||||
app:layout_constraintVertical_bias="0.333" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/loginButton" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView7"
|
||||
android:layout_width="376dp"
|
||||
android:layout_height="28dp"
|
||||
android:layout_marginBottom="116dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:background="@drawable/button_middle"
|
||||
android:gravity="center"
|
||||
android:text="@string/kodi"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textColor="@color/mtrl_btn_text_color_selector"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.485"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView5" />
|
||||
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
@ -4,13 +4,14 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:clickable="true"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.Konsole.KonsoleFragment">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/Background"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/background"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
@ -20,14 +21,34 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.0" />
|
||||
|
||||
<ImageView
|
||||
android:id="@drawable/backgroundalpha"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="-25dp"
|
||||
android:layout_marginLeft="-25dp"
|
||||
android:layout_marginEnd="-25dp"
|
||||
android:layout_marginRight="-25dp"
|
||||
android:layout_marginBottom="-25dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/backgroundalpha"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/shutdown"
|
||||
app:layout_constraintEnd_toEndOf="@+id/Serverbefehle"
|
||||
app:layout_constraintStart_toStartOf="@+id/Serverbefehle"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/shutdown"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:background="@drawable/button_right"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/shutdown"
|
||||
app:backgroundTint="@null"
|
||||
app:icon="@drawable/power_settings_new_24px"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="@+id/Serverbefehle"
|
||||
app:layout_constraintStart_toEndOf="@+id/reboot"
|
||||
app:layout_constraintTop_toBottomOf="@+id/Serverbefehle" />
|
||||
|
||||
@ -35,11 +56,13 @@
|
||||
android:id="@+id/reboot"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/button_left"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/reboot"
|
||||
app:backgroundTint="@null"
|
||||
app:icon="@drawable/restart_alt_24px"
|
||||
app:layout_constraintEnd_toStartOf="@+id/shutdown"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toStartOf="@+id/Serverbefehle"
|
||||
app:layout_constraintTop_toBottomOf="@+id/Serverbefehle" />
|
||||
|
||||
<EditText
|
||||
@ -53,7 +76,7 @@
|
||||
android:textColorHint="#FFFFFF"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.497"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
@ -72,7 +95,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/Serverbefehle"
|
||||
android:layout_width="253dp"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="100dp"
|
||||
android:gravity="center_horizontal"
|
||||
@ -86,20 +109,23 @@
|
||||
|
||||
<Button
|
||||
android:id="@+id/SendCommandButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/button_round"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/button_send_command"
|
||||
app:backgroundTint="@null"
|
||||
app:icon="@drawable/send_24px"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="@+id/befehlInput"
|
||||
app:layout_constraintStart_toStartOf="@+id/befehlInput"
|
||||
app:layout_constraintTop_toBottomOf="@+id/befehlInput" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView2"
|
||||
android:layout_width="209dp"
|
||||
android:layout_height="223dp"
|
||||
android:src="@drawable/spinning_logo"
|
||||
android:layout_width="424dp"
|
||||
android:layout_height="293dp"
|
||||
android:layout_marginTop="100dp"
|
||||
android:src="@drawable/teraplex_sidebar"
|
||||
app:layout_constraintBottom_toTopOf="@+id/textView6"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
@ -4,13 +4,14 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:clickable="true"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.kueche.KuecheFragment">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/Background"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/background"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
@ -4,13 +4,14 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:clickable="true"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.Schlafzimmer.SchlafzimmerFragment">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/Background"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/background"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
@ -106,8 +107,8 @@
|
||||
|
||||
<Button
|
||||
android:id="@+id/schlafzimmeru1aus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="87dp"
|
||||
android:layout_height="56dp"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="AUS"
|
||||
app:layout_constraintEnd_toStartOf="@+id/schlafzimmeru1an"
|
||||
@ -124,18 +125,4 @@
|
||||
app:layout_constraintStart_toEndOf="@+id/schlafzimmeru1aus"
|
||||
app:layout_constraintTop_toBottomOf="@+id/schlafzimmeru1" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_schlafzimmer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -4,13 +4,14 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:clickable="true"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.zeitsteuerung.ZeitsteuerungFragment">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/Background"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/background"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
@ -67,23 +68,24 @@
|
||||
android:id="@+id/sendtimedcommand"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/button_round"
|
||||
android:hapticFeedbackEnabled="true"
|
||||
android:text="@string/send_timed_command"
|
||||
app:icon="@drawable/send_24px"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="@+id/befehlInput2"
|
||||
app:layout_constraintStart_toStartOf="@+id/befehlInput2"
|
||||
app:layout_constraintTop_toBottomOf="@+id/befehlInput2" />
|
||||
|
||||
<TimePicker
|
||||
android:id="@+id/timePicker"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:amPmTextColor="#FFFFFF"
|
||||
android:amPmTextColor="@color/white"
|
||||
android:numbersSelectorColor="@color/white"
|
||||
android:timePickerMode="spinner"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.496"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
@ -18,10 +18,10 @@
|
||||
android:title="@string/menu_einstellungen"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/credits"
|
||||
android:id="@+id/über"
|
||||
android:onClick="menurighttopcredits"
|
||||
android:orderInCategory="100"
|
||||
android:title="@string/menu_credits"
|
||||
android:title="@string/menu_über"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/exit"
|
||||
@ -31,11 +31,4 @@
|
||||
android:title="@string/menu_schliessen"
|
||||
app:iconTint="?attr/colorOnPrimary"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/logout"
|
||||
android:icon="@drawable/ic_menu_share"
|
||||
android:onClick="menurighttoplogout"
|
||||
android:orderInCategory="100"
|
||||
android:title="@string/menu_logout"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
@ -49,8 +49,8 @@
|
||||
tools:layout="@layout/fragment_flur" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/nav_credits"
|
||||
android:id="@+id/nav_über"
|
||||
android:name="de.jg_cody.Teraplex.ui.Credits.CreditsFragment"
|
||||
android:label="@string/menu_credits"
|
||||
android:label="@string/menu_über"
|
||||
tools:layout="@layout/fragment_credits" />
|
||||
</navigation>
|
@ -18,6 +18,7 @@
|
||||
<string name="login_benutzername">USERNAME</string>
|
||||
<string name="login_passwort">PASSWORD</string>
|
||||
<string name="login">LOGIN</string>
|
||||
<string name="logout">LOGOUT</string>
|
||||
<string name="wlan">WLAN</string>
|
||||
<string name="kodi">KODI</string>
|
||||
<string name="aus">OFF</string>
|
||||
@ -63,7 +64,7 @@
|
||||
|
||||
<string name="menu_einstellungen">SETTINGS</string>
|
||||
<string name="menu_frage">QUESTION</string>
|
||||
<string name="menu_credits">CREDITS</string>
|
||||
<string name="menu_über">ÜBER</string>
|
||||
<string name="menu_logout">LOGOUT</string>
|
||||
<string name="menu_sprache">LANGUAGE</string>
|
||||
<string name="menu_schliessen">CLOSE</string>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.Teraplex" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_500</item>
|
||||
<item name="colorPrimary">@color/teal_200</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorOnPrimary">@color/black</item>
|
||||
<!-- Secondary brand color. -->
|
||||
|
Loading…
Reference in New Issue
Block a user