mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-15 06:22:49 +00:00
Enable a vertical scrollbar on the recycler view
This commit is contained in:
parent
6886a9b0f0
commit
4d425f5c68
3 changed files with 15 additions and 6 deletions
|
@ -36,6 +36,11 @@
|
||||||
android:name=".AddProfileActivity"
|
android:name=".AddProfileActivity"
|
||||||
android:theme="@style/AppTheme.TransparentActionBar">
|
android:theme="@style/AppTheme.TransparentActionBar">
|
||||||
</activity>
|
</activity>
|
||||||
|
<activity
|
||||||
|
android:name=".EditProfileActivity"
|
||||||
|
android:label="Edit profile"
|
||||||
|
android:theme="@style/AppTheme.TransparentActionBar">
|
||||||
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".IntroActivity"
|
android:name=".IntroActivity"
|
||||||
android:theme="@style/Theme.Intro"
|
android:theme="@style/Theme.Intro"
|
||||||
|
|
|
@ -34,10 +34,11 @@ public class MainActivity extends AegisActivity implements KeyProfileView.Listen
|
||||||
// activity request codes
|
// activity request codes
|
||||||
private static final int CODE_GET_KEYINFO = 0;
|
private static final int CODE_GET_KEYINFO = 0;
|
||||||
private static final int CODE_ADD_KEYINFO = 1;
|
private static final int CODE_ADD_KEYINFO = 1;
|
||||||
private static final int CODE_DO_INTRO = 2;
|
private static final int CODE_EDIT_KEYINFO = 2;
|
||||||
private static final int CODE_DECRYPT = 3;
|
private static final int CODE_DO_INTRO = 3;
|
||||||
private static final int CODE_IMPORT = 4;
|
private static final int CODE_DECRYPT = 4;
|
||||||
private static final int CODE_PREFERENCES = 5;
|
private static final int CODE_IMPORT = 5;
|
||||||
|
private static final int CODE_PREFERENCES = 6;
|
||||||
|
|
||||||
// permission request codes
|
// permission request codes
|
||||||
private static final int CODE_PERM_EXPORT = 0;
|
private static final int CODE_PERM_EXPORT = 0;
|
||||||
|
@ -414,7 +415,7 @@ public class MainActivity extends AegisActivity implements KeyProfileView.Listen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private BottomSheetDialog createBottomSheet(KeyProfile profile) {
|
private BottomSheetDialog createBottomSheet(final KeyProfile profile) {
|
||||||
View bottomSheetView = getLayoutInflater().inflate(R.layout.bottom_sheet_edit_profile, null);
|
View bottomSheetView = getLayoutInflater().inflate(R.layout.bottom_sheet_edit_profile, null);
|
||||||
LinearLayout copyLayout = bottomSheetView.findViewById(R.id.copy_button);
|
LinearLayout copyLayout = bottomSheetView.findViewById(R.id.copy_button);
|
||||||
LinearLayout deleteLayout = bottomSheetView.findViewById(R.id.delete_button);
|
LinearLayout deleteLayout = bottomSheetView.findViewById(R.id.delete_button);
|
||||||
|
@ -442,7 +443,9 @@ public class MainActivity extends AegisActivity implements KeyProfileView.Listen
|
||||||
|
|
||||||
editLayout.setOnClickListener(view -> {
|
editLayout.setOnClickListener(view -> {
|
||||||
bottomDialog.dismiss();
|
bottomDialog.dismiss();
|
||||||
Toast.makeText(this.getApplicationContext(), "Coming soon", Toast.LENGTH_SHORT).show();
|
Intent intent = new Intent(this, EditProfileActivity.class);
|
||||||
|
intent.putExtra("KeyProfile", profile);
|
||||||
|
startActivityForResult(intent, CODE_EDIT_KEYINFO);
|
||||||
});
|
});
|
||||||
|
|
||||||
return bottomDialog;
|
return bottomDialog;
|
||||||
|
|
|
@ -7,5 +7,6 @@
|
||||||
<android.support.v7.widget.RecyclerView
|
<android.support.v7.widget.RecyclerView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:scrollbars="vertical"
|
||||||
android:id="@+id/rvKeyProfiles"/>
|
android:id="@+id/rvKeyProfiles"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue