Skip to content

Instantly share code, notes, and snippets.

View cengiztoru's full-sized avatar
💻

Cengiz TORU cengiztoru

💻
View GitHub Profile
@cengiztoru
cengiztoru / activity_main.xml
Last active July 1, 2020 14:40
Navigation Architecture Component
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
tools:context=".ui.MainActivity">
<fragment
/**
* Code With 💗
* Created by Cengiz TORU
* cengiztoru@gmail.com
* 16/06/2020
*/
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
// Make sure this is before calling super.onCreate
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cengiztoru.splashscreenrightway">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<!-- Launcher theme. -->
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item android:drawable="@android:color/black" />
<item>
<bitmap
android:gravity="center"
android:src="@drawable/splash_company_logo" />
</item>
@cengiztoru
cengiztoru / Open Emulator
Created June 4, 2020 00:02
Open Emulator WithOut Opening Android Studio
@echo off
color a
title Open Emulator WithOut Opening Android Studio
cd C:\Users\USER_NAME (CHANGE HERE)\AppData\Local\Android\Sdk\emulator
echo *******************************************************************************
echo ------------------------ NOTE : DONT CLOSE THIS WINDOW ------------------------
echo *******************************************************************************