Код: Выделить всё
public class SurvivorLayout extends RelativeLayout {
public SurvivorLayout(Context context, final List list) {
super(context);
// The Below functions actually build the view piece by piece
this.initComponents();
this.setComponentsId();
this.setScrollViewAndHorizontalScrollViewTag();
...
}
}
Что мне нужно сделать, чтобы обеспечить поддержку требований сквозного доступа для SDK 35, поскольку оно создано программно?
ОБНОВЛЕНИЕ:
Класс Activity выглядит следующим образом: такое:
Код: Выделить всё
class SurvivorActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// SDK 35+
EdgeToEdge.enable(this); // Enable edge-to-edge
...
}
}
Код: Выделить всё
setContentView(new SurvivorLayout(this, sList);
Код: Выделить всё
this.setScrollViewAndHorizontalScrollViewTag();
this.horizontalScrollViewB.addView(this.tableB);
this.scrollViewC.addView(this.tableC);
this.scrollViewD.addView(this.horizontalScrollViewD);
this.horizontalScrollViewD.addView(this.tableD);
// Add the components to be part of the main layout
this.addComponentToMainLayout();
// Add some table rows
this.addTableRowToTableA();
this.addTableRowToTableB();
Подробнее здесь: https://stackoverflow.com/questions/797 ... out-progra
Мобильная версия