1 | import android.app.*; |
2 | import android.widget.*; |
3 | import android.view.*; |
4 | |
5 | sclass ASingleComponentPanel extends LinearLayout {
|
6 | *() { super(androidActivity()); }
|
7 | |
8 | *(View component) {
|
9 | this(); |
10 | setComponent(component); |
11 | } |
12 | |
13 | void setComponent(View component) {
|
14 | removeAllViews(); |
15 | if (component != null) {
|
16 | component.setLayoutParams(new LinearLayout.LayoutParams( |
17 | LinearLayout.LayoutParams.MATCH_PARENT, |
18 | LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)); |
19 | addView(component); |
20 | } |
21 | } |
22 | } |
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: | 827 / 1385 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |