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
Proposal: On the android.view.WindowLeaked (window leak) solution | |
Abstract | |
According to the literal understanding, Window Leaked probably means a form of leakage, is what we often say that the memory leak, why the form will leak? | |
Background | |
The causes of: |
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
Proposal:Library to fetch, decode, and display bitmaps in your app. | |
Abstract | |
Loading bitmaps on the UI thread can degrade your app's performance, causing slow responsiveness or even ANR messages. It is therefore important to manage threading appropriately when working with bitmaps.If your app is loading multiple bitmaps into memory, you need to skillfully manage memory and disk caching. Otherwise, the responsiveness and fluidity of your app's UI may suffer. | |
Background | |
Glide is a fast and efficient open source media management and image loading framework for Android that wraps media decoding, memory and disk caching, and resource pooling into a simple and easy to use interface. | |
Glide supports fetching, decoding, and displaying video stills, images, and animated GIFs. Glide includes a flexible API that allows developers to plug in to almost any network stack. By default Glide uses a custom HttpUrlConnection based stack, but also includes utility libraries plug in to Google's Volley project or Square's OkHttp |
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
import javax.ws.rs.core.Context; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.GET; | |
import com.sun.jersey.api.view.Viewable; | |
@GET | |
@Path("/index") | |
public Viewable index( | |
@Context HttpServletRequest request, |
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 AdapterParentsMultiChild extends RecyclerView.Adapter<AdapterParentsMultiChild.ParentsMultiChildViewHolder> { | |
private Context context; | |
private List<ParentChildData> parentChildDataList; | |
private FileCacher<Integer> storePosition = new FileCacher<>(context, "position.txt");<----------------THIS WILL BE GENRATE ERROR | |
public AdapterParentsMultiChild(List<ParentChildData> parentChildDataList, Context context) { | |
this.context = context; | |
this.parentChildDataList = parentChildDataList; | |
} |
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
example 1) | |
at xml layout, | |
<android.support.v7.widget.CardView | |
android:id="@+id/card_homework" | |
android:layout_width="@dimen/width_cardview" | |
android:layout_height="@dimen/hight_cardview" | |
android:layout_gravity="center" | |
android:layout_margin="@dimen/margin_cardview" | |
android:clickable="true" <---------------------------------------------------- make clickable true | |
android:elevation="8dp" |