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 onCreateView( | |
inflater: LayoutInflater, | |
container: ViewGroup?, | |
savedInstanceState: Bundle? | |
): View? { | |
TrackingUtil(requireActivity()).track(TrackingUtil.Screens.Login) | |
return inflater.inflate(R.layout.fragment_login, 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
<?xml version="1.0" encoding="utf-8"?> | |
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
tools:context=".develop.mlkit.MLKitFragment" | |
android:fadeScrollbars="false"> | |
<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
<service | |
android:name=".JobScheduler" | |
android:exported="false"> | |
<intent-filter> | |
<action android:name="com.firebase.jobdispatcher.ACTION_EXECUTE" /> | |
</intent-filter> | |
</service> |
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
<provider | |
android:name="androidx.core.content.FileProvider" | |
android:authorities="${applicationId}.fileprovider" | |
android:grantUriPermissions="true" | |
android:exported="false"> | |
<meta-data | |
android:name="android.support.FILE_PROVIDER_PATHS" | |
android:resource="@xml/filepaths" /> | |
</provider> |
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
<a class="fa-stack fa-2x fa-fw" href="https://www.linkedin.com/in/jake-lee" target="_blank"> | |
<i class="fab fa-linkedin fa-2x"></i> | |
</a> | |
<a class="fa-stack fa-2x fa-fw" href="https://github.com/JakeSteam" target="_blank"> | |
<i class="fab fa-github-square fa-2x"></i> | |
</a> | |
<a class="fa-stack fa-2x fa-fw" href="https://www.reddit.com/user/JakeSteam/" target="_blank"> | |
<i class="fab fa-reddit-square fa-2x"></i> | |
</a> | |
<a class="fa-stack fa-2x fa-fw" href="https://facebook.com/Jake.L" target="_blank"> |
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
<TableRow | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@string/Label_Email" /> | |
<TextView | |
android:id="@+id/customer_email" |
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
interface ListPositioner { | |
val recyclerScrollKey: String | |
fun loadListPosition() | |
fun saveListPosition() | |
fun resetListPosition() | |
} |
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 ContentAdapter(private val rows: List<IRow>) : RecyclerView.Adapter<RecyclerView.ViewHolder>() { | |
interface IRow | |
class HeaderRow(val date: String, val title: String) : IRow | |
class MessageRow(val message: String) : IRow | |
class ColourRow(val colour: Int) : IRow | |
class HeaderViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { | |
val dateView: TextView = itemView.findViewById(R.id.date) | |
val titleView: TextView = itemView.findViewById(R.id.title) |
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 MainActivity: AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
this.supportFragmentManager | |
.beginTransaction() | |
.replace(R.id.fragment_frame, PrefsFragment()) | |
.commit() | |
} |
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
val prefHelper = PreferenceHelper(this) | |
val myBoolean = prefHelper.getBooleanPref(PreferenceHelper.BooleanPref.setting1) | |
prefHelper.setBooleanPref(PreferenceHelper.BooleanPref.setting1, false) | |
val myString = prefHelper.getStringPref(PreferenceHelper.StringPref.setting1) | |
prefHelper.setStringPref(PreferenceHelper.StringPref.setting1, "abc") |