This file contains hidden or 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
private lateinit var binding: ActivitySplashBinding | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
binding = ActivityAwesomeBinding.inflate(layoutInflater) | |
binding.title.text = "Hello" | |
binding.subtext.text = "Concise, safe code" | |
binding.button.setOnClickListener { /* ... */ } |
This file contains hidden or 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 HomeFragment : Fragment() { | |
private var binding: FragmentHomeBinding? = null | |
override fun onCreateView( | |
inflater: LayoutInflater, | |
container: ViewGroup?, | |
savedInstanceState: Bundle? | |
): View? { | |
binding = FragmentHomeBinding.inflate(inflater, container, false) |
This file contains hidden or 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
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder { | |
val binding = ItemRowBinding.inflate(LayoutInflater.from(parent.context), parent, false) | |
return ItemViewHolder(binding) | |
} |
This file contains hidden or 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
<LinearLayout | |
... | |
tools:viewBindingIgnore="true" > | |
... | |
</LinearLayout> |
This file contains hidden or 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
override fun onDestroy() { | |
super.onDestroy() | |
binding = null | |
} |
This file contains hidden or 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
flavorDimensions "version" | |
productFlavors { | |
admin { | |
applicationId "com.example.admin" | |
applicationIdSuffix ".debug" | |
} | |
customer { | |
applicationId "com.example.customer" |
This file contains hidden or 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
defaultConfig { | |
applicationId "com.example.myapp" | |
minSdkVersion 19 | |
targetSdkVersion 30 | |
versionCode 1 | |
versionName "1.0" | |
} |
This file contains hidden or 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
flavorDimensions "version" | |
productFlavors{ | |
admin { | |
applicationId "com.example.admin" | |
applicationIdSuffix ".debug" | |
minSdkVersion 23 | |
versionName "1.23" | |
versionCode 2 | |
targetSdkVersion 30 |
This file contains hidden or 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
flavorDimensions "version" | |
productFlavors{ | |
admin { | |
applicationId "com.example.admin" | |
applicationIdSuffix ".debug" | |
minSdkVersion 23 | |
versionName "1.23" | |
versionCode 2 | |
targetSdkVersion 30 |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.myapp"> | |
<application | |
android:allowBackup="true" | |
android:icon="${appIcon}" | |
android:label="@string/APP_NAME" | |
android:roundIcon="${appIconRound}" | |
android:supportsRtl="true" |