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
| import android.support.annotation.Nullable; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.View; | |
| import butterknife.ButterKnife; | |
| /** | |
| * Created by brandon on 12/9/15. | |
| */ | |
| public abstract class ButterKnifeViewHolder<T> extends RecyclerView.ViewHolder { | |
| public ButterKnifeViewHolder(View itemView) { |
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
| actions=true | |
| ads=true | |
| analytics=true | |
| appindexing=true | |
| appstate=true | |
| auth=true | |
| cast=true | |
| common=true | |
| drive=false | |
| dynamic=true |
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
| /* | |
| * Copyright (C) 2013 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| import java.util.ArrayList; | |
| import java.util.List; | |
| import android.content.Context; | |
| import android.graphics.Typeface; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.ArrayAdapter; | |
| import android.widget.TextView; |
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
| import com.google.android.material.tabs.TabLayout | |
| import com.google.android.material.tabs.TabLayout.OnTabSelectedListener | |
| import com.google.android.material.tabs.TabLayout.Tab | |
| inline fun TabLayout.doOnTabReselected( | |
| crossinline action: (tab: Tab?) -> Unit | |
| ) = addOnTabSelectedListener(onTabReselected = action) | |
| inline fun TabLayout.doOnTabUnselected( | |
| crossinline action: (tab: Tab?) -> Unit |
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
| extension UITextField { | |
| func underlined(){ | |
| let border = CALayer() | |
| let width = CGFloat(1.0) | |
| border.borderColor = UIColor.lightGrayColor().CGColor | |
| border.frame = CGRect(x: 0, y: self.frame.size.height - width, width: self.frame.size.width, height: self.frame.size.height) | |
| border.borderWidth = width | |
| self.layer.addSublayer(border) | |
| self.layer.masksToBounds = true |
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
| const { join, dirname } = require('path') | |
| const sharp = require('sharp') | |
| const { Storage } = require('@google-cloud/storage') | |
| const { promisify } = require('util') | |
| const pump = promisify(require('pump')) | |
| const gcs = new Storage() | |
| const SIZE = 128 | |
| const PREFIX = 'thumb@' |
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
| /* | |
| * Copyright 2016 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| package com.cgollner.unclouded.preferences; | |
| import android.annotation.TargetApi; | |
| import android.content.Context; | |
| import android.os.Build; | |
| import android.preference.CheckBoxPreference; | |
| import android.util.AttributeSet; | |
| import com.cgollner.unclouded.R; |
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"?> | |
| <android.support.v7.widget.SwitchCompat xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:id="@android:id/checkbox" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:background="@null" | |
| android:clickable="false" | |
| android:focusable="false" /> |
OlderNewer