My question is that my navigation drawer toolbar hides behind the decoration of the profile activity. i looked through question like that and the only possible solutions i got were to change constraint layout to linear layout but without the constraints, i dont know how the inverted curved rectangle will hold up. Please help! profileActivity.xml `
Код: Выделить всё
` Код: Выделить всё
my drawer_base activity `
Код: Выделить всё
` package com.example.login_page_simple;
Код: Выделить всё
import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; //earlier it was public class ProfileActivity extends drawerbaseactivity public class ProfileActivity extends DrawerBaseActivity{ ActivityProfileBinding activityProfileBinding; TextView etRole, etEmail, etExId, etAdId, etName, etMob; ImageView imageView; SharedPrefMANAGER sharedPrefMANAGER; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); activityProfileBinding = ActivityProfileBinding.inflate(getLayoutInflater()); allocateActivityTitle("Profile"); setContentView(activityProfileBinding.getRoot()); etName = findViewById(R.id.nmTxt); etMob = findViewById(R.id.mobileTxt); //etRole= findViewById(R.id.roleTxt); etEmail = findViewById(R.id.emText); //etExId=findViewById(R.id.exIdTxt); //etAdId=findViewById(R.id.adminTxt); imageView = findViewById(R.id.Pic); sharedPrefMANAGER = new SharedPrefMANAGER(getApplicationContext()); etName.setText(sharedPrefMANAGER.getObj().getName()); etMob.setText(sharedPrefMANAGER.getObj().getMobile()); //etRole.setText(sharedPrefMANAGER.getObj().getRole()); etEmail.setText(sharedPrefMANAGER.getObj().getEmail()); //etExId.setText(sharedPrefMANAGER.getObj().getExam_id()); //etAdId.setText(sharedPrefMANAGER.getObj().getAdmin_id()); });` Источник: https://stackoverflow.com/questions/781 ... y-shows-up
Мобильная версия