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
| activity_main.xml: | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:gravity="center" | |
| android:orientation="vertical"> | |
| <Button |
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
| public class NewsDetailActivity extends AppCompatActivity implements View.OnClickListener { | |
| Activity activity; | |
| Toolbar toolbar; | |
| File TEMP_FILE_SAVE_PATH = Environment.getExternalStorageDirectory(); | |
| String TEMP_FILE_NAME = "news_"; | |
| String URL=""; | |
| private DownloadManager downloadManager; | |
| @Override |
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"?> | |
| <resources> | |
| <color name="white">#FFFFFF</color> | |
| <color name="ivory">#FFFFF0</color> | |
| <color name="light_yellow">#FFFFE0</color> | |
| <color name="yellow">#FFFF00</color> | |
| <color name="snow">#FFFAFA</color> | |
| <color name="floral_white">#FFFAF0</color> | |
| <color name="lemon_chiffon">#FFFACD</color> | |
| <color name="cornsilk">#FFF8DC</color> |
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 cc.cubone.turbo.ui.demo; | |
| import android.content.Context; | |
| import android.graphics.Color; | |
| import android.os.Build; | |
| import android.os.Bundle; | |
| import android.os.PersistableBundle; | |
| import android.support.annotation.ColorInt; | |
| import android.support.v4.view.GravityCompat; | |
| import android.support.v4.widget.DrawerLayout; |
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.app.Activity; | |
| import android.content.Context; | |
| import android.view.View; | |
| import android.view.inputmethod.InputMethodManager; | |
| /** | |
| * Utility methods for manipulating the onscreen keyboard | |
| */ | |
| public class KeyboardUtil { |
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 net.petrabarus.testandroid.dynamicdatabinding; | |
| import android.content.Context; | |
| import android.databinding.BindingAdapter; | |
| import android.databinding.InverseBindingAdapter; | |
| import android.databinding.InverseBindingListener; | |
| import android.databinding.InverseBindingMethod; | |
| import android.databinding.InverseBindingMethods; | |
| import android.databinding.Observable; | |
| import android.util.AttributeSet; |
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.app.Activity; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.pm.ResolveInfo; | |
| import android.content.res.AssetFileDescriptor; | |
| import android.database.Cursor; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapFactory; | |
| import android.graphics.Matrix; | |
| import android.media.ExifInterface; |
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
| <resources> | |
| <dimen name="text_xsmall">8sp</dimen> | |
| <dimen name="text_smaller">10sp</dimen> | |
| <dimen name="text_small">12sp</dimen> | |
| <dimen name="text_medium">14sp</dimen> | |
| <dimen name="text_large">16sp</dimen> | |
| <dimen name="text_larger">18sp</dimen> | |
| <dimen name="text_xlarge">20sp</dimen> | |
| <dimen name="text_xxlarge">22sp</dimen> |
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
| public interface IToolbarEventListener { | |
| void onNewTitle(String title); | |
| void onNewSubtitle(String subtitle); | |
| } |
NewerOlder