import android.app.*; import android.widget.*; import android.view.*; sclass ASingleComponentPanel extends LinearLayout { *() { super(androidActivity()); } *(View component) { this(); setComponent(component); } void setComponent(View component) { removeAllViews(); if (component != null) { component.setLayoutParams(new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)); addView(component); } } }
Began life as a copy of #1005317
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005322 |
Snippet name: | ASingleComponentPanel (SingleComponentPanel for Android) |
Eternal ID of this version: | #1005322/2 |
Text MD5: | e3094cf540278004c7ef0d1eceb66e40 |
Author: | stefan |
Category: | javax / android |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-03 13:16:35 |
Source code size: | 542 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 613 / 1155 |
Version history: | 1 change(s) |
Referenced in: | [show references] |