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"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | |
<item> | |
<shape android:shape="rectangle"> | |
<stroke android:width="2dp" android:color="#FFFFFFFF" /> | |
<corners | |
android:bottomRightRadius="6dp" | |
android:bottomLeftRadius="6dp" | |
android:topLeftRadius="6dp" |
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
import android.os.SystemClock; | |
import android.view.View; | |
import java.util.Map; | |
import java.util.WeakHashMap; | |
/** | |
* A Debounced OnClickListener | |
* Rejects clicks that are too close together in time. | |
* This class is safe to use as an OnClickListener for multiple views, and will debounce each one separately. |
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 CustomTextView @JvmOverloads constructor( | |
context: Context, | |
attrs: AttributeSet? = null, | |
defStyleAttr: Int = 0 | |
) : AppCompatTextView(context, attrs, defStyleAttr), ThemeChangeListener { | |
override fun onAttachedToWindow() { | |
super.onAttachedToWindow() | |
AdmiralUI.addListener(this) | |
} |
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
private void updateView(int blockPosition, boolean needPlaceHolder) { | |
Block block = blocks.get(blockPosition); | |
String imageUrl = block.getView() == null ? null : block.getView().getImageUrl(); | |
String title = block.getView() == null ? null : (block.getView().getTitle()); | |
String description = block.getView() == null ? null : block.getView().getDescription(); | |
String padding = "\n\n"; | |
if (title == null) { | |
title = ""; |
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
import android.content.Context; | |
import android.support.v4.view.ViewPager; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
/** | |
* ViewPager that blocks swiping if contains other swiping view. | |
*/ | |
public class HackyViewPager extends ViewPager { |
Перед собеседованием HR проводит небольшой телефонный скрининг: https://forms.gle/GJFp2aii2sTaTLZc9
Вопросы:
- Какие методы класса Object ты знаешь и зачем они нужны?