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 kg.weathertest | |
import android.appwidget.AppWidgetManager | |
import android.appwidget.AppWidgetProvider | |
import android.content.Context | |
import android.content.Intent | |
import android.widget.RemoteViews | |
class WeatherWidgetProvider : AppWidgetProvider() { |
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 kg.weathertest | |
import android.appwidget.AppWidgetManager | |
import android.content.ComponentName | |
import android.content.Context | |
import android.content.Intent | |
import android.content.pm.PackageManager | |
import android.location.Location | |
import android.os.Bundle | |
import android.os.Looper |
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
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout 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" | |
tools:context=".MainActivity"> | |
<com.google.android.material.appbar.AppBarLayout | |
android:layout_width="match_parent" |
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 Solution { | |
// Hash table that takes care of the mappings. | |
private HashMap<Character, Character> mappings; | |
// Initialize hash map with mappings. This simply makes the code easier to read. | |
public Solution() { | |
this.mappings = new HashMap<Character, Character>(); | |
this.mappings.put(')', '('); | |
this.mappings.put('}', '{'); |
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 me.sample | |
import android.content.Context | |
import androidx.multidex.MultiDex | |
import androidx.multidex.MultiDexApplication | |
import com.facebook.drawee.backends.pipeline.Fresco | |
import com.facebook.imagepipeline.core.ImagePipelineConfig | |
import com.facebook.stetho.Stetho | |
import com.treebo.internetavailabilitychecker.InternetAvailabilityChecker | |
import me.sample.auth.authModule |
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.example.db.dao | |
import androidx.room.Dao | |
import androidx.room.Insert | |
import androidx.room.OnConflictStrategy | |
import androidx.room.Query | |
import com.example.model.Account | |
@Dao | |
interface AccountDao { |
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 me.sample | |
import android.animation.Animator | |
import android.content.Intent | |
import android.os.Bundle | |
import android.view.MenuItem | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.fragment.app.DialogFragment | |
import androidx.fragment.app.Fragment | |
import androidx.lifecycle.Observer |
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.example.db | |
import androidx.room.Database | |
import androidx.room.RoomDatabase | |
import androidx.room.TypeConverters | |
import com.example.db.dao.* | |
import com.example.model.* | |
@Database(entities = [ |
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 io.example.auth.register | |
import io.example.base.BaseViewModel | |
import io.example.extensions.load | |
import io.example.model.Contact | |
import io.example.network.Api | |
import io.example.network.Result | |
class RegisterViewModel( | |
private val api: Api |
NewerOlder