Merge pull request '精读' (#10) from develop into Master
	
		
	
				
					
				
			@ -0,0 +1,194 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    package="net.micode.notes"
 | 
				
			||||
    android:versionCode="1"
 | 
				
			||||
    android:versionName="0.1" >
 | 
				
			||||
 | 
				
			||||
    <uses-sdk android:minSdkVersion="14" />
 | 
				
			||||
 | 
				
			||||
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 | 
				
			||||
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
 | 
				
			||||
    <uses-permission android:name="android.permission.INTERNET" />
 | 
				
			||||
    <uses-permission android:name="android.permission.READ_CONTACTS" />
 | 
				
			||||
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
 | 
				
			||||
    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
 | 
				
			||||
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
 | 
				
			||||
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
 | 
				
			||||
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
 | 
				
			||||
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 | 
				
			||||
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
 | 
				
			||||
 | 
				
			||||
    <application
 | 
				
			||||
        android:icon="@drawable/icon_app"
 | 
				
			||||
        android:label="@string/app_name"
 | 
				
			||||
        android:requestLegacyExternalStorage="true">
 | 
				
			||||
        <activity
 | 
				
			||||
            android:name=".ui.NotesListActivity"
 | 
				
			||||
            android:configChanges="keyboardHidden|orientation|screenSize"
 | 
				
			||||
            android:label="@string/app_name"
 | 
				
			||||
            android:launchMode="singleTop"
 | 
				
			||||
            android:theme="@style/NoteTheme"
 | 
				
			||||
            android:uiOptions="splitActionBarWhenNarrow"
 | 
				
			||||
            android:windowSoftInputMode="adjustPan" >
 | 
				
			||||
 | 
				
			||||
            <intent-filter>
 | 
				
			||||
                <action android:name="android.intent.action.MAIN" />
 | 
				
			||||
                <category android:name="android.intent.category.LAUNCHER" />
 | 
				
			||||
            </intent-filter>
 | 
				
			||||
        </activity>
 | 
				
			||||
 | 
				
			||||
        <activity
 | 
				
			||||
            android:name=".ui.NoteEditActivity"
 | 
				
			||||
            android:configChanges="keyboardHidden|orientation|screenSize"
 | 
				
			||||
            android:launchMode="singleTop"
 | 
				
			||||
            android:theme="@style/NoteTheme" >
 | 
				
			||||
 | 
				
			||||
            <intent-filter>
 | 
				
			||||
                <action android:name="android.intent.action.VIEW" />
 | 
				
			||||
                <category android:name="android.intent.category.DEFAULT" />
 | 
				
			||||
                <data android:mimeType="vnd.android.cursor.item/text_note" />
 | 
				
			||||
                <data android:mimeType="vnd.android.cursor.item/call_note" />
 | 
				
			||||
            </intent-filter>
 | 
				
			||||
 | 
				
			||||
            <intent-filter>
 | 
				
			||||
                <action android:name="android.intent.action.INSERT_OR_EDIT" />
 | 
				
			||||
                <category android:name="android.intent.category.DEFAULT" />
 | 
				
			||||
                <data android:mimeType="vnd.android.cursor.item/text_note" />
 | 
				
			||||
                <data android:mimeType="vnd.android.cursor.item/call_note" />
 | 
				
			||||
            </intent-filter>
 | 
				
			||||
 | 
				
			||||
            <intent-filter>
 | 
				
			||||
                <action android:name="android.intent.action.SEARCH" />
 | 
				
			||||
                <category android:name="android.intent.category.DEFAULT" />
 | 
				
			||||
            </intent-filter>
 | 
				
			||||
 | 
				
			||||
            <meta-data
 | 
				
			||||
                android:name="android.app.searchable"
 | 
				
			||||
                android:resource="@xml/searchable" />
 | 
				
			||||
        </activity>
 | 
				
			||||
 | 
				
			||||
        <provider
 | 
				
			||||
            android:name="net.micode.notes.data.NotesProvider"
 | 
				
			||||
            android:authorities="micode_notes"
 | 
				
			||||
            android:multiprocess="true" />
 | 
				
			||||
 | 
				
			||||
        <receiver
 | 
				
			||||
            android:name=".widget.NoteWidgetProvider_2x"
 | 
				
			||||
            android:label="@string/app_widget2x2" >
 | 
				
			||||
            <intent-filter>
 | 
				
			||||
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
 | 
				
			||||
                <action android:name="android.appwidget.action.APPWIDGET_DELETED" />
 | 
				
			||||
                <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
 | 
				
			||||
            </intent-filter>
 | 
				
			||||
 | 
				
			||||
            <meta-data
 | 
				
			||||
                android:name="android.appwidget.provider"
 | 
				
			||||
                android:resource="@xml/widget_2x_info" />
 | 
				
			||||
        </receiver>
 | 
				
			||||
        <receiver
 | 
				
			||||
            android:name=".widget.NoteWidgetProvider_4x"
 | 
				
			||||
            android:label="@string/app_widget4x4" >
 | 
				
			||||
 | 
				
			||||
            <intent-filter>
 | 
				
			||||
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
 | 
				
			||||
                <action android:name="android.appwidget.action.APPWIDGET_DELETED" />
 | 
				
			||||
                <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
 | 
				
			||||
            </intent-filter>
 | 
				
			||||
 | 
				
			||||
            <meta-data
 | 
				
			||||
                android:name="android.appwidget.provider"
 | 
				
			||||
                android:resource="@xml/widget_4x_info" />
 | 
				
			||||
        </receiver>
 | 
				
			||||
 | 
				
			||||
        <receiver android:name=".ui.AlarmInitReceiver" >
 | 
				
			||||
            <intent-filter>
 | 
				
			||||
                <action android:name="android.intent.action.BOOT_COMPLETED" />
 | 
				
			||||
            </intent-filter>
 | 
				
			||||
        </receiver>
 | 
				
			||||
 | 
				
			||||
        <receiver
 | 
				
			||||
            android:name="net.micode.notes.ui.AlarmReceiver"
 | 
				
			||||
            android:process=":remote" >
 | 
				
			||||
        </receiver>
 | 
				
			||||
 | 
				
			||||
        <activity
 | 
				
			||||
            android:name=".ui.AlarmAlertActivity"
 | 
				
			||||
            android:label="@string/app_name"
 | 
				
			||||
            android:launchMode="singleInstance"
 | 
				
			||||
            android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" >
 | 
				
			||||
        </activity>
 | 
				
			||||
 | 
				
			||||
        <activity
 | 
				
			||||
            android:name="net.micode.notes.ui.NotesPreferenceActivity"
 | 
				
			||||
            android:label="@string/preferences_title"
 | 
				
			||||
            android:launchMode="singleTop"
 | 
				
			||||
            android:theme="@android:style/Theme.Holo.Light" >
 | 
				
			||||
        </activity>
 | 
				
			||||
 | 
				
			||||
        <activity
 | 
				
			||||
            android:name=".ui.LoginActivity"
 | 
				
			||||
            android:configChanges="keyboardHidden|orientation|screenSize"
 | 
				
			||||
            android:label="@string/app_name"
 | 
				
			||||
            android:launchMode="singleTop"
 | 
				
			||||
            android:theme="@style/NoteTheme"
 | 
				
			||||
            android:windowSoftInputMode="adjustPan" >
 | 
				
			||||
            <!--android:uiOptions="splitActionBarWhenNarrow"-->
 | 
				
			||||
            <!--<intent-filter>
 | 
				
			||||
            <action android:name="android.intent.action.MAIN" />
 | 
				
			||||
            <category android:name="android.intent.category.LAUNCHER" />
 | 
				
			||||
            </intent-filter>-->
 | 
				
			||||
        </activity>
 | 
				
			||||
 | 
				
			||||
        <activity
 | 
				
			||||
            android:name=".ui.ChangingPassword"
 | 
				
			||||
            android:configChanges="keyboardHidden|orientation|screenSize"
 | 
				
			||||
            android:label="@string/app_name"
 | 
				
			||||
            android:launchMode="singleTop"
 | 
				
			||||
            android:theme="@style/NoteTheme"
 | 
				
			||||
            android:windowSoftInputMode="adjustPan" >
 | 
				
			||||
        </activity>
 | 
				
			||||
 | 
				
			||||
        <activity
 | 
				
			||||
            android:name=".ui.SettingPassword"
 | 
				
			||||
            android:configChanges="keyboardHidden|orientation|screenSize"
 | 
				
			||||
            android:label="@string/app_name"
 | 
				
			||||
            android:launchMode="singleTop"
 | 
				
			||||
            android:theme="@style/NoteTheme"
 | 
				
			||||
            android:windowSoftInputMode="adjustPan" >
 | 
				
			||||
        </activity>
 | 
				
			||||
 | 
				
			||||
        <activity
 | 
				
			||||
            android:name=".ui.DeletingPassword"
 | 
				
			||||
            android:configChanges="keyboardHidden|orientation|screenSize"
 | 
				
			||||
            android:label="@string/app_name"
 | 
				
			||||
            android:launchMode="singleTop"
 | 
				
			||||
            android:theme="@style/NoteTheme"
 | 
				
			||||
            android:windowSoftInputMode="adjustPan" >
 | 
				
			||||
        </activity>
 | 
				
			||||
 | 
				
			||||
        <service
 | 
				
			||||
            android:name="net.micode.notes.gtask.remote.GTaskSyncService"
 | 
				
			||||
            android:exported="false" >
 | 
				
			||||
        </service>
 | 
				
			||||
 | 
				
			||||
        <meta-data
 | 
				
			||||
            android:name="android.app.default_searchable"
 | 
				
			||||
            android:value=".ui.NoteEditActivity" />
 | 
				
			||||
    </application>
 | 
				
			||||
</manifest>
 | 
				
			||||
@ -0,0 +1,71 @@
 | 
				
			||||
package net.micode.notes.ui;
 | 
				
			||||
 | 
				
			||||
import android.app.Activity;
 | 
				
			||||
import android.content.Intent;
 | 
				
			||||
import android.content.SharedPreferences;
 | 
				
			||||
import android.os.Bundle;
 | 
				
			||||
import android.view.View;
 | 
				
			||||
import android.view.WindowManager;
 | 
				
			||||
import android.widget.Button;
 | 
				
			||||
import android.widget.EditText;
 | 
				
			||||
import android.widget.Toast;
 | 
				
			||||
 | 
				
			||||
import net.micode.notes.R;
 | 
				
			||||
 | 
				
			||||
public class ChangingPassword extends Activity{
 | 
				
			||||
    EditText OldPassword;
 | 
				
			||||
    EditText NewPassword;
 | 
				
			||||
    EditText AckPassword;
 | 
				
			||||
    Button Acknowledged;
 | 
				
			||||
 | 
				
			||||
    @Override
 | 
				
			||||
    protected void onCreate(Bundle savedInstanceState){
 | 
				
			||||
        super.onCreate(savedInstanceState);
 | 
				
			||||
        setContentView(R.layout.activity_change_password);
 | 
				
			||||
        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE
 | 
				
			||||
                | WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
 | 
				
			||||
        OldPassword=(EditText) findViewById(R.id.old_password);
 | 
				
			||||
        NewPassword=(EditText) findViewById(R.id.new_password);
 | 
				
			||||
        AckPassword=(EditText) findViewById(R.id.ack_password);
 | 
				
			||||
        Acknowledged=(Button)findViewById(R.id.Acknowledged);
 | 
				
			||||
        Acknowledged.setOnClickListener(new View.OnClickListener() {
 | 
				
			||||
            @Override
 | 
				
			||||
            public void onClick(View v) {
 | 
				
			||||
                String old_password = OldPassword.getText().toString();
 | 
				
			||||
                String new_password = NewPassword.getText().toString();
 | 
				
			||||
                String ack_password = AckPassword.getText().toString();
 | 
				
			||||
                SharedPreferences pref = getSharedPreferences("user management",MODE_PRIVATE);
 | 
				
			||||
                        String login_password = pref.getString("password","");
 | 
				
			||||
                if(old_password.equals("")==true || new_password.equals("")==true || ack_password.equals("")==true) {
 | 
				
			||||
                    Toast.makeText(ChangingPassword.this, "密码不能为空", Toast.LENGTH_SHORT).show();
 | 
				
			||||
                }
 | 
				
			||||
                else if (new_password.equals(ack_password) == false) {
 | 
				
			||||
                    Toast.makeText(ChangingPassword.this, "新建密码与重复密码不匹配,请重新输入密码", Toast.LENGTH_SHORT).show();
 | 
				
			||||
                            AckPassword.setText("");
 | 
				
			||||
                }
 | 
				
			||||
                else if(old_password.equals(login_password) == false){
 | 
				
			||||
                    Toast.makeText(ChangingPassword.this, "原有密码错误,请重新输入密码", Toast.LENGTH_SHORT).show();
 | 
				
			||||
                            OldPassword.setText("");
 | 
				
			||||
                }
 | 
				
			||||
                else if (new_password.equals(ack_password) == true &&
 | 
				
			||||
                        old_password.equals(login_password) == true){
 | 
				
			||||
                    SharedPreferences.Editor editor=getSharedPreferences("user management", MODE_PRIVATE).edit();
 | 
				
			||||
                            editor.putString("password",new_password);
 | 
				
			||||
                    editor.apply();
 | 
				
			||||
                    Toast.makeText(ChangingPassword.this, "修改密码成功",Toast.LENGTH_SHORT).show();
 | 
				
			||||
                    Intent intent=new
 | 
				
			||||
                            Intent(ChangingPassword.this,NotesListActivity.class);
 | 
				
			||||
                    startActivity(intent);
 | 
				
			||||
                    finish();
 | 
				
			||||
                }
 | 
				
			||||
            }
 | 
				
			||||
        });
 | 
				
			||||
    }
 | 
				
			||||
    @Override
 | 
				
			||||
    public void onBackPressed(){
 | 
				
			||||
        Intent intent=new Intent(ChangingPassword.this,NotesListActivity.class);
 | 
				
			||||
        startActivity(intent);
 | 
				
			||||
        finish();
 | 
				
			||||
    }
 | 
				
			||||
}
 | 
				
			||||
 | 
				
			||||
@ -0,0 +1,62 @@
 | 
				
			||||
package net.micode.notes.ui;
 | 
				
			||||
 | 
				
			||||
import android.app.Activity;
 | 
				
			||||
import android.content.Intent;
 | 
				
			||||
import android.content.SharedPreferences;
 | 
				
			||||
import android.os.Bundle;
 | 
				
			||||
import android.view.View;
 | 
				
			||||
import android.view.WindowManager;
 | 
				
			||||
import android.widget.Button;
 | 
				
			||||
import android.widget.EditText;
 | 
				
			||||
import android.widget.Toast;
 | 
				
			||||
 | 
				
			||||
import net.micode.notes.R;
 | 
				
			||||
 | 
				
			||||
public class DeletingPassword extends Activity {
 | 
				
			||||
    EditText Dt_password;
 | 
				
			||||
    Button Acknowledged;
 | 
				
			||||
    @Override
 | 
				
			||||
    protected void onCreate(Bundle savedInstanceState) {
 | 
				
			||||
        super.onCreate(savedInstanceState);
 | 
				
			||||
        setContentView(R.layout.activity_delete_password);
 | 
				
			||||
        getWindow().setSoftInputMode(
 | 
				
			||||
                WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE
 | 
				
			||||
                        | WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
 | 
				
			||||
        Dt_password=(EditText) findViewById(R.id.thepassword);
 | 
				
			||||
        Acknowledged=(Button)findViewById(R.id.Dt_Acknowledged);
 | 
				
			||||
        Acknowledged.setOnClickListener(new View.OnClickListener() {
 | 
				
			||||
            @Override
 | 
				
			||||
            public void onClick(View v) {
 | 
				
			||||
                String text02 = Dt_password.getText().toString();
 | 
				
			||||
                if(text02.equals("")==true)
 | 
				
			||||
                    Toast.makeText(DeletingPassword.this, "密码不能为空",
 | 
				
			||||
                            Toast.LENGTH_SHORT).show();
 | 
				
			||||
                SharedPreferences pref=getSharedPreferences("user management",MODE_PRIVATE);
 | 
				
			||||
                        String password = pref.getString("password","");
 | 
				
			||||
                if(password.equals("")==false&&password.equals(text02)==true){
 | 
				
			||||
                    SharedPreferences.Editor editor=getSharedPreferences("user management", MODE_PRIVATE).edit();
 | 
				
			||||
                    editor.putBoolean("user",false);//false 表示已经设置登录密码
 | 
				
			||||
                    editor.putString("password","");
 | 
				
			||||
                    editor.apply();
 | 
				
			||||
                    Toast.makeText(DeletingPassword.this, "已经删除登录密码",
 | 
				
			||||
                            Toast.LENGTH_SHORT).show();
 | 
				
			||||
                    Intent intent=new
 | 
				
			||||
                            Intent(DeletingPassword.this,NotesListActivity.class);
 | 
				
			||||
                    startActivity(intent);
 | 
				
			||||
                    finish();
 | 
				
			||||
                }
 | 
				
			||||
                else{
 | 
				
			||||
                    Toast.makeText(DeletingPassword.this, "密码错误",
 | 
				
			||||
                            Toast.LENGTH_SHORT).show();
 | 
				
			||||
                    Dt_password.setText("");//把密码框内输入过的错误密码清空
 | 
				
			||||
                }
 | 
				
			||||
            }
 | 
				
			||||
        });
 | 
				
			||||
    }
 | 
				
			||||
    @Override
 | 
				
			||||
    public void onBackPressed() {
 | 
				
			||||
        Intent intent=new Intent(DeletingPassword.this,NotesListActivity.class);
 | 
				
			||||
        startActivity(intent);
 | 
				
			||||
        finish();
 | 
				
			||||
    }
 | 
				
			||||
}
 | 
				
			||||
@ -0,0 +1,55 @@
 | 
				
			||||
package net.micode.notes.ui;
 | 
				
			||||
 | 
				
			||||
import android.content.Intent;
 | 
				
			||||
import android.content.SharedPreferences;
 | 
				
			||||
import android.os.Bundle;
 | 
				
			||||
import android.view.View;
 | 
				
			||||
import android.view.WindowManager;
 | 
				
			||||
import android.widget.Button;
 | 
				
			||||
import android.widget.EditText;
 | 
				
			||||
import android.widget.Toast;
 | 
				
			||||
import android.app.Activity;
 | 
				
			||||
 | 
				
			||||
import net.micode.notes.R;
 | 
				
			||||
 | 
				
			||||
public class LoginActivity extends Activity{
 | 
				
			||||
 | 
				
			||||
    EditText lgn_password;
 | 
				
			||||
    Button lgn_login;
 | 
				
			||||
 | 
				
			||||
    @Override
 | 
				
			||||
    protected void onCreate(Bundle savedInstanceState) {
 | 
				
			||||
        super.onCreate(savedInstanceState);
 | 
				
			||||
        SharedPreferences pref = getSharedPreferences("user management", MODE_PRIVATE);
 | 
				
			||||
        boolean User_boolean = pref.getBoolean("user", false); //检查用户是否设置了密码
 | 
				
			||||
        if (!User_boolean) {  //如果用户没有设置密码,则直接跳转到便签主界面
 | 
				
			||||
            Intent intent = new Intent(LoginActivity.this, NotesListActivity.class);
 | 
				
			||||
            startActivity(intent);
 | 
				
			||||
            finish();
 | 
				
			||||
        }
 | 
				
			||||
 | 
				
			||||
        setContentView(R.layout.activity_login);
 | 
				
			||||
        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
 | 
				
			||||
        lgn_password = (EditText)findViewById(R.id.lgn_password);
 | 
				
			||||
        lgn_login = (Button) findViewById(R.id.login);
 | 
				
			||||
        lgn_login.setOnClickListener(new View.OnClickListener() {
 | 
				
			||||
                                         @Override
 | 
				
			||||
                                         public void onClick(View v) {
 | 
				
			||||
                                             SharedPreferences pref = getSharedPreferences("user management", MODE_PRIVATE);
 | 
				
			||||
                                             String password = pref.getString("password", "");
 | 
				
			||||
                                             if (password.equals(" ") == false && password.equals(lgn_password.getText().toString()) == true) {
 | 
				
			||||
                                                 Intent intent = new Intent(LoginActivity.this, NotesListActivity.class);
 | 
				
			||||
                                                 startActivity(intent);
 | 
				
			||||
                                                 finish();
 | 
				
			||||
                                             } else {
 | 
				
			||||
                                                 Toast.makeText(LoginActivity.this, "密码错误", Toast.LENGTH_SHORT).show();
 | 
				
			||||
                                                 lgn_password.setText(""); //清空密码框内的输入
 | 
				
			||||
                                             }
 | 
				
			||||
 | 
				
			||||
                                         }
 | 
				
			||||
                                     }
 | 
				
			||||
        );
 | 
				
			||||
    }
 | 
				
			||||
}
 | 
				
			||||
 | 
				
			||||
 | 
				
			||||
@ -0,0 +1,66 @@
 | 
				
			||||
package net.micode.notes.ui;
 | 
				
			||||
 | 
				
			||||
import static android.content.Context.MODE_PRIVATE;
 | 
				
			||||
import android.app.Activity;
 | 
				
			||||
import android.content.Intent;
 | 
				
			||||
import android.content.SharedPreferences;
 | 
				
			||||
import android.os.Bundle;
 | 
				
			||||
import android.util.Log;
 | 
				
			||||
import android.view.View;
 | 
				
			||||
import android.view.WindowManager;
 | 
				
			||||
import android.widget.Button;
 | 
				
			||||
import android.widget.EditText;
 | 
				
			||||
import android.widget.Toast;
 | 
				
			||||
 | 
				
			||||
import net.micode.notes.R;
 | 
				
			||||
 | 
				
			||||
 | 
				
			||||
public class SettingPassword extends Activity {
 | 
				
			||||
    EditText password;
 | 
				
			||||
    EditText password_ack;
 | 
				
			||||
    Button acknowledge;
 | 
				
			||||
    @Override
 | 
				
			||||
    protected void onCreate(Bundle savedInstanceState) {
 | 
				
			||||
        super.onCreate(savedInstanceState);
 | 
				
			||||
        setContentView(R.layout.activity_set_loginpassword);
 | 
				
			||||
        getWindow().setSoftInputMode(
 | 
				
			||||
                WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE
 | 
				
			||||
                        | WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
 | 
				
			||||
        password = (EditText) findViewById(R.id.password);
 | 
				
			||||
        password_ack = (EditText) findViewById(R.id.password_ack);
 | 
				
			||||
        acknowledge = (Button)findViewById(R.id.acknowledge);
 | 
				
			||||
        acknowledge.setOnClickListener(new View.OnClickListener() {
 | 
				
			||||
            @Override
 | 
				
			||||
            public void onClick(View v) {
 | 
				
			||||
                String text02 = password.getText().toString();
 | 
				
			||||
                String text03 = password_ack.getText().toString();
 | 
				
			||||
                if(text02.equals("")==true) {
 | 
				
			||||
                    Toast.makeText(SettingPassword.this, "密码不能为空", Toast.LENGTH_SHORT).show();
 | 
				
			||||
                }
 | 
				
			||||
                else if (text02.equals(text03) == false) {
 | 
				
			||||
                    Toast.makeText(SettingPassword.this, "密码错误,请重新输入密码 ", Toast.LENGTH_SHORT).show();
 | 
				
			||||
                            password_ack.setText("");
 | 
				
			||||
                }
 | 
				
			||||
                else if (text02.equals(text03) == true){
 | 
				
			||||
                    SharedPreferences.Editor editor=getSharedPreferences("user management", MODE_PRIVATE).edit();
 | 
				
			||||
                    editor.putBoolean("user",true); //true 表示已经设置登录密码
 | 
				
			||||
                    editor.putString("password",text02);
 | 
				
			||||
                    editor.apply();
 | 
				
			||||
                    Log.d("RegisterLoginPassword","password is "+text02);
 | 
				
			||||
                    Toast.makeText(SettingPassword.this, "密码设置成功",
 | 
				
			||||
                            Toast.LENGTH_SHORT).show();
 | 
				
			||||
                    Intent intent=new
 | 
				
			||||
                            Intent(SettingPassword.this,NotesListActivity.class);
 | 
				
			||||
                    startActivity(intent);
 | 
				
			||||
                    finish();
 | 
				
			||||
                }
 | 
				
			||||
            }
 | 
				
			||||
        });
 | 
				
			||||
    }
 | 
				
			||||
    @Override
 | 
				
			||||
    public void onBackPressed() {
 | 
				
			||||
        Intent intent=new Intent(SettingPassword.this,NotesListActivity.class);
 | 
				
			||||
        startActivity(intent);
 | 
				
			||||
        finish();
 | 
				
			||||
    }
 | 
				
			||||
}
 | 
				
			||||
@ -0,0 +1,29 @@
 | 
				
			||||
package net.micode.notes.ui;
 | 
				
			||||
import android.annotation.SuppressLint;
 | 
				
			||||
import android.content.Intent;
 | 
				
			||||
import android.support.v7.app.ActionBar;
 | 
				
			||||
import android.support.v7.app.AppCompatActivity;
 | 
				
			||||
import android.os.Build;
 | 
				
			||||
import android.os.Bundle;
 | 
				
			||||
import android.os.Handler;
 | 
				
			||||
import android.view.MotionEvent;
 | 
				
			||||
import android.view.View;
 | 
				
			||||
import android.view.WindowInsets;
 | 
				
			||||
import net.micode.notes.R;
 | 
				
			||||
public class SplashActivity extends AppCompatActivity {
 | 
				
			||||
    Handler mHandler=new Handler();
 | 
				
			||||
 | 
				
			||||
    @Override
 | 
				
			||||
    protected void onCreate(Bundle savedInstanceState) {
 | 
				
			||||
        super.onCreate(savedInstanceState); //加载启动界面
 | 
				
			||||
        setContentView(R.layout.activity_splash); //加载启动
 | 
				
			||||
// 当计时结束时,跳转至 NotesListActivity
 | 
				
			||||
        mHandler.postDelayed(new Runnable() {
 | 
				
			||||
            @Override
 | 
				
			||||
            public void run() {
 | 
				
			||||
                Intent intent = new Intent();
 | 
				
			||||
                intent.setClass(SplashActivity.this, LoginActivity.class);
 | 
				
			||||
                startActivity(intent);
 | 
				
			||||
                finish(); //销毁欢迎页面
 | 
				
			||||
            }
 | 
				
			||||
        }, 2000); // 2 秒后跳转}
 | 
				
			||||
@ -0,0 +1,22 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||
  <item android:state_pressed="true" android:color="#88555555" />
 | 
				
			||||
  <item android:state_selected="true" android:color="#ff999999" />
 | 
				
			||||
  <item android:color="#ff000000" />
 | 
				
			||||
</selector>
 | 
				
			||||
@ -0,0 +1,20 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||
  <item android:color="#50000000" />
 | 
				
			||||
</selector>
 | 
				
			||||
| 
		 After Width: | Height: | Size: 3.5 KiB  | 
| 
		 After Width: | Height: | Size: 245 B  | 
| 
		 After Width: | Height: | Size: 3.5 KiB  | 
| 
		 After Width: | Height: | Size: 3.9 KiB  | 
| 
		 After Width: | Height: | Size: 3.4 KiB  | 
| 
		 After Width: | Height: | Size: 443 B  | 
| 
		 After Width: | Height: | Size: 3.4 KiB  | 
| 
		 After Width: | Height: | Size: 3.5 KiB  | 
| 
		 After Width: | Height: | Size: 3.4 KiB  | 
| 
		 After Width: | Height: | Size: 5.0 KiB  | 
| 
		 After Width: | Height: | Size: 5.5 KiB  | 
| 
		 After Width: | Height: | Size: 4.9 KiB  | 
| 
		 After Width: | Height: | Size: 3.8 KiB  | 
| 
		 After Width: | Height: | Size: 5.9 KiB  | 
| 
		 After Width: | Height: | Size: 3.4 KiB  | 
| 
		 After Width: | Height: | Size: 3.5 KiB  | 
| 
		 After Width: | Height: | Size: 3.1 KiB  | 
| 
		 After Width: | Height: | Size: 3.0 KiB  | 
| 
		 After Width: | Height: | Size: 4.0 KiB  | 
| 
		 After Width: | Height: | Size: 3.0 KiB  | 
| 
		 After Width: | Height: | Size: 3.1 KiB  | 
| 
		 After Width: | Height: | Size: 6.7 KiB  | 
| 
		 After Width: | Height: | Size: 554 KiB  | 
| 
		 After Width: | Height: | Size: 4.3 KiB  | 
| 
		 After Width: | Height: | Size: 3.0 KiB  | 
| 
		 After Width: | Height: | Size: 4.5 KiB  | 
| 
		 After Width: | Height: | Size: 3.2 KiB  | 
| 
		 After Width: | Height: | Size: 5.5 KiB  | 
| 
		 After Width: | Height: | Size: 2.8 KiB  | 
| 
		 After Width: | Height: | Size: 4.4 KiB  | 
| 
		 After Width: | Height: | Size: 3.1 KiB  | 
| 
		 After Width: | Height: | Size: 4.6 KiB  | 
| 
		 After Width: | Height: | Size: 3.3 KiB  | 
| 
		 After Width: | Height: | Size: 4.2 KiB  | 
| 
		 After Width: | Height: | Size: 3.0 KiB  | 
| 
		 After Width: | Height: | Size: 4.5 KiB  | 
| 
		 After Width: | Height: | Size: 3.2 KiB  | 
| 
		 After Width: | Height: | Size: 4.2 KiB  | 
| 
		 After Width: | Height: | Size: 3.0 KiB  | 
| 
		 After Width: | Height: | Size: 4.4 KiB  | 
| 
		 After Width: | Height: | Size: 3.1 KiB  | 
| 
		 After Width: | Height: | Size: 4.3 KiB  | 
| 
		 After Width: | Height: | Size: 3.1 KiB  | 
| 
		 After Width: | Height: | Size: 4.6 KiB  | 
| 
		 After Width: | Height: | Size: 3.3 KiB  | 
| 
		 After Width: | Height: | Size: 3.3 KiB  | 
| 
		 After Width: | Height: | Size: 3.2 KiB  | 
| 
		 After Width: | Height: | Size: 87 KiB  | 
| 
		 After Width: | Height: | Size: 88 KiB  | 
| 
		 After Width: | Height: | Size: 6.9 KiB  | 
| 
		 After Width: | Height: | Size: 3.0 KiB  | 
| 
		 After Width: | Height: | Size: 3.0 KiB  | 
| 
		 After Width: | Height: | Size: 4.8 KiB  | 
| 
		 After Width: | Height: | Size: 116 KiB  | 
| 
		 After Width: | Height: | Size: 3.6 KiB  | 
| 
		 After Width: | Height: | Size: 5.8 KiB  | 
| 
		 After Width: | Height: | Size: 1.9 KiB  | 
| 
		 After Width: | Height: | Size: 1.9 KiB  | 
| 
		 After Width: | Height: | Size: 1.8 KiB  | 
| 
		 After Width: | Height: | Size: 1.9 KiB  | 
| 
		 After Width: | Height: | Size: 1.9 KiB  | 
| 
		 After Width: | Height: | Size: 4.1 KiB  | 
| 
		 After Width: | Height: | Size: 4.1 KiB  | 
| 
		 After Width: | Height: | Size: 4.1 KiB  | 
| 
		 After Width: | Height: | Size: 4.0 KiB  | 
| 
		 After Width: | Height: | Size: 4.1 KiB  | 
@ -0,0 +1,23 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||
    <item android:state_pressed="true"
 | 
				
			||||
        android:drawable="@drawable/new_note_pressed" />
 | 
				
			||||
    <item
 | 
				
			||||
        android:drawable="@drawable/new_note_normal" />
 | 
				
			||||
</selector>
 | 
				
			||||
@ -0,0 +1,43 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<LinearLayout
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="fill_parent"
 | 
				
			||||
        android:orientation="vertical"
 | 
				
			||||
        xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||
 | 
				
			||||
    <TextView
 | 
				
			||||
        android:id="@+id/account_dialog_title"
 | 
				
			||||
        style="?android:attr/textAppearanceMedium"
 | 
				
			||||
        android:singleLine="true"
 | 
				
			||||
        android:ellipsize="end"
 | 
				
			||||
        android:gravity="center"
 | 
				
			||||
        android:layout_marginTop="-2.7dip"
 | 
				
			||||
        android:layout_marginBottom="-2.7dip"
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="wrap_content"/>
 | 
				
			||||
 | 
				
			||||
    <TextView
 | 
				
			||||
        android:id="@+id/account_dialog_subtitle"
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_marginTop="5dip"
 | 
				
			||||
        android:layout_marginBottom="1dip"
 | 
				
			||||
        android:gravity="center"/>
 | 
				
			||||
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,63 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:orientation="vertical"
 | 
				
			||||
    android:layout_width="match_parent"
 | 
				
			||||
    android:layout_height="match_parent"
 | 
				
			||||
    android:gravity="center_vertical">
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_gravity="center">
 | 
				
			||||
        <TextView
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="旧密码:"/>
 | 
				
			||||
 | 
				
			||||
        <EditText
 | 
				
			||||
            android:id="@+id/old_password"
 | 
				
			||||
            android:layout_width="150dp"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:password="true" />
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
        <TextView
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="新密码:"/>
 | 
				
			||||
 | 
				
			||||
        <EditText
 | 
				
			||||
            android:id="@+id/new_password"
 | 
				
			||||
            android:layout_width="150dp"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:password="true"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
        <TextView
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="确认密码:"/>
 | 
				
			||||
        <EditText
 | 
				
			||||
        android:id="@+id/ack_password"
 | 
				
			||||
        android:layout_width="150dp"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:password="true"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
 | 
				
			||||
        <Button
 | 
				
			||||
            android:id="@+id/Acknowledged"
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="确认"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,34 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:orientation="vertical"
 | 
				
			||||
    android:layout_width="match_parent"
 | 
				
			||||
    android:layout_height="match_parent"
 | 
				
			||||
    android:gravity="center">
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
        <TextView
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="输入密码:"/>
 | 
				
			||||
 | 
				
			||||
        <EditText
 | 
				
			||||
            android:id="@+id/thepassword"
 | 
				
			||||
            android:layout_width="150dp"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:password="true"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
 | 
				
			||||
        <Button
 | 
				
			||||
            android:id="@+id/Dt_Acknowledged"
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="确认"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,34 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:orientation="vertical"
 | 
				
			||||
    android:layout_width="match_parent"
 | 
				
			||||
    android:layout_height="match_parent"
 | 
				
			||||
    android:gravity="center_vertical">
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height='wrap_content'
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
        <TextView
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="密码:"/>
 | 
				
			||||
 | 
				
			||||
        <EditText
 | 
				
			||||
            android:id="@+id/lgn_password"
 | 
				
			||||
            android:layout_width="150dp"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:password="true"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
        <Button
 | 
				
			||||
            android:id="@+id/login"
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="登录"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,51 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:orientation="vertical"
 | 
				
			||||
    android:layout_width="match_parent"
 | 
				
			||||
    android:layout_height="match_parent"
 | 
				
			||||
    android:gravity="center_vertical">
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
        <TextView
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="新设置密码:"/>
 | 
				
			||||
 | 
				
			||||
        <EditText
 | 
				
			||||
            android:id="@+id/password"
 | 
				
			||||
            android:layout_width="150dp"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:password="true"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
 | 
				
			||||
        <TextView
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="确认密码:" />
 | 
				
			||||
 | 
				
			||||
        <EditText
 | 
				
			||||
            android:id="@+id/password_ack"
 | 
				
			||||
            android:layout_width="150dp"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:password="true"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:gravity="center">
 | 
				
			||||
 | 
				
			||||
        <Button
 | 
				
			||||
            android:id="@+id/acknowledge"
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:text="确认"/>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,60 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    xmlns:tools="http://schemas.android.com/tools"
 | 
				
			||||
    android:layout_width="match_parent"
 | 
				
			||||
    android:layout_height="match_parent"
 | 
				
			||||
    android:background="0099cc"
 | 
				
			||||
    tools:context=".ui.SplashActivity">
 | 
				
			||||
 | 
				
			||||
    <!-- The primary full-screen view. This can be replaced with whatever view
 | 
				
			||||
         is needed to present your content, e.g. VideoView, SurfaceView,
 | 
				
			||||
         TextureView, etc. -->
 | 
				
			||||
    <TextView android:id="@+id/fullscreen_content"
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="match_parent"
 | 
				
			||||
        android:textColor="#33b5e5"
 | 
				
			||||
        android:keepScreenOn="true"
 | 
				
			||||
        android:textStyle="bold"
 | 
				
			||||
        android:textSize="50sp"
 | 
				
			||||
        android:gravity="center"
 | 
				
			||||
        android:text="@string/dummy_content" />
 | 
				
			||||
 | 
				
			||||
    <!-- This FrameLayout insets its children based on system windows using
 | 
				
			||||
         android:fitsSystemWindows. -->
 | 
				
			||||
    <FrameLayout
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="match_parent"
 | 
				
			||||
        android:fitsSystemWindows="true">
 | 
				
			||||
 | 
				
			||||
        <LinearLayout
 | 
				
			||||
            android:id = "@+id/fullscreen_content_controls"
 | 
				
			||||
            style = "?metaButtonBarStyle"
 | 
				
			||||
            android:layout_width="match_parent"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:layout_gravity="bottom|center_horizontal"
 | 
				
			||||
            android:background="@color/black_overlay"
 | 
				
			||||
            android:orientation="horizontal"
 | 
				
			||||
            tools:ignore="UselessParent">
 | 
				
			||||
 | 
				
			||||
            <Button android:id="@+id/dummy_button"
 | 
				
			||||
                style= "?metaButtonBarButtonStyle"
 | 
				
			||||
                android:layout_width="0dp"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_weight="1"
 | 
				
			||||
                android:text = "@string/dummy_button" />
 | 
				
			||||
 | 
				
			||||
        </LinearLayout>
 | 
				
			||||
 | 
				
			||||
        <TextView
 | 
				
			||||
 | 
				
			||||
            android:layout_width="match_parent"
 | 
				
			||||
            android:layout_height="match_parent"
 | 
				
			||||
            android:background="@drawable/splash"
 | 
				
			||||
            android:gravity="top"
 | 
				
			||||
            android:keepScreenOn="true"
 | 
				
			||||
            android:text="@string/dummy_content"
 | 
				
			||||
            android:textSize="50sp"
 | 
				
			||||
            android:textStyle="bold"
 | 
				
			||||
            />
 | 
				
			||||
    </FrameLayout>
 | 
				
			||||
</FrameLayout>
 | 
				
			||||
@ -0,0 +1,32 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<LinearLayout
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:layout_width="match_parent"
 | 
				
			||||
    android:layout_height="wrap_content"
 | 
				
			||||
    android:minHeight="50dip"
 | 
				
			||||
    android:gravity="center_vertical"
 | 
				
			||||
    android:orientation="vertical">
 | 
				
			||||
 | 
				
			||||
    <TextView
 | 
				
			||||
        android:layout_width="wrap_content"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_gravity="center"
 | 
				
			||||
        android:textAppearance="?android:attr/textAppearanceMedium"
 | 
				
			||||
        android:text="@string/preferences_add_account" />
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,56 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:orientation="horizontal"
 | 
				
			||||
    android:layout_gravity="center_horizontal"
 | 
				
			||||
    android:layout_width="wrap_content"
 | 
				
			||||
    android:layout_height="wrap_content">
 | 
				
			||||
 | 
				
			||||
    <NumberPicker
 | 
				
			||||
        android:id="@+id/date"
 | 
				
			||||
        android:layout_width="120dip"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:focusable="true"
 | 
				
			||||
        android:focusableInTouchMode="true"
 | 
				
			||||
        />
 | 
				
			||||
 | 
				
			||||
    <NumberPicker
 | 
				
			||||
        android:id="@+id/hour"
 | 
				
			||||
        android:layout_width="50dip"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_marginLeft="5dip"
 | 
				
			||||
        android:focusable="true"
 | 
				
			||||
        android:focusableInTouchMode="true"
 | 
				
			||||
        />
 | 
				
			||||
 | 
				
			||||
    <NumberPicker
 | 
				
			||||
        android:id="@+id/minute"
 | 
				
			||||
        android:layout_width="50dip"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_marginLeft="5dip"
 | 
				
			||||
        android:focusable="true"
 | 
				
			||||
        android:focusableInTouchMode="true"
 | 
				
			||||
        />
 | 
				
			||||
 | 
				
			||||
    <NumberPicker
 | 
				
			||||
        android:id="@+id/amPm"
 | 
				
			||||
        android:layout_width="50dip"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_marginLeft="5dip"
 | 
				
			||||
        android:focusable="true"
 | 
				
			||||
        android:focusableInTouchMode="true"
 | 
				
			||||
        />
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,23 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<EditText
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:id="@+id/et_foler_name"
 | 
				
			||||
    android:layout_width="fill_parent"
 | 
				
			||||
    android:hint="@string/hint_foler_name"
 | 
				
			||||
    android:layout_height="fill_parent" />
 | 
				
			||||
@ -0,0 +1,29 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:layout_width="match_parent"
 | 
				
			||||
    android:layout_height="match_parent"
 | 
				
			||||
    android:minHeight="50dip" >
 | 
				
			||||
 | 
				
			||||
    <TextView
 | 
				
			||||
        android:id="@+id/tv_folder_name"
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="match_parent"
 | 
				
			||||
        android:gravity="center"
 | 
				
			||||
        android:textAppearance="@style/TextAppearancePrimaryItem" />
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,410 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<FrameLayout
 | 
				
			||||
    android:layout_width="fill_parent"
 | 
				
			||||
    android:layout_height="fill_parent"
 | 
				
			||||
    android:background="@drawable/list_background"
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="fill_parent"
 | 
				
			||||
        android:orientation="vertical">
 | 
				
			||||
 | 
				
			||||
        <LinearLayout
 | 
				
			||||
            android:id="@+id/note_title"
 | 
				
			||||
            android:layout_width="fill_parent"
 | 
				
			||||
            android:layout_height="wrap_content">
 | 
				
			||||
 | 
				
			||||
            <TextView
 | 
				
			||||
                android:id="@+id/tv_modified_date"
 | 
				
			||||
                android:layout_width="0dip"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_weight="1"
 | 
				
			||||
                android:layout_gravity="left|center_vertical"
 | 
				
			||||
                android:layout_marginRight="8dip"
 | 
				
			||||
                android:textAppearance="@style/TextAppearanceSecondaryItem" />
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_alert_icon"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="center_vertical"
 | 
				
			||||
                android:background="@drawable/title_alert" />
 | 
				
			||||
 | 
				
			||||
            <TextView
 | 
				
			||||
                android:id="@+id/tv_alert_date"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="center_vertical"
 | 
				
			||||
                android:layout_marginLeft="2dip"
 | 
				
			||||
                android:layout_marginRight="8dip"
 | 
				
			||||
                android:textAppearance="@style/TextAppearanceSecondaryItem" />
 | 
				
			||||
 | 
				
			||||
            <ImageButton
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="center"
 | 
				
			||||
                android:background="@drawable/bg_btn_set_color" />
 | 
				
			||||
        </LinearLayout>
 | 
				
			||||
 | 
				
			||||
        <LinearLayout
 | 
				
			||||
            android:id="@+id/sv_note_edit"
 | 
				
			||||
            android:layout_width="fill_parent"
 | 
				
			||||
            android:layout_height="fill_parent"
 | 
				
			||||
            android:orientation="vertical">
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:layout_width="fill_parent"
 | 
				
			||||
                android:layout_height="7dip"
 | 
				
			||||
                android:background="@drawable/bg_color_btn_mask" />
 | 
				
			||||
 | 
				
			||||
            <ScrollView
 | 
				
			||||
                android:layout_width="fill_parent"
 | 
				
			||||
                android:layout_height="0dip"
 | 
				
			||||
                android:layout_weight="1"
 | 
				
			||||
                android:scrollbars="none"
 | 
				
			||||
                android:overScrollMode="never"
 | 
				
			||||
                android:layout_gravity="left|top"
 | 
				
			||||
                android:fadingEdgeLength="0dip">
 | 
				
			||||
 | 
				
			||||
                <LinearLayout
 | 
				
			||||
                    android:layout_width="fill_parent"
 | 
				
			||||
                    android:layout_height="fill_parent">
 | 
				
			||||
 | 
				
			||||
                    <net.micode.notes.ui.NoteEditText
 | 
				
			||||
                        android:id="@+id/note_edit_view"
 | 
				
			||||
                        android:layout_width="fill_parent"
 | 
				
			||||
                        android:layout_height="wrap_content"
 | 
				
			||||
                        android:gravity="left|top"
 | 
				
			||||
                        android:background="@null"
 | 
				
			||||
                        android:autoLink="all"
 | 
				
			||||
                        android:linksClickable="false"
 | 
				
			||||
                        android:minLines="12"
 | 
				
			||||
                        android:textAppearance="@style/TextAppearancePrimaryItem"
 | 
				
			||||
                        android:lineSpacingMultiplier="1.2" />
 | 
				
			||||
 | 
				
			||||
                    <LinearLayout
 | 
				
			||||
                        android:id="@+id/note_edit_list"
 | 
				
			||||
                        android:layout_width="fill_parent"
 | 
				
			||||
                        android:layout_height="wrap_content"
 | 
				
			||||
                        android:orientation="vertical"
 | 
				
			||||
                        android:layout_marginLeft="-10dip"
 | 
				
			||||
                        android:visibility="gone" />
 | 
				
			||||
                </LinearLayout>
 | 
				
			||||
            </ScrollView>
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:layout_width="fill_parent"
 | 
				
			||||
                android:layout_height="7dip"
 | 
				
			||||
                android:background="@drawable/bg_color_btn_mask" />
 | 
				
			||||
        </LinearLayout>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
 | 
				
			||||
    <ImageView
 | 
				
			||||
        android:id="@+id/btn_set_bg_color"
 | 
				
			||||
        android:layout_height="43dip"
 | 
				
			||||
        android:layout_width="wrap_content"
 | 
				
			||||
        android:background="@drawable/bg_color_btn_mask"
 | 
				
			||||
        android:layout_gravity="top|right" />
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:id="@+id/note_bg_color_selector"
 | 
				
			||||
        android:layout_width="wrap_content"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:background="@drawable/note_edit_color_selector_panel"
 | 
				
			||||
        android:layout_marginTop="30dip"
 | 
				
			||||
        android:layout_marginRight="8dip"
 | 
				
			||||
        android:layout_gravity="top|right"
 | 
				
			||||
        android:visibility="gone">
 | 
				
			||||
 | 
				
			||||
        <FrameLayout
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="match_parent"
 | 
				
			||||
            android:layout_weight="1">
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_yellow"
 | 
				
			||||
                android:layout_width="match_parent"
 | 
				
			||||
                android:layout_height="match_parent" />
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_yellow_select"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="bottom|right"
 | 
				
			||||
                android:layout_marginRight="5dip"
 | 
				
			||||
                android:focusable="false"
 | 
				
			||||
                android:visibility="gone"
 | 
				
			||||
                android:src="@drawable/selected" />
 | 
				
			||||
        </FrameLayout>
 | 
				
			||||
 | 
				
			||||
        <FrameLayout
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="match_parent"
 | 
				
			||||
            android:layout_weight="1">
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_blue"
 | 
				
			||||
                android:layout_width="match_parent"
 | 
				
			||||
                android:layout_height="match_parent" />
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_blue_select"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="bottom|right"
 | 
				
			||||
                android:focusable="false"
 | 
				
			||||
                android:visibility="gone"
 | 
				
			||||
                android:layout_marginRight="3dip"
 | 
				
			||||
                android:src="@drawable/selected" />
 | 
				
			||||
        </FrameLayout>
 | 
				
			||||
 | 
				
			||||
        <FrameLayout
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="match_parent"
 | 
				
			||||
            android:layout_weight="1">
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_white"
 | 
				
			||||
                android:layout_width="match_parent"
 | 
				
			||||
                android:layout_height="match_parent" />
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_white_select"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="bottom|right"
 | 
				
			||||
                android:focusable="false"
 | 
				
			||||
                android:visibility="gone"
 | 
				
			||||
                android:layout_marginRight="2dip"
 | 
				
			||||
                android:src="@drawable/selected" />
 | 
				
			||||
        </FrameLayout>
 | 
				
			||||
 | 
				
			||||
        <FrameLayout
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="match_parent"
 | 
				
			||||
            android:layout_weight="1">
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_green"
 | 
				
			||||
                android:layout_width="match_parent"
 | 
				
			||||
                android:layout_height="match_parent" />
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_green_select"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="bottom|right"
 | 
				
			||||
                android:focusable="false"
 | 
				
			||||
                android:visibility="gone"
 | 
				
			||||
                android:src="@drawable/selected" />
 | 
				
			||||
        </FrameLayout>
 | 
				
			||||
 | 
				
			||||
        <FrameLayout
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="match_parent"
 | 
				
			||||
            android:layout_weight="1">
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_red"
 | 
				
			||||
                android:layout_width="match_parent"
 | 
				
			||||
                android:layout_height="match_parent" />
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_bg_red_select"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="bottom|right"
 | 
				
			||||
                android:focusable="false"
 | 
				
			||||
                android:visibility="gone"
 | 
				
			||||
                android:src="@drawable/selected" />
 | 
				
			||||
        </FrameLayout>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
 | 
				
			||||
    <ImageButton
 | 
				
			||||
        android:id = "@+id/add_img_btn"
 | 
				
			||||
        android:layout_width="45dp"
 | 
				
			||||
        android:layout_height="match_parent"
 | 
				
			||||
        android:src="@android:drawable/ic_menu_gallery"/>
 | 
				
			||||
 | 
				
			||||
 | 
				
			||||
 | 
				
			||||
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:id="@+id/font_size_selector"
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:background="@drawable/font_size_selector_bg"
 | 
				
			||||
        android:layout_gravity="bottom"
 | 
				
			||||
        android:visibility="gone">
 | 
				
			||||
 | 
				
			||||
        <FrameLayout
 | 
				
			||||
            android:id="@+id/ll_font_small"
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:layout_weight="1">
 | 
				
			||||
 | 
				
			||||
            <LinearLayout
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:orientation="vertical"
 | 
				
			||||
                android:layout_gravity="center"
 | 
				
			||||
                android:gravity="center">
 | 
				
			||||
 | 
				
			||||
                <ImageView
 | 
				
			||||
                    android:layout_width="wrap_content"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:src="@drawable/font_small"
 | 
				
			||||
                    android:layout_marginBottom="5dip" />
 | 
				
			||||
 | 
				
			||||
                <TextView
 | 
				
			||||
                    android:layout_width="wrap_content"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:text="@string/menu_font_small"
 | 
				
			||||
                    android:textAppearance="@style/TextAppearanceUnderMenuIcon" />
 | 
				
			||||
            </LinearLayout>
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_small_select"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="bottom|right"
 | 
				
			||||
                android:layout_marginRight="6dip"
 | 
				
			||||
                android:layout_marginBottom="-7dip"
 | 
				
			||||
                android:focusable="false"
 | 
				
			||||
                android:visibility="gone"
 | 
				
			||||
                android:src="@drawable/selected" />
 | 
				
			||||
        </FrameLayout>
 | 
				
			||||
 | 
				
			||||
        <FrameLayout
 | 
				
			||||
            android:id="@+id/ll_font_normal"
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:layout_weight="1">
 | 
				
			||||
 | 
				
			||||
            <LinearLayout
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:orientation="vertical"
 | 
				
			||||
                android:layout_gravity="center"
 | 
				
			||||
                android:gravity="center">
 | 
				
			||||
 | 
				
			||||
                <ImageView
 | 
				
			||||
                    android:layout_width="wrap_content"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:src="@drawable/font_normal"
 | 
				
			||||
                    android:layout_marginBottom="5dip" />
 | 
				
			||||
 | 
				
			||||
                <TextView
 | 
				
			||||
                    android:layout_width="wrap_content"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:text="@string/menu_font_normal"
 | 
				
			||||
                    android:textAppearance="@style/TextAppearanceUnderMenuIcon" />
 | 
				
			||||
            </LinearLayout>
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_medium_select"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="bottom|right"
 | 
				
			||||
                android:focusable="false"
 | 
				
			||||
                android:visibility="gone"
 | 
				
			||||
                android:layout_marginRight="6dip"
 | 
				
			||||
                android:layout_marginBottom="-7dip"
 | 
				
			||||
                android:src="@drawable/selected" />
 | 
				
			||||
        </FrameLayout>
 | 
				
			||||
 | 
				
			||||
        <FrameLayout
 | 
				
			||||
            android:id="@+id/ll_font_large"
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:layout_weight="1">
 | 
				
			||||
 | 
				
			||||
            <LinearLayout
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:orientation="vertical"
 | 
				
			||||
                android:layout_gravity="center"
 | 
				
			||||
                android:gravity="center">
 | 
				
			||||
 | 
				
			||||
                <ImageView
 | 
				
			||||
                    android:layout_width="wrap_content"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:src="@drawable/font_large"
 | 
				
			||||
                    android:layout_marginBottom="5dip" />
 | 
				
			||||
 | 
				
			||||
                <TextView
 | 
				
			||||
                    android:layout_width="wrap_content"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:text="@string/menu_font_large"
 | 
				
			||||
                    android:textAppearance="@style/TextAppearanceUnderMenuIcon" />
 | 
				
			||||
            </LinearLayout>
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_large_select"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="bottom|right"
 | 
				
			||||
                android:focusable="false"
 | 
				
			||||
                android:visibility="gone"
 | 
				
			||||
                android:layout_marginRight="6dip"
 | 
				
			||||
                android:layout_marginBottom="-7dip"
 | 
				
			||||
                android:src="@drawable/selected" />
 | 
				
			||||
        </FrameLayout>
 | 
				
			||||
 | 
				
			||||
        <FrameLayout
 | 
				
			||||
            android:id="@+id/ll_font_super"
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:layout_weight="1">
 | 
				
			||||
 | 
				
			||||
            <LinearLayout
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:orientation="vertical"
 | 
				
			||||
                android:layout_gravity="center"
 | 
				
			||||
                android:gravity="center">
 | 
				
			||||
 | 
				
			||||
                <ImageView
 | 
				
			||||
                    android:layout_width="wrap_content"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:src="@drawable/font_super"
 | 
				
			||||
                    android:layout_marginBottom="5dip" />
 | 
				
			||||
 | 
				
			||||
                <TextView
 | 
				
			||||
                    android:layout_width="wrap_content"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:text="@string/menu_font_super"
 | 
				
			||||
                    android:textAppearance="@style/TextAppearanceUnderMenuIcon" />
 | 
				
			||||
            </LinearLayout>
 | 
				
			||||
 | 
				
			||||
            <ImageView
 | 
				
			||||
                android:id="@+id/iv_super_select"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="bottom|right"
 | 
				
			||||
                android:focusable="false"
 | 
				
			||||
                android:visibility="gone"
 | 
				
			||||
                android:layout_marginRight="6dip"
 | 
				
			||||
                android:layout_marginBottom="-7dip"
 | 
				
			||||
                android:src="@drawable/selected" />
 | 
				
			||||
        </FrameLayout>
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
</FrameLayout>
 | 
				
			||||
@ -0,0 +1,39 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<LinearLayout
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:layout_width="fill_parent"
 | 
				
			||||
    android:layout_height="wrap_content">
 | 
				
			||||
 | 
				
			||||
    <CheckBox
 | 
				
			||||
        android:id="@+id/cb_edit_item"
 | 
				
			||||
        android:layout_width="wrap_content"
 | 
				
			||||
        android:layout_height="28dip"
 | 
				
			||||
        android:checked="false"
 | 
				
			||||
        android:focusable="false"
 | 
				
			||||
        android:layout_gravity="top|left" />
 | 
				
			||||
 | 
				
			||||
    <net.micode.notes.ui.NoteEditText
 | 
				
			||||
        android:id="@+id/et_edit_text"
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:lineSpacingMultiplier="1.2"
 | 
				
			||||
        android:layout_gravity="center_vertical"
 | 
				
			||||
        android:textAppearance="@style/TextAppearancePrimaryItem"
 | 
				
			||||
        android:background="@null" />
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,78 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<FrameLayout
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:id="@+id/note_item"
 | 
				
			||||
    android:layout_width="fill_parent"
 | 
				
			||||
    android:layout_height="fill_parent">
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_gravity="center_vertical"
 | 
				
			||||
        android:gravity="center_vertical">
 | 
				
			||||
 | 
				
			||||
        <LinearLayout
 | 
				
			||||
            android:layout_width="0dip"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:layout_weight="1"
 | 
				
			||||
            android:orientation="vertical">
 | 
				
			||||
 | 
				
			||||
            <TextView
 | 
				
			||||
                android:id="@+id/tv_name"
 | 
				
			||||
                android:layout_width="wrap_content"
 | 
				
			||||
                android:layout_height="0dip"
 | 
				
			||||
                android:layout_weight="1"
 | 
				
			||||
                android:textAppearance="@style/TextAppearancePrimaryItem"
 | 
				
			||||
                android:visibility="gone" />
 | 
				
			||||
 | 
				
			||||
            <LinearLayout
 | 
				
			||||
                android:layout_width="fill_parent"
 | 
				
			||||
                android:layout_height="wrap_content"
 | 
				
			||||
                android:layout_gravity="center_vertical">
 | 
				
			||||
 | 
				
			||||
                <TextView
 | 
				
			||||
                    android:id="@+id/tv_title"
 | 
				
			||||
                    android:layout_width="0dip"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:layout_weight="1"
 | 
				
			||||
                    android:singleLine="true" />
 | 
				
			||||
 | 
				
			||||
                <TextView
 | 
				
			||||
                    android:id="@+id/tv_time"
 | 
				
			||||
                    android:layout_width="wrap_content"
 | 
				
			||||
                    android:layout_height="wrap_content"
 | 
				
			||||
                    android:textAppearance="@style/TextAppearanceSecondaryItem" />
 | 
				
			||||
            </LinearLayout>
 | 
				
			||||
        </LinearLayout>
 | 
				
			||||
 | 
				
			||||
        <CheckBox
 | 
				
			||||
            android:id="@android:id/checkbox"
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:focusable="false"
 | 
				
			||||
            android:clickable="false"
 | 
				
			||||
            android:visibility="gone" />
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
 | 
				
			||||
    <ImageView
 | 
				
			||||
        android:id="@+id/iv_alert_icon"
 | 
				
			||||
        android:layout_width="wrap_content"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_gravity="top|right"/>
 | 
				
			||||
</FrameLayout>
 | 
				
			||||
@ -0,0 +1,58 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<FrameLayout
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:layout_width="fill_parent"
 | 
				
			||||
    android:layout_height="fill_parent"
 | 
				
			||||
    android:background="@drawable/list_background">
 | 
				
			||||
 | 
				
			||||
    <LinearLayout
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="fill_parent"
 | 
				
			||||
        android:orientation="vertical">
 | 
				
			||||
 | 
				
			||||
        <TextView
 | 
				
			||||
            android:id="@+id/tv_title_bar"
 | 
				
			||||
            android:layout_width="fill_parent"
 | 
				
			||||
            android:layout_height="wrap_content"
 | 
				
			||||
            android:background="@drawable/title_bar_bg"
 | 
				
			||||
            android:visibility="gone"
 | 
				
			||||
            android:gravity="center_vertical"
 | 
				
			||||
            android:singleLine="true"
 | 
				
			||||
            android:textColor="#FFEAD1AE"
 | 
				
			||||
            android:textSize="@dimen/text_font_size_medium" />
 | 
				
			||||
 | 
				
			||||
        <ListView
 | 
				
			||||
            android:id="@+id/notes_list"
 | 
				
			||||
            android:layout_width="fill_parent"
 | 
				
			||||
            android:layout_height="0dip"
 | 
				
			||||
            android:layout_weight="1"
 | 
				
			||||
            android:cacheColorHint="@null"
 | 
				
			||||
            android:listSelector="@android:color/transparent"
 | 
				
			||||
            android:divider="@null"
 | 
				
			||||
            android:fadingEdge="@null" />
 | 
				
			||||
    </LinearLayout>
 | 
				
			||||
 | 
				
			||||
    <Button
 | 
				
			||||
        android:id="@+id/btn_new_note"
 | 
				
			||||
        android:background="@drawable/new_note"
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:focusable="false"
 | 
				
			||||
        android:layout_gravity="bottom" />
 | 
				
			||||
</FrameLayout>
 | 
				
			||||
@ -0,0 +1,32 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<LinearLayout
 | 
				
			||||
        xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
        android:id="@+id/navigation_bar"
 | 
				
			||||
        android:layout_width="match_parent"
 | 
				
			||||
        android:layout_height="match_parent"
 | 
				
			||||
        android:orientation="horizontal">
 | 
				
			||||
 | 
				
			||||
    <Button android:id="@+id/selection_menu"
 | 
				
			||||
            android:divider="?android:attr/listDividerAlertDialog"
 | 
				
			||||
            android:singleLine="true"
 | 
				
			||||
            android:gravity="left|center_vertical"
 | 
				
			||||
            android:layout_width="wrap_content"
 | 
				
			||||
            android:layout_height="match_parent"
 | 
				
			||||
            style="?android:attr/borderlessButtonStyle" />
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,24 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<View
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:layout_width="fill_parent"
 | 
				
			||||
    android:layout_height="100dip"
 | 
				
			||||
    android:visibility="invisible"
 | 
				
			||||
    android:focusable="false"
 | 
				
			||||
    android:background="@drawable/list_footer_bg" />
 | 
				
			||||
@ -0,0 +1,41 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<LinearLayout
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:orientation="vertical"
 | 
				
			||||
        xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||
 | 
				
			||||
    <Button
 | 
				
			||||
        android:id="@+id/preference_sync_button"
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_marginTop="15dip"
 | 
				
			||||
        android:layout_marginLeft="30dip"
 | 
				
			||||
        android:layout_marginRight="30dip"
 | 
				
			||||
        style="?android:attr/textAppearanceMedium"
 | 
				
			||||
        android:text="@string/preferences_button_sync_immediately"/>
 | 
				
			||||
 | 
				
			||||
    <TextView
 | 
				
			||||
        android:id="@+id/prefenerece_sync_status_textview"
 | 
				
			||||
        android:layout_width="wrap_content"
 | 
				
			||||
        android:layout_height="wrap_content"
 | 
				
			||||
        android:layout_gravity="center"
 | 
				
			||||
        android:visibility="gone"/>
 | 
				
			||||
 | 
				
			||||
</LinearLayout>
 | 
				
			||||
@ -0,0 +1,37 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<FrameLayout
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:layout_width="146dip"
 | 
				
			||||
    android:layout_height="146dip">
 | 
				
			||||
    <ImageView
 | 
				
			||||
        android:id="@+id/widget_bg_image"
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="fill_parent" />
 | 
				
			||||
    <TextView
 | 
				
			||||
        android:id="@+id/widget_text"
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="fill_parent"
 | 
				
			||||
        android:paddingTop="20dip"
 | 
				
			||||
        android:paddingLeft="15dip"
 | 
				
			||||
        android:paddingRight="15dip"
 | 
				
			||||
        android:textSize="14sp"
 | 
				
			||||
        android:textColor="#FF663300"
 | 
				
			||||
        android:maxLines="6"
 | 
				
			||||
        android:lineSpacingMultiplier="1.2" />
 | 
				
			||||
</FrameLayout>
 | 
				
			||||
@ -0,0 +1,39 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<FrameLayout
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||
    android:layout_width="294dip"
 | 
				
			||||
    android:layout_height="294dip">
 | 
				
			||||
 | 
				
			||||
    <ImageView
 | 
				
			||||
        android:id="@+id/widget_bg_image"
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="fill_parent" />
 | 
				
			||||
 | 
				
			||||
    <TextView
 | 
				
			||||
        android:id="@+id/widget_text"
 | 
				
			||||
        android:layout_width="fill_parent"
 | 
				
			||||
        android:layout_height="fill_parent"
 | 
				
			||||
        android:paddingTop="40dip"
 | 
				
			||||
        android:paddingLeft="15dip"
 | 
				
			||||
        android:paddingRight="15dip"
 | 
				
			||||
        android:textSize="14sp"
 | 
				
			||||
        android:textColor="#FF663300"
 | 
				
			||||
        android:maxLines="12"
 | 
				
			||||
        android:lineSpacingMultiplier="1.2" />
 | 
				
			||||
</FrameLayout>
 | 
				
			||||
@ -0,0 +1,48 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<menu
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_delete"
 | 
				
			||||
        android:title="@string/menu_delete" />
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_font_size"
 | 
				
			||||
        android:title="@string/menu_font_size"/>
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_list_mode"
 | 
				
			||||
        android:title="@string/menu_list_mode" />
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_share"
 | 
				
			||||
        android:title="@string/menu_share"/>
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_send_to_desktop"
 | 
				
			||||
        android:title="@string/menu_send_to_desktop"/>
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_alert"
 | 
				
			||||
        android:title="@string/menu_alert" />
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_delete_remind"
 | 
				
			||||
        android:title="@string/menu_remove_remind" />
 | 
				
			||||
</menu>
 | 
				
			||||
@ -0,0 +1,23 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<menu
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_search"
 | 
				
			||||
        android:title="@string/menu_search" />
 | 
				
			||||
</menu>
 | 
				
			||||
@ -0,0 +1,52 @@
 | 
				
			||||
<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||
 | 
				
			||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 | 
				
			||||
 | 
				
			||||
     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
 | 
				
			||||
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||
     See the License for the specific language governing permissions and
 | 
				
			||||
     limitations under the License.
 | 
				
			||||
-->
 | 
				
			||||
 | 
				
			||||
<menu
 | 
				
			||||
    xmlns:android="http://schemas.android.com/apk/res/android">
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_new_note"
 | 
				
			||||
        android:title="@string/notelist_menu_new"/>
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_delete"
 | 
				
			||||
        android:title="@string/menu_delete"/>
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_font_size"
 | 
				
			||||
        android:title="@string/menu_font_size"/>
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_list_mode"
 | 
				
			||||
        android:title="@string/menu_list_mode" />
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_share"
 | 
				
			||||
        android:title="@string/menu_share"/>
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_send_to_desktop"
 | 
				
			||||
        android:title="@string/menu_send_to_desktop"/>
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_alert"
 | 
				
			||||
        android:title="@string/menu_alert" />
 | 
				
			||||
 | 
				
			||||
    <item
 | 
				
			||||
        android:id="@+id/menu_delete_remind"
 | 
				
			||||
        android:title="@string/menu_remove_remind" />
 | 
				
			||||
</menu>
 | 
				
			||||