This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DebugActivity : AppCompatActivity(R.layout.a_debug) | |
class DebugFragment : Fragment() { | |
override fun onCreateView( | |
inflater: LayoutInflater, | |
container: ViewGroup?, | |
savedInstanceState: Bundle? | |
) = ComposeView(requireContext()).apply { | |
setContent { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $symbol$ => defines a matcher for the identifier being replaced | |
import com.intellij.psi.impl.source.tree.java.PsiReferenceExpressionImpl as ReferenceExpression | |
import com.intellij.psi.impl.source.tree.java.PsiLocalVariableImpl as LocalVariable | |
import com.intellij.psi.impl.source.PsiFieldImpl as Field | |
symbol instanceof Field || symbol instanceof ReferenceExpression || symbol instanceof LocalVariable | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hellofresh.deeplinker | |
// This will map relative/absolute URLs with respective activities | |
interface SimpleDeepLinkInterface { | |
@DeepLink("user/login", "user/register") | |
fun provideLoginActivity(): LoginActivity | |
// we can request that some specific query parameters be included in the extras bundle | |
// we can even describe the type we'd like the extra presented as. Int in this case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Fragment; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
/** | |
* @author ADIO Kingsley O. | |
* @since 06 Jun, 2015 | |
*/ | |
public class BaseFragment extends Fragment { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.app.Fragment; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
/** | |
* @author ADIO Kingsley O. | |
* @since 06 Jun, 2015 | |
*/ | |
public class BaseFragment extends Fragment { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* An example of adding these transitions to a Fragment. This simple | |
* version just applies opposite transitions to any Fragment whether it is | |
* entering or exiting view. You can also inspect the transit mode parameter | |
* (i.e. TRANSIT_FRAGMENT_OPEN, TRANSIT_FRAGMENT_CLOSE) in combination to do | |
* different animations for, say, adding a fragment versus popping the back stack. | |
* | |
* Transactions without an explicit transit mode set, in this example, will not | |
* animate. Allowing the initial fragment add, for example, to simply appear. | |
*/ |