Android : Making Fragment as Translucent

26 views
0

My designer provided me the screen as,

Mobile -> Transaction Screen

Tablet -> Transaction Screen as a Dialog.

TransactionFragment(extends Fragment) has 2000+ lines of code. How can I re use this TransactionFragment class for Tablet, without extending it to DialogFragment.

I tried applying translucent theme for TransactionFragment and it didn’t work out.

Is there any suggestions to show TransactionFragment as a Dialog for a Tablet?