- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Gson g =
new Gson()
GsonBuilder gsonBuilder;gsonBuilder.create()
new GsonBuilder().create()
- Smart code suggestions by Codota
}
public ParallaxListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); init(context, attrs); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list_one_parallax); ParallaxListView listView = (ParallaxListView) findViewById(R.id.list_view); CustomListAdapter adapter = new CustomListAdapter(LayoutInflater.from(this)); TextView v = new TextView(this); v.setText("PARALLAXED"); v.setGravity(Gravity.CENTER); v.setTextSize(40); v.setHeight(200); v.setBackgroundResource(R.drawable.item_background); listView.addParallaxedHeaderView(v); listView.setAdapter(adapter); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list_multiple_parallax); ParallaxListView listView = (ParallaxListView) findViewById(R.id.list_view); CustomListAdapter adapter = new CustomListAdapter(LayoutInflater.from(this)); listView.setAdapter(adapter); }
public ParallaxListView(Context context, AttributeSet attrs) { super(context, attrs); init(context, attrs); }