¡@

Home 

2014/10/16 ¤W¤È 08:19:30

android Programming Glossary: mlinearlayout

Do fragments really need an empty constructor?

http://stackoverflow.com/questions/10450348/do-fragments-really-need-an-empty-constructor

args new Bundle 1 args.putString EXTRA_CRS_CODE crsCode fragment.setArguments args return fragment Views LinearLayout mLinearLayout Layout Inflater private LayoutInflater mInflater Station Crs Code private String mCrsCode @Override public void onCreate.. @Override public void onViewCreated View view Bundle savedInstanceState super.onViewCreated view savedInstanceState mLinearLayout LinearLayout view.findViewBy R.id.station_info_accessibility_linear Do stuff @Override public void onResume super.onResume..

Layout with dynamic position

http://stackoverflow.com/questions/3683727/layout-with-dynamic-position

CustomRelativeLayout extends RelativeLayout implements OverlayView private TextView mNoteText private LinearLayout mLinearLayout public int mX 0 public int mY 0 public boolean mShow public CustomRelativeLayout Context context AttributeSet attrs super.. Context.LAYOUT_INFLATER_SERVICE li.inflate R.layout.note this mNoteText TextView findViewById R.id.note mLinearLayout LinearLayout findViewById R.id.note_layout mLinearLayout.setOnTouchListener new OnTouchListener @Override public boolean.. R.layout.note this mNoteText TextView findViewById R.id.note mLinearLayout LinearLayout findViewById R.id.note_layout mLinearLayout.setOnTouchListener new OnTouchListener @Override public boolean onTouch View v MotionEvent event Log.e touched mX int..