This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package biz.mosil.sample.evernote.workshop; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.ProgressBar; | |
import android.widget.TextView; | |
public class NotesActivity extends ParentActivity { | |
private ProgressBar mPgbLoading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package biz.mosil.sample.evernote.workshop; | |
import java.util.ArrayList; | |
import java.util.List; | |
import com.evernote.client.android.OnClientCallback; | |
import com.evernote.edam.notestore.NoteFilter; | |
import com.evernote.edam.notestore.NoteList; | |
import com.evernote.edam.type.Note; | |
import com.evernote.thrift.transport.TTransportException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package biz.mosil.sample.evernote.workshop; | |
import com.evernote.client.android.OnClientCallback; | |
import com.evernote.edam.type.Note; | |
import com.evernote.thrift.transport.TTransportException; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.ProgressBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package biz.mosil.sample.evernote.workshop; | |
import java.util.ArrayList; | |
import java.util.List; | |
import com.evernote.client.android.OnClientCallback; | |
import com.evernote.edam.type.Notebook; | |
import com.evernote.thrift.transport.TTransportException; | |
import android.content.Intent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package biz.mosil.sample.evernote.workshop; | |
import com.evernote.client.android.OnClientCallback; | |
import com.evernote.edam.type.Notebook; | |
import com.evernote.thrift.transport.TTransportException; | |
import android.app.AlertDialog.Builder; | |
import android.content.DialogInterface; | |
import android.os.Bundle; | |
import android.view.View; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package biz.mosil.sample.evernote.workshop; | |
import java.util.ArrayList; | |
import java.util.List; | |
import com.evernote.client.android.OnClientCallback; | |
import com.evernote.edam.notestore.NoteFilter; | |
import com.evernote.edam.notestore.NoteList; | |
import com.evernote.edam.type.Note; | |
import com.evernote.thrift.transport.TTransportException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package biz.mosil.sample.evernote.workshop; | |
import com.evernote.client.android.EvernoteUtil; | |
import com.evernote.client.android.OnClientCallback; | |
import com.evernote.edam.type.Note; | |
import com.evernote.thrift.transport.TTransportException; | |
import android.app.AlertDialog.Builder; | |
import android.content.DialogInterface; | |
import android.os.Bundle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 原本可能是這樣 --> | |
<activity | |
android:name=".MainActivity" | |
android:label="@string/app_name" > | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DataAdapter extends BaseAdapter { | |
private Context mContext; | |
private List<Data> mDataList; | |
private LayoutInflater mInflater; | |
public AnnouncementAdapter(Context ctx, List<Data> dataList) { | |
mContext = ctx; | |
mDataList = dataList; | |
mInflater = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<menu xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<item android:id="@+id/menu_search" | |
android:icon="your icon" | |
android:title="your title" | |
android:orderInCategory="0" | |
app:actionViewClass="android.support.v7.widget.SearchView" | |
app:showAsAction="always" /> | |
</menu> |