This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FragmentStatePagerで持ってるfragmentはめくっていくとonStopが呼ばれるのでここでよしなにするとよい(かも |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
527 /** | |
528 * Set the descendant focusability of this view group. This defines the relationship | |
529 * between this view group and its descendants when looking for a view to | |
530 * take focus in {@link #requestFocus(int, android.graphics.Rect)}. | |
531 * | |
532 * @param focusability one of {@link #FOCUS_BEFORE_DESCENDANTS}, {@link #FOCUS_AFTER_DESCENDANTS}, | |
533 * {@link #FOCUS_BLOCK_DESCENDANTS}. | |
534 */ | |
535 public void setDescendantFocusability(int focusability) { | |
536 switch (focusability) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text = client.execute(httpGet, new ResponseHandler<String>() { | |
@Override | |
public String handleResponse(HttpResponse resp) | |
throws ClientProtocolException, IOException { | |
if (resp.getStatusLine().getStatusCode() != HttpStatus.SC_OK) { | |
throw new IOException(resp.getStatusLine().getStatusCode() + "returned."); | |
} | |
HttpEntity entity = resp.getEntity(); | |
if (entity != null) { | |
InputStream is = entity.getContent(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:state_pressed="true"> | |
<layer-list> | |
<item android:drawable="@drawable/btn_back"/> | |
<item android:drawable="@drawable/list_pressed_holo_light"/> | |
</layer-list></item> | |
<item android:drawable="@drawable/btn_back"></item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.nessness.android.sample.listview; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import android.app.ListActivity; | |
import android.os.Bundle; | |
import android.widget.ListView; | |
import android.widget.SimpleAdapter; | |
public class ListViewSampleActivity extends ListActivity { |
NewerOlder