This is a simple wrapper View for the new TextInputLayout from Design Library.
Normaly you use the TextInputLayout like this
| class PeekingLinearLayoutManager : LinearLayoutManager { | |
| @Suppress("Unused") | |
| @JvmOverloads | |
| constructor(context: Context?, @RecyclerView.Orientation orientation: Int = RecyclerView.VERTICAL, reverseLayout: Boolean = false) : super(context, orientation, reverseLayout) | |
| @Suppress("Unused") | |
| constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int) : super(context, attrs, defStyleAttr, defStyleRes) | |
| override fun generateDefaultLayoutParams() = | |
| scaledLayoutParams(super.generateDefaultLayoutParams()) |
| package com.exmample.utils; | |
| import android.app.Dialog; | |
| import android.content.Context; | |
| import android.graphics.Color; | |
| import android.graphics.drawable.ColorDrawable; | |
| import android.view.Gravity; | |
| import android.view.Window; | |
| import android.view.WindowManager.LayoutParams; |
| /* | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2016 Raphaรซl Bussa | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| <!-- | |
| 2015.10.29 | |
| Hong SeongChan (seongchan116@gmail.com) | |
| ------------------------------------------- | |
| ๋ชจ๋ฐ์ผ ์น ํ์ด์์ ๊ฐ๋ฐํ๊ณ ์๋ ์ฑ์ด ์คํ์ด ์๋๊ธธ๋ ์ํ์ฝ๋๋ฅผ ์์ฑํด ๋ด. | |
| ์ด ์์ค์ ์ ์ ์กฐ๊ฑด์ uri scheme ๋ฐฉ์์ด ์ ์ฉ๋ ์ฑ์ ๊ธฐ์ค์ผ๋ก ํ๋ค. | |
| Android ์ฑ์ ๊ฒฝ์ฐ intent๋ฅผ ์ด์ฉํ ๋ฐฉ์์ ์ฃผ๋ก ์ฌ์ฉํ๊ฒ ์ง๋ง, ๋ชจ๋ฐ์ผ ์น์ ๊ณ ๋ คํ๋ค๋ฉด uri scheme์ ์ ์ฉํ๋๊ฒ ์ ๋ฆฌํ๋ค. | |
| (์น์ชฝ ์ฝ๋๊ฐ ๋จ์ํด ์ง๋ค.) | |
| ์๋ ์ฝ๋๋ ์ด๋ฌํ ์ ์ ๋ก ์์ฑ๋์๋ค. | |
| --> |
| MIT License | |
| Copyright (c) 2020 Jan Heinrich Reimer | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
This is a simple wrapper View for the new TextInputLayout from Design Library.
Normaly you use the TextInputLayout like this
| import rx.Observable; | |
| import rx.Subscriber; | |
| import rx.functions.Action0; | |
| import rx.subscriptions.CompositeSubscription; | |
| import rx.subscriptions.Subscriptions; | |
| public class SubscriptionUtils { | |
| /** | |
| * Automatically adds to / removes from specified {@link CompositeSubscription} when subscribe / unsubscribe is called. | |
| * Useful when subscribing observable repeatedly, as you do not need to manipulate CompositeSubscription manually. |
| <?xml version="1.0" encoding="utf-8"?><!-- | |
| ~ Copyright (C) 2015 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 |
| /** | |
| * Text view that allows changing the letter spacing of the text. | |
| * | |
| * @author Pedro Barros (pedrobarros.dev at gmail.com) | |
| * @since May 7, 2013 | |
| */ | |
| public static class LetterSpacingTextView extends TextView { | |
| private float spacing = Spacing.NORMAL; | |
| private CharSequence originalText = ""; |