본문 바로가기

모바일개발(Mobile Dev)/안드로이드개발(Android)64

Preference Example Example 1Project: Tofu-Notes-master View SourceVote up6 votes@Override protected void onCreate(Bundle savedInstanceState) { //setTheme(Umlaut.getCurrentPreferencesTheme(this)); requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); addPreferencesFromResource(R.layout.preferences); OnPreferenceChangeListener listener = new Preference.OnPreferenceChangeListener() { @Ove.. 2016. 10. 2.
About PreferenceFragment with Toolbar package uk.verscreative.materialsettings; import android.media.Ringtone; import android.media.RingtoneManager; import android.preference.ListPreference; import android.preference.PreferenceActivity; import android.content.Context; import android.content.pm.PackageInfo; import android.preference.Preference; import android.app.NotificationManager; import android.preference.PreferenceManager; impor.. 2016. 10. 1.
PrefereceActivity SubActivity with Back Button (arrow) PreferenceActivity1.javapublic class PreferenceActivity1 extends android.preference.PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.pref1); } @Override protected void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); LinearLayout root = (LinearLayout)findViewBy.. 2016. 9. 25.
ActionBar and PreferenceActivity headers Written by https://xisberto.wordpress.com/2014/11/08/how-to-combine-actionbar-and-preferenceactivity-headers-with-appcompat/ How to combine ActionBar and PreferenceActivity headers with AppCompatUpdate: This is deprecated. Use the new AppCompatDelegate, it’s way better and easier. Follow the instructions on the Android Developers blog.Since the introduction of the Support libraries on Android, P.. 2016. 9. 18.
about status bar transparency android – Status bar transparency doesn't workQuestions & AnswersApr 13, 20166I am trying to make status bar transparent in my application using this code:getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); getWindow().setStatusBarColor(Color.TRANSPARENT); But it doesn’t work. Status bar j.. 2016. 9. 15.
Android UI : Fixing skipped frames taken from : Android UI : Fixing skipped framesAnyone who begins developing android application sees this message on logcat“Choreographer(abc): Skipped xx frames! The application may be doing too much work on its main thread.” So what does it actually means, why should you be concerned and how to solve it.What this means is that your code is taking long to process and frames are being skipped be.. 2016. 9. 11.
android upload example written by http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php?view=article_discription&aid=83&aaid=106 In this example uploading an image from sdcard to web server.Steps : 1. place an image on sdcard. 2. place sdcard image path and image name in UploadToServer.java. ( see below ) 3. create a php script (UploadToServer.php) at server. ( see below ) 4. place php script pat.. 2016. 9. 9.
Button Event Case Button Event Case package com.example.administrator.eventhandlingapplication; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.view.Menu; import android.view.MenuItem; import android... 2016. 9. 9.
Layout Header View Modify 11down voteacceptedUpdate: With the release of Design Support Library 23.1.1, the following method has been added to address this issue:/** * Gets the header view at the specified position. * * @param index The position at which to get the view from. * @return The header view the specified position or null if the position does not exist in this * NavigationView. */ public View getHeaderView(int .. 2016. 9. 4.